Skip to content

Commit fb7a972

Browse files
committed
remove debug changes
1 parent 5962f5f commit fb7a972

File tree

6 files changed

+13
-21
lines changed

6 files changed

+13
-21
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
distribution: 'temurin'
2929
cache: maven
3030

31-
- name: Set up Python 3.11
32-
uses: actions/setup-python@v4
31+
- name: Set up Python
32+
uses: actions/setup-python@@v5
3333
with:
3434
python-version: '3.11'
3535

@@ -39,19 +39,8 @@ jobs:
3939
- name: Set up zarr-python
4040
run: |
4141
uv venv && uv init
42-
uv add "zarr>=3.1.2"
42+
uv add zarr
4343
uv add zarrita
44-
uv add numcodecs
45-
- name: Debug Python env
46-
continue-on-error: true
47-
run: |
48-
uv run python -c "import zarr; print(zarr.__version__)"
49-
uv run python -c "from zarr.codecs.blosc import BloscCodec; print('BloscCodec OK')"
50-
- name: Debug zarr-python
51-
continue-on-error: true
52-
run: |
53-
uv add "zarr[blosc]"
54-
uv run python -c "from zarr.codecs.blosc import BloscCodec; print('BloscCodec OK')"
5544
- name: Download testdata
5645
run: |
5746
mkdir testoutput

src/test/python-scripts/parse_codecs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import zarr
2-
print("Using zarr version:", zarr.__version__)
32
from zarr.codecs.blosc import BloscCodec
43
from zarr.codecs.bytes import BytesCodec
54
from zarr.codecs.crc32c_ import Crc32cCodec

src/test/python-scripts/zarr_python_read.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import numpy as np
55

66
import zarr
7+
from zarr.storage import LocalStore
78
from parse_codecs import parse_codecs_zarr_python
89

910
codec_string = sys.argv[1]
@@ -13,12 +14,12 @@
1314

1415
expected_data = np.arange(16 * 16 * 16, dtype='int32').reshape(16, 16, 16)
1516

16-
a = zarr.open_array(store=zarr.storage._local.LocalStore(store_path))
17+
a = zarr.open_array(store=LocalStore(store_path))
1718
read_data = a[:, :]
1819
assert np.array_equal(read_data, expected_data), f"got:\n {read_data} \nbut expected:\n {expected_data}"
1920

2021
b = zarr.create_array(
21-
zarr.storage._local.LocalStore(store_path / "expected"),
22+
LocalStore(store_path / "expected"),
2223
shape=(16, 16, 16),
2324
chunks=(2, 4, 8),
2425
dtype="uint32",

src/test/python-scripts/zarr_python_read_v2.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import zarr
77

8+
from zarr.storage import LocalStore
89
from parse_codecs import parse_codecs_zarr_python
910

1011
codec_string = sys.argv[1]
@@ -14,12 +15,12 @@
1415

1516
expected_data = np.arange(16 * 16 * 16, dtype='int32').reshape(16, 16, 16)
1617

17-
a = zarr.open_array(store=zarr.storage._local.LocalStore(store_path))
18+
a = zarr.open_array(store=LocalStore(store_path))
1819
read_data = a[:, :]
1920
assert np.array_equal(read_data, expected_data), f"got:\n {read_data} \nbut expected:\n {expected_data}"
2021

2122
b = zarr.create_array(
22-
zarr.storage._local.LocalStore(store_path / "expected"),
23+
LocalStore(store_path / "expected"),
2324
zarr_format=2,
2425
shape=(16, 16, 16),
2526
chunks=(2, 4, 8),

src/test/python-scripts/zarr_python_write.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import numpy as np
55

66
import zarr
7+
from zarr.storage import LocalStore
78
from parse_codecs import parse_codecs_zarr_python
89

910
codec_string = sys.argv[1]
@@ -14,7 +15,7 @@
1415
testdata = np.arange(16 * 16 * 16, dtype='int32').reshape(16, 16, 16)
1516

1617
a = zarr.create_array(
17-
zarr.storage._local.LocalStore(store_path),
18+
LocalStore(store_path),
1819
shape=(16, 16, 16),
1920
chunks=(2, 4, 8),
2021
dtype='int32',

src/test/python-scripts/zarr_python_write_v2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import zarr
77

8+
from zarr.storage import LocalStore
89
from parse_codecs import parse_codecs_zarr_python
910

1011
codec_string = sys.argv[1]
@@ -15,7 +16,7 @@
1516
testdata = np.arange(16 * 16 * 16, dtype='int32').reshape(16, 16, 16)
1617

1718
a = zarr.create_array(
18-
zarr.storage._local.LocalStore(store_path),
19+
LocalStore(store_path),
1920
zarr_format=2,
2021
shape=(16, 16, 16),
2122
chunks=(2, 4, 8),

0 commit comments

Comments
 (0)