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

Commit 347114a

Browse files
committed
qa
1 parent 3bc049c commit 347114a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

scripts/speed-test.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def main():
107107
if path.endswith(".yaml"):
108108
with open(path, "r") as f:
109109
path = yaml.safe_load(f)
110-
110+
111111
ds = open_dataset(path)
112112

113113
total = len(ds)
@@ -124,9 +124,7 @@ def main():
124124
indexes = indexes[: args.count]
125125

126126
if nworkers > 1:
127-
tests = Tests(
128-
[SpeedTest(path, indexes[i::nworkers]) for i in range(nworkers)]
129-
)
127+
tests = Tests([SpeedTest(path, indexes[i::nworkers]) for i in range(nworkers)])
130128

131129
with Pool(nworkers) as pool:
132130
pool.map(tests, range(nworkers))

tests/test_create.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ def compare_zarr(dir1, dir2):
4242
assert a_ == b_, (a, b)
4343
for k, date in zip(range(a.shape[0]), a.dates):
4444
for j in range(a.shape[1]):
45-
assert (a[k, j] == b[k, j]).all(), (k, date,j, a[k, j], b[k, j])
45+
assert (a[k, j] == b[k, j]).all(), (k, date, j, a[k, j], b[k, j])
4646
compare(dir1, dir2)
4747

48+
4849
def compare(dir1, dir2):
4950
"""Compare two directories recursively."""
5051
files1 = set(os.listdir(dir1))

0 commit comments

Comments
 (0)