From 14c8d85c5b7f079ca5c82d8695bdb15de9b6bbc8 Mon Sep 17 00:00:00 2001 From: Maximilian Cosmo Sitter <48606431+mcsitter@users.noreply.github.com> Date: Tue, 28 Jan 2025 11:15:41 +0100 Subject: [PATCH 1/2] Handle output as a path-like object in make_nifti --- pypet2bids/pypet2bids/ecat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypet2bids/pypet2bids/ecat.py b/pypet2bids/pypet2bids/ecat.py index a4f7988..11c8fb9 100644 --- a/pypet2bids/pypet2bids/ecat.py +++ b/pypet2bids/pypet2bids/ecat.py @@ -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 From 9abb94b1fb27e4f9033a85b8a30ffb64f2f1eab3 Mon Sep 17 00:00:00 2001 From: Maximilian Cosmo Sitter <48606431+mcsitter@users.noreply.github.com> Date: Tue, 28 Jan 2025 11:17:25 +0100 Subject: [PATCH 2/2] Add myself to contributors.md --- contributors.md | 1 + 1 file changed, 1 insertion(+) diff --git a/contributors.md b/contributors.md index 5ec8380..79a3374 100644 --- a/contributors.md +++ b/contributors.md @@ -12,6 +12,7 @@ Granville Matheson ๐Ÿ“ ๐Ÿ› โœ… Martin Norgaard ๐Ÿ’ป ๐Ÿ’ฌ ๐Ÿค” โš ๏ธ ๐Ÿ‘€ Cyril Pernet ๐Ÿ’ป ๐Ÿ“– ๐Ÿ’ฌ ๐ŸŽจ ๐Ÿ’ก ๐Ÿ“‹ ๐Ÿค” โš ๏ธ Chris Rorden ๐Ÿ’ป ๐Ÿ› ๐Ÿ“– +Maximilian Cosmo Sitter ๐Ÿ’ป Claus Svarer ๐Ÿ’ป ๐Ÿ’กโš ๏ธ Adam G Thomas ๐Ÿ” ๐Ÿค” Robert Innis ๐Ÿ’กโš ๏ธ๐Ÿ’ต