Skip to content

Commit

Permalink
add backwards compatibility test for loading uncompressed data
Browse files Browse the repository at this point in the history
  • Loading branch information
Matic Lubej committed Aug 31, 2023
1 parent 0c81cb1 commit 07a3343
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/core/test_eodata_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,9 @@ def test_cleanup_different_compression(fs_loader, eopatch):
mask_timeless_path = fs.path.join(folder, patch_folder, ftype.value, f"{fname}.npy")
FeatureIONumpy.save(eopatch[(ftype, fname)], temp_fs, mask_timeless_path, compress_level=0)

# test EOPatch load of uncompressed features
EOPatch.load(fs.path.join(folder, patch_folder), filesystem=temp_fs)

# re-save compressed and check cleanup, bbox and timestamps are not compressed
save_task(eopatch, eopatch_folder=patch_folder)
assert temp_fs.exists(bbox_path)
Expand Down

0 comments on commit 07a3343

Please sign in to comment.