Skip to content

Commit 277762d

Browse files
committed
use correct attributes compression and shuffle
1 parent 2808dc9 commit 277762d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_compression.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def check_dataset_filters(temp_file: str, ncvar: str, compression: str, shuffle:
1717
if USE_S3:
1818
with load_from_s3(temp_file) as test_data:
1919
print("File attrs", test_data.attrs)
20-
assert test_data[ncvar].attrs.get('compression') == "gzip"
21-
assert test_data[ncvar].attrs.get('shuffle') == shuffle
20+
assert test_data[ncvar].compression == "gzip"
21+
assert test_data[ncvar].shuffle == shuffle
2222
else:
2323
with Dataset(temp_file) as test_data:
2424
test_data_filters = test_data.variables[ncvar].filters()

0 commit comments

Comments
 (0)