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

BoxPlot error subgroups #4242

Closed
Hrovatin opened this issue Dec 3, 2019 · 5 comments
Closed

BoxPlot error subgroups #4242

Hrovatin opened this issue Dec 3, 2019 · 5 comments
Labels
bug report Bug is reported by user, not yet confirmed by the core team

Comments

@Hrovatin
Copy link
Contributor

Hrovatin commented Dec 3, 2019

When making a boxplot and selecting subgroups the below error occurs.
Data was before transposed.

-------------------------------------------------------------------------------
---------------------------- ValueError Exception -----------------------------
Traceback (most recent call last):
  File "/home/karin/Documents/git/orange3venv/lib/python3.6/site-packages/orangewidget/gui.py", line 1693, in __call__
    self.func(**kwds)
  File "/home/karin/Documents/git/orange3/Orange/widgets/visualize/owboxplot.py", line 457, in grouping_changed
    self.update_graph()
  File "/home/karin/Documents/git/orange3/Orange/widgets/visualize/owboxplot.py", line 472, in update_graph
    self.compute_box_data()
  File "/home/karin/Documents/git/orange3/Orange/widgets/visualize/owboxplot.py", line 497, in compute_box_data
    dataset, attr, self.group_var)
  File "/home/karin/Documents/git/orange3/Orange/statistics/contingency.py", line 286, in get_contingency
    dat, col_variable, row_variable, col_unknowns, row_unknowns)
  File "/home/karin/Documents/git/orange3/Orange/statistics/contingency.py", line 194, in __init__
    self.from_data(dat, col_variable, row_variable)
  File "/home/karin/Documents/git/orange3/Orange/statistics/contingency.py", line 220, in from_data
    conts = data._compute_contingency([col_variable], row_variable)
  File "/home/karin/Documents/git/orange3/Orange/data/table.py", line 1490, in _compute_contingency
    col_data, classes_, n_rows, W_)
  File "Orange/data/_contingency.pyx", line 11, in Orange.data._contingency.contingency_floatarray
ValueError: Buffer dtype mismatch, expected 'intp_t' but got 'double'
-------------------------------------------------------------------------------

Version:
Orange 3.23.0

@Hrovatin Hrovatin added the bug report Bug is reported by user, not yet confirmed by the core team label Dec 3, 2019
@Hrovatin Hrovatin changed the title BoxPlot wrror subgroups BoxPlot error subgroups Dec 3, 2019
@PrimozGodec
Copy link
Contributor

PrimozGodec commented Dec 3, 2019

I was just dealing with this kind of error last week #4231 so I hope it is fixed in a master version. Have you tried with a current master version?

@ajdapretnar
Copy link
Contributor

While checking this bug, I found a new one. 😅
test.xlsx

Select var C and subgroup D. I can reopen a new issue if this one is not a duplicate.

@PrimozGodec
Copy link
Contributor

PrimozGodec commented Dec 4, 2019

@ajdapretnar I tried to reproduce this error but I can. What happens in your case? Does it returns an error or just show the wrong statistics?

@ajdapretnar
Copy link
Contributor

@PrimozGodec You are right, I guess I forgot to run pip install -e . to build the latest C files. Closing this.

@PrimozGodec
Copy link
Contributor

Yep, that could be a reason?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Bug is reported by user, not yet confirmed by the core team
Projects
None yet
Development

No branches or pull requests

3 participants