Skip to content

Commit

Permalink
fix: regression missing check for basin availability
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jan 1, 2024
1 parent 3ca9ca3 commit 4c6e7af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
0.56.3
- fix: regression missing check for basin availability
0.56.2
- enh: perform basin availability checks in daemon thread
0.56.1
Expand Down
13 changes: 8 additions & 5 deletions dclab/rtdc_dataset/feat_basin.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,14 @@ def features(self):
Return nested basin features
"""
if self._features is None:
# If features are not specified already, either by previous call
# to this method or during initialization from basin definition,
# then make the innate and *all* the basin features available.
self._features = sorted(set(self.ds.features_innate
+ self.ds.features_basin))
if self.is_available():
# If features are not specified already, either by previous call
# to this method or during initialization from basin definition,
# then make the innate and *all* the basin features available.
self._features = sorted(set(self.ds.features_innate
+ self.ds.features_basin))
else:
self._features = []
return self._features

def as_dict(self):
Expand Down

0 comments on commit 4c6e7af

Please sign in to comment.