Skip to content

Commit

Permalink
Update niworkflows/interfaces/bids.py
Browse files Browse the repository at this point in the history
Co-authored-by: Mathias Goncalves <goncalves.mathias@gmail.com>
  • Loading branch information
effigies and mgxd authored Nov 5, 2020
1 parent ac63dbf commit 87a93db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion niworkflows/interfaces/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ def _run_interface(self, runtime):
# For dtseries, we have been generating weird non-BIDS JSON files.
# We can safely keep producing them to avoid breaking derivatives, but
# only the existing keys should keep going into them.
if out_file.endswith(".dtseries.nii"):
if out_file.name.endswith(".dtseries.nii"):
legacy_metadata = {}
for key in ("grayordinates", "space", "surface", "surface_density", "volume"):
if key in self._metadata:
Expand Down

0 comments on commit 87a93db

Please sign in to comment.