Skip to content

Commit

Permalink
Fixed incorrectly pruned characters from filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
JBWilkie committed Oct 31, 2023
1 parent dd341d4 commit 93bc3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion darwin/exporter/formats/nifti.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def check_for_error_and_return_imageid(
suffixes = filename.suffixes
if len(suffixes) == 2:
if suffixes[0] == ".nii" and suffixes[1] == ".gz":
image_id = str(filename).strip("".join(suffixes))
image_id = str(filename).rstrip("".join(suffixes))
else:
return create_error_message_json(
"Two suffixes found but not ending in .nii.gz",
Expand Down

0 comments on commit 93bc3ce

Please sign in to comment.