MouseLand / rastermap

a visualization method for neural data
GNU General Public License v3.0
193 stars 46 forks source link

Loading new data sometimes crashes rastermap #5

Closed Vanwalleghem closed 1 year ago

Vanwalleghem commented 5 years ago

When loading a new dataset using "Load Data Matrix" while a dataset is already loaded results in the following error

Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\mouseland\lib\site-packages\rastermap\gui.py", line 629, in mouse_moved_embedding
    dists = (self.embedding[self.selected,0] - x)**2 + (self.embedding[self.selected,1] - y)**2
IndexError: index 1 is out of bounds for axis 1 with size 1
carsen-stringer commented 1 year ago

hmm let us know if you still get errors with the new version