Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prep for 0.4.0-rc2 #206

Merged
merged 3 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pip-selfcheck.json
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage*
.cache
nosetests.xml
coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "acquire-imaging"
authors = ["Nathan Clack <[email protected]>"]
version = "0.4.0-rc1"
version = "0.4.0-rc2"
edition = "2021"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion drivers.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"acquire-driver-zarr": "0.1.12",
"acquire-driver-zarr": "0.1.13",
"acquire-driver-egrabber": "0.1.5",
"acquire-driver-hdcam": "0.1.9",
"acquire-driver-spinnaker": "0.1.1",
Expand Down
12 changes: 1 addition & 11 deletions tests/test_zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
from typing import Optional

import dotenv
import numpy as np
import pytest
import s3fs
import zarr
from dask import array as da
from numcodecs import blosc as blosc
from ome_zarr.io import parse_url
from ome_zarr.reader import Reader
from skimage.transform import downscale_local_mean

import acquire
from acquire import Runtime, DeviceKind
Expand Down Expand Up @@ -420,15 +418,7 @@ def test_write_zarr_multiscale(
data = [
da.from_zarr(uri, component=str(i)) for i in range(len(zgroup.data))
]
assert len(data) == 3

image = data[0][0, :, :].compute() # convert dask array to numpy array

for d in data:
assert (
np.linalg.norm(image - d[0, :, :].compute()) == 0
) # validate against the same method from scikit-image
image = downscale_local_mean(image, (2, 2)).astype(np.uint8)
assert len(data) == 3 # 3 layers
nclack marked this conversation as resolved.
Show resolved Hide resolved


@pytest.mark.parametrize(
Expand Down
Loading