Skip to content
Snippets Groups Projects
Commit 04813bed authored by Oriol Tintó's avatar Oriol Tintó
Browse files

After reapplying chunking sz3 works properly again. Adding some tests.

parent 6fafb71e
No related branches found
No related tags found
1 merge request!10Prepare release 2023.4
from utils import wrapper, TestClass
import pytest
folders = None
import hdf5plugin
hdf5plugin.register(force=True)
class TestSZ3(TestClass):
def test_compress_sz3_abs(self):
compression = "lossy,sz3,abs,0.01"
wrapper(self, compression=compression)
def test_compress_sz3_rel(self):
compression = "lossy,sz3,rel,0.001"
wrapper(self, compression=compression)
def test_sz3_analyzer(self):
from enstools.compression.api import analyze_files
# Check that the compression without specifying compression parameters works
datasets = ["dataset_%iD.nc" % dimension for dimension in range(1, 4)]
for ds in datasets:
input_path = self.input_directory_path / ds
analyze_files(file_paths=input_path, compressor="sz3")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment