Skip to content

Commit

Permalink
Fix bug in make_nifti method to handle Path objects correctly (#333)
Browse files Browse the repository at this point in the history
* Handle output as a path-like object in make_nifti
* Add myself to contributors.md
  • Loading branch information
mcsitter authored Jan 28, 2025
1 parent 2141513 commit 6d17a83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Granville Matheson 📝 🐛 ✅
Martin Norgaard 💻 💬 🤔 ⚠️ 👀
Cyril Pernet 💻 📖 💬 🎨 💡 📋 🤔 ⚠️
Chris Rorden 💻 🐛 📖
Maximilian Cosmo Sitter 💻
Claus Svarer 💻 💡⚠️
Adam G Thomas 🔍 🤔
Robert Innis 💡⚠️💵
Expand Down
2 changes: 1 addition & 1 deletion pypet2bids/pypet2bids/ecat.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def make_nifti(self, output_path=None):
self.telemetry_data["NiftiFiles"] = 1
self.telemetry_data["NiftiFilesSize"] = pathlib.Path(output).stat().st_size

if "nii.gz" not in output:
if "nii.gz" not in pathlib.Path(output).name:
output = helper_functions.compress(output)

return output
Expand Down

0 comments on commit 6d17a83

Please sign in to comment.