Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit 009a1c3

Browse files
committed
Faster tests with no compression
1 parent 53dd28f commit 009a1c3

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/python-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151
pip install -r tests/requirements.txt
5252
pip freeze
5353
54-
# - name: Tests
55-
# run: pytest -x
54+
- name: Tests
55+
run: pytest
5656

5757
deploy:
5858

tests/test_data.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,22 @@ def create_zarr(
8282
data=data,
8383
dtype=data.dtype,
8484
chunks=data.shape,
85+
compressor=None,
8586
)
8687
root.create_dataset(
8788
"dates",
8889
data=dates,
90+
compressor=None,
8991
)
9092
root.create_dataset(
9193
"latitudes",
9294
data=np.array([x + values for x in range(values)]),
95+
compressor=None,
9396
)
9497
root.create_dataset(
9598
"longitudes",
9699
data=np.array([x + values for x in range(values)]),
100+
compressor=None,
97101
)
98102

99103
root.attrs["frequency"] = frequency
@@ -105,18 +109,22 @@ def create_zarr(
105109
root.create_dataset(
106110
"mean",
107111
data=np.mean(data, axis=0),
112+
compressor=None,
108113
)
109114
root.create_dataset(
110115
"stdev",
111116
data=np.std(data, axis=0),
117+
compressor=None,
112118
)
113119
root.create_dataset(
114120
"maximum",
115121
data=np.max(data, axis=0),
122+
compressor=None,
116123
)
117124
root.create_dataset(
118125
"minimum",
119126
data=np.min(data, axis=0),
127+
compressor=None,
120128
)
121129

122130
return root

0 commit comments

Comments
 (0)