Skip to content

Commit

Permalink
FIX: Check
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Jan 30, 2024
1 parent 0bb4c82 commit 36ce9c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mne_bids_pipeline/_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def _prep_out_files(
for key, fname in out_files.items():
# Sanity check that we only ever write to the derivatives directory
fname = pathlib.Path(fname)
if check_relative and not fname.is_relative_to(exec_params.deriv_root):
if not fname.is_relative_to(check_relative):
raise RuntimeError(
f"Output BIDSPath not relative to expected root {check_relative}:"
f"\n{fname}"
Expand Down

0 comments on commit 36ce9c3

Please sign in to comment.