Skip to content

Commit a0ca7c3

Browse files
committed
Merge remote-tracking branch 'upstream/maint/2.4.x'
2 parents 0c497ab + 5ef62fc commit a0ca7c3

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

CHANGES.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2.4.2 (April 20, 2023)
2+
======================
3+
Bug-fix release in the 2.4.x series.
4+
5+
Same fixes as 2.4.1, but this time for phase-difference and direct fieldmaps
6+
we missed last time.
7+
8+
* FIX: Capture and report partial fieldmaps (#351)
9+
110
2.4.1 (March 20, 2023)
211
======================
312
Bug-fix release in the 2.4.x series.

sdcflows/utils/wrangler.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,17 @@ def find_estimators(
343343
**{'suffix': ["fieldmap", "phasediff", "phase1"], 'session': sessions}
344344
}
345345
):
346-
e = fm.FieldmapEstimation(
347-
fm.FieldmapFile(fmap.path, metadata=fmap.get_metadata())
348-
)
349-
_log_debug_estimation(logger, e, layout.root)
350-
estimators.append(e)
346+
try:
347+
e = fm.FieldmapEstimation(
348+
fm.FieldmapFile(fmap.path, metadata=fmap.get_metadata())
349+
)
350+
except (ValueError, TypeError) as err:
351+
_log_debug_estimator_fail(
352+
logger, "unnamed fieldmap", [fmap], layout.root, str(err)
353+
)
354+
else:
355+
_log_debug_estimation(logger, e, layout.root)
356+
estimators.append(e)
351357

352358
# A bunch of heuristics to select EPI fieldmaps
353359
acqs = (

0 commit comments

Comments
 (0)