Skip to content

Commit

Permalink
Merge pull request #436 from marcelzwiers/fix_false_pos_replace
Browse files Browse the repository at this point in the history
FIX: Update suffix only when finding related fieldmap files
  • Loading branch information
effigies authored Apr 16, 2024
2 parents 73d717a + a0ca25a commit 357ef3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdcflows/fieldmaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,9 @@ def __attrs_post_init__(self):
try:
new_path = (
sources[0].parent / sources[0].name
.replace("fieldmap", "magnitude")
.replace("diff", "1")
.replace("phase", "magnitude")
.replace("_fieldmap", "_magnitude")
.replace("_phasediff", "_phase1")
.replace("_phase", "_magnitude")
)
self.sources.append(FieldmapFile(new_path))
except Exception:
Expand Down

0 comments on commit 357ef3e

Please sign in to comment.