Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion heudiconv/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,9 @@ def find_compatible_fmaps_for_run(
else:
# allow for tiny differences between the affines etc
compatible = all(
np.allclose(x, y) for x, y in zip(json_info[param], fm_info)
# allow for small up to 5% difference
np.allclose(x, y, rtol=0.05)
for x, y in zip(json_info[param], fm_info)
)
if not compatible:
continue # don't bother checking more params
Expand Down
Loading