DTOcean / dtocean

Design and techno-economic assessment of marine renewable energy arrays
https://dtocean.github.io
GNU General Public License v3.0
4 stars 6 forks source link

Displaying Installation module test data causes crash. #16

Closed H0R5E closed 7 years ago

H0R5E commented 7 years ago

After loading the inputs_wp5.py file in dtocean_core\test_data in the GUI, dtocean-qt crashes when trying to view the data:

2017-03-07 11:39:24,025 - CRITICAL - dtocean_gui.main - A KeyError occurred: 0L
2017-03-07 11:39:24,756 - CRITICAL - dtocean_gui.main -   File "C:\DTOcean\lib\site-packages\pandasqt\models\DataFrameModel.py", line 266, in data
    result = convertValue(rowi, coli, columnDtype)
  File "C:\DTOcean\lib\site-packages\pandasqt\models\DataFrameModel.py", line 239, in convertValue
    value = int(self._dataFrame.ix[row, col])
  File "C:\DTOcean\lib\site-packages\pandas\core\indexing.py", line 75, in __getitem__
    return self._getitem_tuple(key)
  File "C:\DTOcean\lib\site-packages\pandas\core\indexing.py", line 784, in _getitem_tuple
    return self._getitem_lowerdim(tup)
  File "C:\DTOcean\lib\site-packages\pandas\core\indexing.py", line 908, in _getitem_lowerdim
    section = self._getitem_axis(key, axis=i)
  File "C:\DTOcean\lib\site-packages\pandas\core\indexing.py", line 1018, in _getitem_axis
    return self._get_label(key, axis=axis)
  File "C:\DTOcean\lib\site-packages\pandas\core\indexing.py", line 93, in _get_label
    return self.obj._xs(label, axis=axis)
  File "C:\DTOcean\lib\site-packages\pandas\core\generic.py", line 1749, in xs
    loc = self.index.get_loc(key)
  File "C:\DTOcean\lib\site-packages\pandas\indexes\base.py", line 1947, in get_loc
    return self._engine.get_loc(self._maybe_cast_indexer(key))
  File "pandas\index.pyx", line 137, in pandas.index.IndexEngine.get_loc (pandas\index.c:4154)
  File "pandas\index.pyx", line 159, in pandas.index.IndexEngine.get_loc (pandas\index.c:4018)
  File "pandas\hashtable.pyx", line 303, in pandas.hashtable.Int64HashTable.get_item (pandas\hashtable.c:6610)
  File "pandas\hashtable.pyx", line 309, in pandas.hashtable.Int64HashTable.get_item (pandas\hashtable.c:6554)