Skip to content

Commit

Permalink
enh: minor minimization in waiting times
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed May 3, 2023
1 parent 6fb497a commit eba6808
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
2.13.3
- fix: casting error when using integer feature for plot color
- fix: also export logs and tables to .rtdc with prefix "so2exp_"
- enh: minor minimization in waiting times
- setup: bump dclab from 0.48.4 to 0.50.1
2.13.2
- docs: don't build PDF on rtd (failed)
Expand Down
6 changes: 3 additions & 3 deletions shapeout2/pipeline/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,15 +410,15 @@ def get_min_max(self, feat, plot_id=None, margin=0.0):
fmin = np.inf
fmax = -np.inf
for ds in dslist:
if np.sum(ds.filter.all):
if np.any(ds.filter.all):
if feat in ds:
fdata = ds[feat][ds.filter.all]
invalid = np.logical_or(np.isnan(fdata), np.isinf(fdata))
vdata = fdata[~invalid]
vmin = np.min(vdata)
vmax = np.max(vdata)
fmin = np.min([fmin, vmin])
fmax = np.max([fmax, vmax])
fmin = min(fmin, vmin)
fmax = max(fmax, vmax)
else:
warnings.warn("Dataset {} does not ".format(ds.identifier)
+ "contain the feature '{}'!".format(feat),
Expand Down

0 comments on commit eba6808

Please sign in to comment.