Genereates the following traceback. Note that no error occurs if both dataset are plotted individually in a new namespace.
Traceback (most recent call last):
File "C:\Users\User\HydroSensorReader\hydsensread\file_reader\compagny_file_reader\solinst_file_reader.py", line 587, in <module>
reader.plot()
File "C:\Users\User\HydroSensorReader\hydsensread\file_reader\compagny_file_reader\solinst_file_reader.py", line 108, in plot
*args, **kwargs)
File "C:\Users\User\HydroSensorReader\hydsensread\file_reader\abstract_file_reader.py", line 237, in plot
new_axis = self._add_axe_to_plot(main_axis, lines)
File "C:\Users\User\HydroSensorReader\hydsensread\file_reader\abstract_file_reader.py", line 253, in _add_axe_to_plot
new_axis.plot(self.records[new_line_def.param],
File "C:\Anaconda3\envs\spyder_dev2\lib\site-packages\pandas\core\frame.py", line 2995, in __getitem__
indexer = self.columns.get_loc(key)
File "C:\Anaconda3\envs\spyder_dev2\lib\site-packages\pandas\core\indexes\base.py", line 2899, in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
File "pandas\_libs\index.pyx", line 107, in pandas._libs.index.IndexEngine.get_loc
File "pandas\_libs\index.pyx", line 131, in pandas._libs.index.IndexEngine.get_loc
File "pandas\_libs\hashtable_class_helper.pxi", line 1607, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas\_libs\hashtable_class_helper.pxi", line 1614, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'LEVEL_cm'
Running this script, where the files are from the tests folder located here:
Genereates the following traceback. Note that no error occurs if both dataset are plotted individually in a new namespace.