Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit 54ae325

Browse files
authored
admin/include-fsspec-dep-for-czi-in-readme (#433)
* README note the CZI fsspec compat * Note fsspec install in CZI import error catch * Wrap lif install with string to have proper lif install
1 parent e144273 commit 54ae325

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Image Reading, Metadata Conversion, and Image Writing for Microscopy Images in P
1616
- `TIFF`
1717
- `ND2` -- (`pip install aicsimageio[nd2]`)
1818
- `DV` -- (`pip install aicsimageio[dv]`)
19-
- `CZI` -- (`pip install aicspylibczi>=3.0.5`)
19+
- `CZI` -- (`pip install aicspylibczi>=3.0.5 fsspec>=2022.7.1`)
2020
- `LIF` -- (`pip install readlif>=0.6.4`)
2121
- `PNG`, `GIF`, [etc.](https://github.com/imageio/imageio) -- (`pip install aicsimageio[base-imageio]`)
2222
- Files supported by [Bio-Formats](https://docs.openmicroscopy.org/bio-formats/latest/supported-formats.html) -- (`pip install aicsimageio bioformats_jar`)
@@ -55,7 +55,7 @@ optionally installed using `[...]` syntax.
5555
- For multiple additional supported formats: `pip install aicsimageio[base-imageio,nd2]`
5656
- For all additional supported (and openly licensed) formats: `pip install aicsimageio[all]`
5757
- Due to the GPL license, LIF support is not included with the `[all]` extra, and must be installed manually with `pip install aicsimageio readlif>=0.6.4`
58-
- Due to the GPL license, CZI support is not included with the `[all]` extra, and must be installed manually with `pip install aicsimageio aicspylibczi>=3.0.5`
58+
- Due to the GPL license, CZI support is not included with the `[all]` extra, and must be installed manually with `pip install aicsimageio aicspylibczi>=3.0.5 fsspec>=2022.7.1`
5959
- Due to the GPL license, Bio-Formats support is not included with the `[all]` extra, and must be installed manually with `pip install aicsimageio bioformats_jar`. **Important!!** Bio-Formats support also requires a `java` executable in the environment. The simplest method is to install `bioformats_jar` from conda: `conda install -c conda-forge bioformats_jar` (which will additionally bring `openjdk`).
6060

6161
## Documentation

aicsimageio/readers/czi_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
except ImportError:
2929
raise ImportError(
3030
"aicspylibczi is required for this reader. "
31-
"Install with `pip install aicspylibczi>=3.0.5"
31+
"Install with `pip install 'aicspylibczi>=3.0.5' 'fsspec>=2022.7.1'`"
3232
)
3333

3434
###############################################################################

aicsimageio/readers/lif_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
except ImportError:
2929
raise ImportError(
3030
"readlif is required for this reader. "
31-
"Install with `pip install readlif>=0.6.4`"
31+
"Install with `pip install 'readlif>=0.6.4'`"
3232
)
3333

3434
###############################################################################

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ def run(self):
3737
"nd2": ["nd2[legacy]>=0.2.0"],
3838
"dv": ["mrc>=0.2.0"],
3939
"bfio": ["bfio>=2.3.0", "tifffile<2022.4.22"],
40-
# "czi": ["aicspylibczi>=3.0.5"], # excluded for licensing reasons
40+
"czi": [
41+
"fsspec>=2022.7.1",
42+
# "aicspylibczi>=3.0.5", # excluded for licensing reasons
43+
],
4144
# "bioformats": ["bioformats_jar"], # excluded for licensing reasons
4245
# "lif": ["readlif>=0.6.4"], # excluded for licensing reasons
4346
}

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ setenv =
3131
PYTHONPATH = {toxinidir}
3232
extras =
3333
test
34-
deps = aicspylibczi>=3.0.5
34+
deps =
35+
aicspylibczi>=3.0.5
36+
fsspec>=2022.7.1
3537
commands =
3638
pytest --basetemp={envtmpdir} --cov-report xml --cov-report html --cov=aicsimageio aicsimageio/tests/readers/extra_readers/test_czi_reader.py {posargs}
3739

0 commit comments

Comments
 (0)