Skip to content

Commit 87a93db

Browse files
effigiesmgxd
andauthored
Update niworkflows/interfaces/bids.py
Co-authored-by: Mathias Goncalves <goncalves.mathias@gmail.com>
1 parent ac63dbf commit 87a93db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

niworkflows/interfaces/bids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ def _run_interface(self, runtime):
658658
# For dtseries, we have been generating weird non-BIDS JSON files.
659659
# We can safely keep producing them to avoid breaking derivatives, but
660660
# only the existing keys should keep going into them.
661-
if out_file.endswith(".dtseries.nii"):
661+
if out_file.name.endswith(".dtseries.nii"):
662662
legacy_metadata = {}
663663
for key in ("grayordinates", "space", "surface", "surface_density", "volume"):
664664
if key in self._metadata:

0 commit comments

Comments
 (0)