Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies:
- flask-cors
- h5netcdf
- h5py # link to same hdf5 lib with netcdf4
- lz4
- moto
- netcdf4 !=1.7.4 # github.com/Unidata/netcdf4-python/issues/1464
- pre-commit # with ruff and mypy
Expand All @@ -22,7 +23,6 @@ dependencies:
- pytest-html
- pytest-rerunfailures
- pytest-xdist
- python-lzf
- s3fs >=2025.9.0
# documentation dependencies
- autodocsumm
Expand Down
7 changes: 1 addition & 6 deletions pyfive/btree.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""HDF5 B-Trees and contents."""

from collections import OrderedDict
import lz4.frame as lzf
Comment thread
valeriupredoi marked this conversation as resolved.
Outdated
import struct
import zlib

Expand Down Expand Up @@ -186,12 +187,6 @@ def _filter_chunk(cls, chunk_buffer, filter_mask, filter_pipeline, itemsize):
# strip off 4-byte checksum from end of buffer
chunk_buffer = chunk_buffer[:-4]
elif filter_id == LZF_FILTER:
try:
import lzf
except ImportError as e:
raise ModuleNotFoundError(
"LZF codec requires optional package 'python-lzf'."
) from e
uncompressed_len = struct.unpack(">H", chunk_buffer[:2])[0]
chunk_buffer = lzf.decompress(chunk_buffer, uncompressed_len)
else:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ test = [
"flask-cors",
"h5netcdf",
"h5py",
"lz4",
"moto",
"netCDF4!=1.7.4", # github.com/Unidata/netcdf4-python/issues/1464
"pre-commit", # with ruff and mypy
Expand All @@ -62,7 +63,6 @@ test = [
"pytest-html",
"pytest-rerunfailures",
"pytest-xdist",
"python-lzf",
"s3fs>=2025.9.0", # v-mismatch with boto3 results in ancient s3fs
]

Expand Down
Loading