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 <[email protected]>
  • Loading branch information
effigies and mgxd authored Jul 29, 2024
1 parent edf450b commit a526794
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 @@ -773,7 +773,7 @@ def _run_interface(self, runtime):

if self.inputs.metadata:
sidecar = out_file.parent / f"{out_file.name.split('.', 1)[0]}.json"
unlink(sidecar, missing_ok=True)
sidecar.unlink(missing_ok=True)
sidecar.write_text(dumps(self.inputs.metadata, indent=2))
self._results["out_meta"].append(str(sidecar))
self._results["out_file"].append(str(out_file))
Expand Down

0 comments on commit a526794

Please sign in to comment.