Skip to content

Commit

Permalink
reg: inverted case check
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jan 11, 2024
1 parent 5dcc337 commit 99fb08a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dclab/rtdc_dataset/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ def rectify_metadata(self):
# ignore empty features in the checks further below
for feat in feats[:]: # iterate over a copy of the list
obj = self.h5file["events"][feat]
if ((isinstance(feat, h5py.Group) and len(obj) == 0) # groups
or obj.shape[0] == 0): # datasets
if ((isinstance(feat, h5py.Dataset) and obj.shape[0] == 0) # ds
or len(obj) == 0): # groups
feats.remove(feat)

# set samples per event
Expand Down

0 comments on commit 99fb08a

Please sign in to comment.