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

Bug in histogram viewer #1701

Closed
astrofrog opened this issue May 3, 2018 · 0 comments
Closed

Bug in histogram viewer #1701

astrofrog opened this issue May 3, 2018 · 0 comments

Comments

@astrofrog
Copy link
Member

I'll try and get hold of the file that causes this:

Traceback (most recent call last):

File "/Users/agoodman/anaconda3/lib/python3.6/site-packages/glue/utils/misc.py", line 58, in result
  return func(*args, **kwargs)
File "/Users/agoodman/anaconda3/lib/python3.6/site-packages/glue/utils/qt/colors.py", line 139, in update_prop
  setattr(client, prop, widget.color())
File "/Users/agoodman/anaconda3/lib/python3.6/site-packages/glue/external/echo/core.py", line 256, in __setattr__
  self._notify_global(**{attribute: value})
File "/Users/agoodman/anaconda3/lib/python3.6/site-packages/glue/utils/matplotlib.py", line 159, in wrapper
  return func(*args, **kwargs)
File "/Users/agoodman/anaconda3/lib/python3.6/site-packages/glue/viewers/matplotlib/state.py", line 135, in _notify_global
  super(MatplotlibLayerState, self)._notify_global(*args, **kwargs)
File "/Users/agoodman/anaconda3/lib/python3.6/site-packages/glue/external/echo/core.py", line 251, in _notify_global
  callback(**kwargs)
File "/Users/agoodman/anaconda3/lib/python3.6/site-packages/glue/external/echo/list.py", line 126, in callback
  self.notify(instance, wrapped_list, wrapped_list)
File "/Users/agoodman/anaconda3/lib/python3.6/site-packages/glue/external/echo/core.py", line 128, in notify
  cback(new)
File "/Users/agoodman/anaconda3/lib/python3.6/site-packages/glue/external/echo/core.py", line 243, in _notify_global_lists
  self._notify_global(**properties)
File "/Users/agoodman/anaconda3/lib/python3.6/site-packages/glue/utils/matplotlib.py", line 159, in wrapper
  return func(*args, **kwargs)
File "/Users/agoodman/anaconda3/lib/python3.6/site-packages/glue/viewers/matplotlib/state.py", line 90, in _notify_global
  super(MatplotlibDataViewerState, self)._notify_global(*args, **kwargs)
File "/Users/agoodman/anaconda3/lib/python3.6/site-packages/glue/external/echo/core.py", line 251, in _notify_global
  callback(**kwargs)
File "/Users/agoodman/anaconda3/lib/python3.6/site-packages/glue/viewers/histogram/layer_artist.py", line 176, in _update_histogram
  self._calculate_histogram()
File "/Users/agoodman/anaconda3/lib/python3.6/site-packages/glue/utils/matplotlib.py", line 159, in wrapper
  return func(*args, **kwargs)
File "/Users/agoodman/anaconda3/lib/python3.6/site-packages/glue/viewers/histogram/layer_artist.py", line 75, in _calculate_histogram
  self.mpl_hist_unscaled, self.mpl_bins, self.mpl_artists = self.axes.hist(x, range=range, bins=bins)
File "/Users/agoodman/anaconda3/lib/python3.6/site-packages/matplotlib/__init__.py", line 1717, in inner
  return func(ax, *args, **kwargs)
File "/Users/agoodman/anaconda3/lib/python3.6/site-packages/matplotlib/axes/_axes.py", line 6165, in hist
  m, bins = np.histogram(x[i], bins, weights=w[i], **hist_kwargs)
File "/Users/agoodman/anaconda3/lib/python3.6/site-packages/numpy/lib/function_base.py", line 797, in histogram
  decrement = tmp_a_data < bin_edges[indices]
IndexError: index -9223372036854775808 is out of bounds for axis 1 with size 16 Traceback (most recent call last):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant