From 99fb08aec30db585d7b9944552dfa69bcaad005d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20M=C3=BCller?= Date: Thu, 11 Jan 2024 08:11:27 +0100 Subject: [PATCH] reg: inverted case check --- dclab/rtdc_dataset/writer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dclab/rtdc_dataset/writer.py b/dclab/rtdc_dataset/writer.py index 3c90e3c0..3cc2f422 100644 --- a/dclab/rtdc_dataset/writer.py +++ b/dclab/rtdc_dataset/writer.py @@ -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