Skip to content

Commit

Permalink
fix: robuster detection of phase/mag in GRE fieldmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Jun 29, 2023
1 parent b575746 commit 0035cb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/heudiconv/heuristic_reproin.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def infotodict(seqinfo):
elif s.protocol_name.startswith("dwi-dwi"):
thiskey = dwi
elif s.protocol_name.startswith("fmap-phasediff"):
thiskey = phdiff if s.series_files < 100 else mag
thiskey = phdiff if "P" in s.image_type else mag
elif s.protocol_name.startswith("fmap-epi"):
thiskey = epi
thisitem["acquisition"] = "b0" if s.sequence_name.endswith("ep_b0") else "bold"
Expand Down

0 comments on commit 0035cb9

Please sign in to comment.