-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
Found during investigation of #180.
- Load Bruno example
- rename model1_data1 to "test" in condition table. Click "Yes" when prompted to change everywhere:
Traceback (most recent call last):
File "[...]PEtab_GUI/src/petab_gui/controllers/table_controllers.py", line 631, in rename_value
self.model._data_frame.loc[mask] = new_id
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "[...]PEtab_GUI/petab_gui_venv/lib/python3.12/site-packages/pandas/core/indexing.py", line 907, in __setitem__
indexer = self._get_setitem_indexer(key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "[...]PEtab_GUI/petab_gui_venv/lib/python3.12/site-packages/pandas/core/indexing.py", line 780, in _get_setitem_indexer
return self._convert_to_indexer(key, axis=0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "[...]PEtab_GUI/petab_gui_venv/lib/python3.12/site-packages/pandas/core/indexing.py", line 1522, in _convert_to_indexer
return self._get_listlike_indexer(key, axis)[1]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "[...]PEtab_GUI/petab_gui_venv/lib/python3.12/site-packages/pandas/core/indexing.py", line 1558, in _get_listlike_indexer
keyarr, indexer = ax._get_indexer_strict(key, axis_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "[...]PEtab_GUI/petab_gui_venv/lib/python3.12/site-packages/pandas/core/indexes/base.py", line 6200, in _get_indexer_strict
self._raise_if_missing(keyarr, indexer, axis_name)
File "[...]PEtab_GUI/petab_gui_venv/lib/python3.12/site-packages/pandas/core/indexes/base.py", line 6249, in _raise_if_missing
raise KeyError(f"None of [{key}] are in the [{axis_name}]")
KeyError: "None of [Index([('s', 'i', 'm', 'u', 'l', 'a', 't', 'i', 'o', 'n', 'C', 'o', 'n', 'd', 'i', 't', 'i', 'o', 'n', 'I', 'd'), ('p', 'r', 'e', 'e', 'q', 'u', 'i', 'l', 'i', 'b', 'r', 'a', 't', 'i', 'o', 'n', 'C', 'o', 'n', 'd', 'i', 't', 'i', 'o', 'n', 'I', 'd')], dtype='object')] are in the [index]"
Metadata
Metadata
Assignees
Labels
No labels