Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Markiewicz <[email protected]>
  • Loading branch information
mgxd and effigies authored Feb 27, 2024
1 parent 242152c commit 1958365
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions niworkflows/utils/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ def generate_bids_skeleton(target_path, bids_config):
extension = bids_file.pop("extension", ".nii.gz")
suffix = bids_file.pop("suffix")
entities = combine_entities(**bids_file)
out_file = modality_path / f"{bids_prefix}{entities}_{suffix}{extension}"
out_file.touch()
data_file = modality_path / f"{bids_prefix}{entities}_{suffix}{extension}"
data_file.touch()

if metadata is not None:
out_metadata = out_file.parent / out_file.name.replace(extension, ".json")
out_metadata = data_file.parent / data_file.name.replace(extension, ".json")
to_json(out_metadata, metadata)

return _bids_dict
Expand Down

0 comments on commit 1958365

Please sign in to comment.