From e9fbb55a9b09d380cada53b5c5727951a8b0c775 Mon Sep 17 00:00:00 2001 From: Jeremy Magland Date: Wed, 18 Sep 2024 16:31:04 -0400 Subject: [PATCH] linter fix --- src/hdmf/backends/hdf5/h5_utils.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/hdmf/backends/hdf5/h5_utils.py b/src/hdmf/backends/hdf5/h5_utils.py index c7b31c51b..763c0eaec 100644 --- a/src/hdmf/backends/hdf5/h5_utils.py +++ b/src/hdmf/backends/hdf5/h5_utils.py @@ -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): @@ -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', @@ -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 = ( + 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)