From fbea56d9854478c029320e80768247ac5029a958 Mon Sep 17 00:00:00 2001 From: Karol Gotkowski Date: Fri, 16 Aug 2024 14:34:03 +0200 Subject: [PATCH] fix: Fixed writer --- src/napari_nifti/__init__.py | 2 +- src/napari_nifti/_writer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/napari_nifti/__init__.py b/src/napari_nifti/__init__.py index 23fbf3e..579402c 100644 --- a/src/napari_nifti/__init__.py +++ b/src/napari_nifti/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.0.14" +__version__ = "0.0.15" from ._reader import napari_get_reader from ._writer import write_single_image diff --git a/src/napari_nifti/_writer.py b/src/napari_nifti/_writer.py index 5543ec0..a43d8c4 100644 --- a/src/napari_nifti/_writer.py +++ b/src/napari_nifti/_writer.py @@ -10,7 +10,7 @@ def write_single_image(path: str, data: Any, meta: dict): """Writes a single image layer""" meta = meta["metadata"] - spacing, origin, direction, header = None, None, None, None, None + spacing, origin, direction, header = None, None, None, None if "spacing" in meta: spacing = meta["spacing"] if "origin" in meta: