Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ywkure committed Feb 16, 2021
1 parent d19ab94 commit f189786
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions napari_split_dataset/_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def read_directory(path):
data_for_contrast = data[min(2, data.shape[0]-1):min(7, data.shape[0]), :, :, :]
contrast_limits = (np.percentile(data_for_contrast, 0.1), np.percentile(data_for_contrast, 99.9))



data = data.as_dask() # read as a dask array
# optional kwargs for the corresponding viewer.add_* method
add_kwargs = {"contrast_limits": contrast_limits,}
Expand Down

0 comments on commit f189786

Please sign in to comment.