larray-project / larray-editor

Graphical User Interface for LArray
GNU General Public License v3.0
2 stars 2 forks source link

when loading a new dataset with an array selected, throws an Exception #234

Closed gdementen closed 2 years ago

gdementen commented 2 years ago

Happens whether we open via open data or open recent data, or open example dataset. Maybe "New" too?

It tries uses the name of the array selected in the old session and tries to open that in the new Session, which fails most of the time.

Traceback (most recent call last):
  File "[...]\larray_editor\editor.py", line 745, in on_selection_changed
    array = self.data[name]
  File "[...]\larray\core\session.py", line 268, in __getitem__
    return self._objects[key]
KeyError: 'f'
gdementen commented 2 years ago

Cannot reproduce in any of my "almost ready" branches. I guess this was only an artefact of a WIP branch. Strange.