Skip to content

Commit

Permalink
Update df test data and pre-sort files
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinchai committed Nov 7, 2024
1 parent 66d8fec commit 16b839c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
Binary file modified tests/data/df.zarr.zip
Binary file not shown.
1 change: 1 addition & 0 deletions tests/data/generate_trusted_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
test_df._write_test_data(tmp_dir)
output_zarr = os.path.join(tmp_dir, "output.zarr")
files = glob.glob(os.path.join(tmp_dir, "*.jp2"))
files.sort()
with zipfile.ZipFile("data/df_input.zip", "w") as z:
for file in files:
z.write(file, os.path.basename(file))
Expand Down
1 change: 1 addition & 0 deletions tests/test_df.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ def test_df(tmp_path):
z.extractall(tmp_path)
output_zarr = tmp_path / "output.zarr"
files = glob.glob(os.path.join(tmp_path, "*.jp2"))
files.sort()
multi_slice.convert(files, str(output_zarr))
assert _cmp_zarr_archives(str(output_zarr), "data/df.zarr.zip")

0 comments on commit 16b839c

Please sign in to comment.