Skip to content

Commit

Permalink
linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
magland committed Sep 18, 2024
1 parent 3ff8245 commit e9fbb55
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/hdmf/backends/hdf5/h5_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
import logging

from ...array import Array
from ...data_utils import DataIO, AbstractDataChunkIterator, append_data
from ...data_utils import DataIO, AbstractDataChunkIterator
from ...query import HDMFDataset, ReferenceResolver, ContainerResolver, BuilderResolver
from ...region import RegionSlicer
from ...spec import SpecWriter, SpecReader
from ...utils import docval, getargs, popargs, get_docval, get_data_shape
from ...utils import docval, getargs, popargs, get_docval


class HDF5IODataChunkIteratorQueue(deque):
Expand Down Expand Up @@ -450,7 +450,8 @@ class H5DataIO(DataIO):
'default': None},
{'name': 'compression',
'type': (str, bool, int, 'Codec'),
'doc': 'Compression strategy. If a bool is given, then gzip compression will be used by default. Codec only applies to LINDI.' +
'doc': 'Compression strategy. If a bool is given, then gzip compression will be used by default.' +
'Codec only applies to LINDI.' +
'http://docs.h5py.org/en/latest/high/dataset.html#dataset-compression',
'default': None},
{'name': 'compression_opts',
Expand Down Expand Up @@ -533,7 +534,10 @@ def __init__(self, **kwargs):
if isinstance(self.__iosettings.get('compression', None), str):
if not self.filter_available(self.__iosettings.get('compression', None),
self.__allow_plugin_filters):
msg = "%s compression may not be supported by this version of h5py." % str(self.__iosettings['compression'])
msg = (

Check warning on line 537 in src/hdmf/backends/hdf5/h5_utils.py

View check run for this annotation

Codecov / codecov/patch

src/hdmf/backends/hdf5/h5_utils.py#L537

Added line #L537 was not covered by tests
f"{self.__iosettings['compression']} compression may not be supported "
"by this version of h5py."
)
if not self.__allow_plugin_filters:
msg += " Set `allow_plugin_filters=True` to enable the use of dynamically-loaded plugin filters."
raise ValueError(msg)

Check warning on line 543 in src/hdmf/backends/hdf5/h5_utils.py

View check run for this annotation

Codecov / codecov/patch

src/hdmf/backends/hdf5/h5_utils.py#L542-L543

Added lines #L542 - L543 were not covered by tests
Expand Down

0 comments on commit e9fbb55

Please sign in to comment.