You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository provides a collection of tools to simplify reading CZI (Carl Zeiss Image) pixel and metadata in Python. In addition, it also contains other useful utilities to visualize CZI images inside Napari (needs to be installed). It is also available as a [Python Package on PyPi](https://pypi.org/project/czitools/)
10
+
This repository provides a collection of tools to simplify reading CZI (Carl Zeiss Image) pixel and metadata in Python. It is available as a [Python Package on PyPi](https://pypi.org/project/czitools/)
11
11
12
12
## Installation
13
13
14
-
To install the basic functionality (will not install Napari und plotting functionality) use:
14
+
To install czitools use (will not install Napari or plotting functionality):
15
15
16
16
```text
17
17
pip install czitools
18
18
```
19
19
20
-
To install the package with all optional dependencies use:
20
+
To install the package with all optional dependencies use (will not install Napari):
21
21
22
22
```text
23
23
pip install czitools[all]
@@ -39,8 +39,15 @@ from czitools.metadata_tools.microscope import CziMicroscope
39
39
from czitools.metadata_tools.add_metadata import CziAddMetaData
40
40
from czitools.metadata_tools.detector import CziDetector
41
41
from czitools.read_tools import read_tools
42
-
from czitools.napari_tools import napari_tools
43
-
import napari
42
+
43
+
try:
44
+
import napari
45
+
from napari.utils.colormaps import Colormap
46
+
47
+
show_napari =True
48
+
exceptImportError:
49
+
print("Napari not installed, skipping napari import")
50
+
show_napari =False
44
51
45
52
# get the metadata_tools at once as one big class
46
53
mdata = CziMetadata(filepath)
@@ -90,29 +97,50 @@ While the [pylibCZIrw](https://pypi.org/project/pylibCZIrw/) is focussing on rea
90
97
91
98
```python
92
99
# return a dask or numpy array with dimension order STCZYX(A)
@@ -134,7 +162,6 @@ The basic usage can be inferred from this sample notebook:
134
162
The basic usage can be inferred from this sample notebook:
135
163
[](https://colab.research.google.com/github/sebi06/czitools/blob/main/demo/notebooks/omezarr_from_czi_5d.ipynb)
136
164
137
-
138
165
### Write CZI using ZSTD compression
139
166
140
167
The basic usage can be inferred from this sample notebook:
@@ -154,14 +181,14 @@ The basic usage can be inferred from this sample notebook:
154
181
155
182
The code to read multi-dimensional with delayed reading using Dask array was heavily inspired by input from: [Pradeep Rajasekhar](https://github.com/pr4deepr).
0 commit comments