Skip to content

Commit

Permalink
update stacklevel to match upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
magland committed Sep 18, 2024
1 parent 86e0cfd commit 3ff8245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hdmf/backends/hdf5/h5_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def __init__(self, **kwargs):
if isinstance(self.data, Dataset):
for k in self.__iosettings.keys():
warnings.warn("%s in H5DataIO will be ignored with H5DataIO.data being an HDF5 dataset" % k,
stacklevel=4)
stacklevel=3)

self.__dataset = None

Expand Down Expand Up @@ -620,7 +620,7 @@ def _check_compression_options(self):
if self.__iosettings['compression'] not in ['gzip', h5py_filters.h5z.FILTER_DEFLATE]:
warnings.warn(str(self.__iosettings['compression']) + " compression may not be available "

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

View check run for this annotation

Codecov / codecov/patch

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

Added line #L621 was not covered by tests
"on all installations of HDF5. Use of gzip is recommended to ensure portability of "
"the generated HDF5 files.", stacklevel=3)
"the generated HDF5 files.", stacklevel=4)

@staticmethod
def filter_available(filter, allow_plugin_filters):
Expand Down

0 comments on commit 3ff8245

Please sign in to comment.