Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Box Plot widget: if a feature have no data, widget produce error #1568

Closed
brunap opened this issue Sep 16, 2016 · 0 comments
Closed

Box Plot widget: if a feature have no data, widget produce error #1568

brunap opened this issue Sep 16, 2016 · 0 comments
Assignees
Milestone

Comments

@brunap
Copy link

brunap commented Sep 16, 2016

Orange version

3.3.7

Expected bahavior

If a selected feature has no data, box plot widget should return warning.

Actual behavior

If a feature with no data is selected in the Variable box, Orange returns error.

Additional info (error data)

ValueError Traceback (most recent call last):
File "/Applications/Orange3.app/Contents/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/Orange/widgets/gui.py", line 2440, in call
self.func(**kwds)
File "/Applications/Orange3.app/Contents/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/Orange/widgets/visualize/owboxplot.py", line 247, in attr_changed
self.layout_changed()
File "/Applications/Orange3.app/Contents/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/Orange/widgets/visualize/owboxplot.py", line 318, in layout_changed
self.draw_axis()
File "/Applications/Orange3.app/Contents/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/Orange/widgets/visualize/owboxplot.py", line 512, in draw_axis
bottom = min(stat.a_min for stat in self.stats)
ValueError: min() arg is an empty sequence

@astaric astaric added this to the 3.3.8 milestone Oct 7, 2016
@VesnaT VesnaT self-assigned this Oct 7, 2016
kernc added a commit that referenced this issue Oct 7, 2016
[FIX] BoxPlot crashes on variables with no known values (Fixes #1568)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants