Skip to content

Commit a526794

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

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
@@ -773,7 +773,7 @@ def _run_interface(self, runtime):
773773

774774
if self.inputs.metadata:
775775
sidecar = out_file.parent / f"{out_file.name.split('.', 1)[0]}.json"
776-
unlink(sidecar, missing_ok=True)
776+
sidecar.unlink(missing_ok=True)
777777
sidecar.write_text(dumps(self.inputs.metadata, indent=2))
778778
self._results["out_meta"].append(str(sidecar))
779779
self._results["out_file"].append(str(out_file))

0 commit comments

Comments
 (0)