Skip to content

Commit

Permalink
Merge pull request #36 from sebi06/work_in_progress
Browse files Browse the repository at this point in the history
Work in progress
  • Loading branch information
sebi06 authored Aug 18, 2023
2 parents 8b1c3a1 + 4daa868 commit c90d571
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ napari.run()

## Remarks

The code to read multi-dimensional with delayed reading using Dask array was heavily inspired by input from: [Pradeep Rajasekhar](https://github.com/pr4deepr).
The code to read multi-dimensional with delayed reading using Dask array was heavily inspired by input from: [Pradeep Rajasekhar](https://github.com/pr4deepr).
2 changes: 1 addition & 1 deletion demo/notebooks/omezarr_from_czi_5d.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
}
],
"source": [
"# this is how we can open the file we just wrote in napari\n",
"# this is how we can open the file we just write in napari\n",
"viewer = napari.Viewer()\n",
"viewer.open(zarr_path)"
]
Expand Down
2 changes: 1 addition & 1 deletion demo/scripts/use_read_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# return a array with dimension order STZCYX(A)
array6d, mdata, dim_string6d = read_tools.read_6darray(filepath,
output_order="STCZYX",
use_dask=False,
use_dask=True,
chunk_zyx=False,
# T=0,
# Z=0
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = czitools
version = 0.4.0
version = 0.4.1
author = Sebastian Rhode
author_email = sebrhode@gmail.com
url = https://github.com/sebi06/czitools
Expand Down
2 changes: 1 addition & 1 deletion src/czitools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# __init__.py
# version of the czitools package
__version__ = "0.4.0"
__version__ = "0.4.1"
6 changes: 3 additions & 3 deletions src/czitools/read_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import dask
import dask.array as da
import os
from tqdm import trange
from tqdm import trange, tqdm
from tqdm.contrib.itertools import product


Expand Down Expand Up @@ -142,11 +142,11 @@ def read_6darray(filepath: Union[str, os.PathLike[str]],

for s in trange(size_s):
time_stack = []
for time in range(size_t):
for time in trange(size_t):
ch_stack = []
for ch in trange(size_c):
z_stack = []
for z in range(size_z):
for z in trange(size_z):
if mdata.image.SizeS is not None:

z_slice = da.from_delayed(
Expand Down

0 comments on commit c90d571

Please sign in to comment.