Skip to content

Commit 18b8e09

Browse files
committed
Fix.
1 parent 8fa7c39 commit 18b8e09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdcflows/fieldmaps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def __attrs_post_init__(self):
321321
raise TypeError(f"Incompatible suffixes found: <{','.join(fmap_types)}>.")
322322

323323
# Check for MEDIC
324-
if "part-mag" in self.sources[0].path and "echo-" in self.sources[0].path:
324+
if ("part-mag" in self.sources[0].path.name) and ("echo-" in self.sources[0].path.name):
325325
fmap_types = set(list(fmap_types) + ["medic"])
326326

327327
if fmap_types:

0 commit comments

Comments
 (0)