Skip to content

Commit

Permalink
fix: handle zero-valued contour spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Feb 19, 2024
1 parent 680d9cd commit 0609c0d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2.15.2
- fix: handle zero-valued contour spacing
- setup: bump dclab to 0.57.4 (handle zero-valued spacing for KDE contour)
2.15.1
- fix: statistics not updating when changing plot axes (#154)
- setup: bump dclab from 0.57.0 to 0.57.1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
description=description,
long_description=open('README.rst').read() if exists('README.rst') else '',
install_requires=["fcswrite>=0.5.1",
"dclab[dcor,http,lme4]>=0.57.1",
"dclab[dcor,http,lme4]>=0.57.4",
"h5py>=2.8.0",
"numpy>=1.21", # CVE-2021-33430
"pyqt5",
Expand Down
2 changes: 1 addition & 1 deletion shapeout2/gui/analysis/ana_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def _set_contour_spacing(self, spacing_x=None, spacing_y=None):
for spacing, spinBox in zip([spacing_x, spacing_y],
[self.doubleSpinBox_spacing_x,
self.doubleSpinBox_spacing_y]):
if spacing is None or np.isnan(spacing):
if spacing is None or np.isnan(spacing) or spacing == 0:
continue
else:
if spacing >= 1:
Expand Down

0 comments on commit 0609c0d

Please sign in to comment.