Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

args.sidecars fixes #20

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

args.sidecars fixes #20

wants to merge 2 commits into from

Conversation

ericearl
Copy link
Member

@ericearl ericearl commented Jun 6, 2024

These fixes are for the args.sidecars option. They correct two things:

  1. Only using the args.sidecars option when the source is a .nii or a .nii.gz (the lower-level function would break otherwise).
  2. Checking if the json_src is an existent file before doing a file-mapping. This prevents the case where a broken link gets created.

One possible improvement would be to still allow file-mapping even if json_src was not a file, like a symbolic link for instance. Not a great habit, but you should be able to make symbolic links to symbolic links still.

ericearl added 2 commits June 1, 2024 16:16
The --sidecars option was trying to file-map regardless of whether the sidecar existed. This fixes that.
Made another fix to ensure --sidecars only runs with NIfTI files.
@ericearl ericearl self-assigned this Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant