Skip to content

Commit

Permalink
ref: avoid dclab deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Feb 9, 2023
1 parent 21e94fc commit 62a9120
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shapeout2/gui/quick_view/qv_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def __setstate__(self, state):
def _check_file_open(self, rtdc_ds):
"""Check whether a dataset is still open"""
if isinstance(rtdc_ds, dclab.rtdc_dataset.RTDC_HDF5):
if rtdc_ds._h5:
if rtdc_ds.h5file:
# the file is open
isopen = True
else:
Expand Down
2 changes: 1 addition & 1 deletion shapeout2/pipeline/dataslot.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def remove_slot(slot_id):
ds = slot._dataset
if ds is not None:
if isinstance(ds, dclab.rtdc_dataset.RTDC_HDF5):
ds._h5.close()
ds.h5file.close()
Dataslot._instances.pop(slot_id)

@property
Expand Down

0 comments on commit 62a9120

Please sign in to comment.