From ad886118176238141c28485c216e1a877a4ff80a Mon Sep 17 00:00:00 2001
From: Christian Kento Rasmussen <christian.kento@gmail.com>
Date: Fri, 14 Jun 2024 15:18:39 +0200
Subject: [PATCH] fixed bug

---
 qim3d/io/convert.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/qim3d/io/convert.py b/qim3d/io/convert.py
index 2e18a23a..f2af9e6b 100644
--- a/qim3d/io/convert.py
+++ b/qim3d/io/convert.py
@@ -50,7 +50,7 @@ class Convert:
                 case (".zarr", ".nii"):
                     return self.convert_zarr_to_nifti(input_path, output_path)
                 case (".zarr", ".nii.gz"):
-                    return self.convert_zarr_to_nifti(input_path, output_path, compress=True)
+                    return self.convert_zarr_to_nifti(input_path, output_path, compression=True)
                 case _:
                     raise ValueError("Unsupported file format")
         # Fail
@@ -139,7 +139,7 @@ class Convert:
 
         return z
 
-    def convert_zarr_to_nifti(self, zarr_path, nifti_path, compress=False):
+    def convert_zarr_to_nifti(self, zarr_path, nifti_path, compression=False):
         """Convert a zarr file to a nifti file
 
         Args:
@@ -150,7 +150,7 @@ class Convert:
             None
         """
         z = zarr.open(zarr_path)
-        save(nifti_path, z, compress=compress)
+        save(nifti_path, z, compression=compression)
         
 
 def convert(input_path: str, output_path: str, chunk_shape: tuple = (64, 64, 64)):
-- 
GitLab