Skip to content

Commit e0a5aeb

Browse files
committed
Merge remote-tracking branch 'upstream/maint/25.2.x'
2 parents b74324e + ab9bf3b commit e0a5aeb

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.github/workflows/docker.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
2424
contents: read
2525
packages: write
2626
steps:
27+
- name: Prune container
28+
run: |
29+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/hostedtoolcache
30+
docker system prune -af
31+
2732
- name: Checkout repository
2833
uses: actions/checkout@v5
2934
with:

fmriprep/workflows/base.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,7 @@ def init_single_subject_wf(
633633
all_estimators, estimator_map = map_fieldmap_estimation(
634634
layout=config.execution.layout,
635635
subject_id=subject_id,
636+
session_id=session_id,
636637
bold_data=bold_runs,
637638
ignore_fieldmaps='fieldmaps' in config.workflow.ignore,
638639
use_syn=config.workflow.use_syn_sdc,
@@ -834,6 +835,16 @@ def init_single_subject_wf(
834835
fieldmap_id = estimator_map.get(bold_file)
835836
jacobian = False
836837

838+
if len(bold_series) == 2:
839+
# This should only be reached if two-echo data are provided and echo-idx is not.
840+
# Raise an error in this case, until we figure out how to support two-echo data.
841+
bold_series_str = '\n\t'.join(bold_series)
842+
raise RuntimeError(
843+
'This BOLD series contains two echoes, which fMRIPrep does not support:\n'
844+
f'\t{bold_series_str}\n'
845+
'Please set "--echo-idx" to process one echo at a time.'
846+
)
847+
837848
if fieldmap_id:
838849
if 'fmap-jacobian' in config.workflow.force:
839850
jacobian = True
@@ -933,6 +944,7 @@ def init_single_subject_wf(
933944
def map_fieldmap_estimation(
934945
layout: bids.BIDSLayout,
935946
subject_id: str,
947+
session_id: str | list[str] | None,
936948
bold_data: list[list[str]],
937949
ignore_fieldmaps: bool,
938950
use_syn: bool | str,
@@ -953,6 +965,7 @@ def map_fieldmap_estimation(
953965
fmap_estimators = find_estimators(
954966
layout=layout,
955967
subject=subject_id,
968+
sessions=[session_id] if isinstance(session_id, str) else session_id,
956969
fmapless=bool(use_syn) or (ignore_fieldmaps and force_syn),
957970
force_fmapless=force_syn or (ignore_fieldmaps and use_syn),
958971
bids_filters=filters,

tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ pass_env =
3838
CLICOLOR
3939
CLICOLOR_FORCE
4040
PYTHON_GIL
41-
deps =
42-
py313: traits @ git+https://github.com/enthought/traits.git@10954eb
4341
extras = test
4442
setenv =
4543
pre: PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple

0 commit comments

Comments
 (0)