Skip to content

Commit

Permalink
Adjust bfio & fsspec versions to avoid bugs (#537)
Browse files Browse the repository at this point in the history
* Limit fsspec version for now due to glob bug

* Pin bfio version to 2.3.0 to avoid change that is keeping files open

* Remove whitespace
  • Loading branch information
SeanLeRoy authored Oct 30, 2023
1 parent 942cc53 commit c380ce0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aicsimageio/readers/nd2_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _xarr_reformat(self, delayed: bool) -> xr.DataArray:
xarr.attrs[constants.METADATA_PROCESSED] = self.ome_metadata
except NotImplementedError:
pass

return xarr.isel({nd2.AXIS.POSITION: 0}, missing_dims="ignore")

@property
Expand Down
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def run(self):
],
"nd2": ["nd2[legacy]>=0.6.0"],
"dv": ["mrc>=0.2.0"],
"bfio": ["bfio>=2.3.0", "tifffile<2022.4.22"],
"bfio": ["bfio==2.3.0", "tifffile<2022.4.22"],
# "czi": [ # excluded for licensing reasons
# "fsspec>=2022.8.0",
# "aicspylibczi>=3.1.1",
Expand Down Expand Up @@ -101,7 +101,9 @@ def run(self):

requirements = [
"dask[array]>=2021.4.1,<=2023.5.0",
"fsspec>=2022.8.0",
# fssspec restricted due to glob issue tracked here, when fixed remove ceiling
# https://github.com/fsspec/filesystem_spec/issues/1380
"fsspec>=2022.8.0,<2023.9.0",
"imagecodecs>=2020.5.30",
"lxml>=4.6,<5",
"numpy>=1.16,<=1.24.0",
Expand Down

0 comments on commit c380ce0

Please sign in to comment.