We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f94438 commit 53a5184Copy full SHA for 53a5184
sdcflows/fieldmaps.py
@@ -331,6 +331,11 @@ def __attrs_post_init__(self):
331
332
if _pepolar_estimation:
333
self.method = MODALITIES[pepolar_types.pop()]
334
+ _pe = set(f.metadata["PhaseEncodingDirection"] for f in self.sources)
335
+ if len(_pe) == 1:
336
+ raise ValueError(
337
+ f"Only one phase-encoding direction <{_pe.pop()}> found across sources."
338
+ )
339
340
anat_types = suffix_set.intersection(("T1w", "T2w"))
341
if anat_types:
0 commit comments