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

Histogram cannot be created #7

Open
Ghotrix opened this issue Apr 7, 2021 · 0 comments
Open

Histogram cannot be created #7

Ghotrix opened this issue Apr 7, 2021 · 0 comments

Comments

@Ghotrix
Copy link

Ghotrix commented Apr 7, 2021

I'm not able to create a histogram after Particle Detection step:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python3.9/tkinter/__init__.py", line 1892, in __call__
    return self.func(*args)
  File "/home/ghotrix/.local/lib/python3.9/site-packages/coffeegrindsize/scripts/coffeegrindsize.py", line 600, in <lambda>
    histogram_button = Button(toolbar, text="Create Histogram", command=lambda: self.create_histogram(None), highlightbackground=toolbar_bg)
  File "/home/ghotrix/.local/lib/python3.9/site-packages/coffeegrindsize/scripts/coffeegrindsize.py", line 2973, in create_histogram
    figdata = figdata.reshape(fig.canvas.get_width_height()[::-1] + (3,))
ValueError: cannot reshape array of size 5298750 into shape (1130,1000,3)
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

No branches or pull requests

1 participant