I am trying to deploy an app which processes a .csv data file inputted by the user and performs some dimensional analysis with it and produces plots. The Github repo can be found at 1.
The file which I run is called ‘‘streamlitstuff.py’’ and the other file on the repo which has errors is the data reader file ‘‘data_reader.py’’.
The website is created as expected but when I try to input a .csv data file in the required format I receive the below error messages, can anyone advise? I have also attached an image for what is seen on the website with the same message.
Although there is a message about the index being out of range, I have used this data file before with a previous version of the code about two years ago so there has been some bug in the code which developed since then or something which no longer works and needs to be changed.
File “C:Usersholliminiconda3Libsite-packagesstreamlitruntimescriptrunnerscript_runner.py”,
line 600, in _run_script
exec(code, module.dict)
File “C:Usershollistreamlitstuff.py”, line 61, in
data = Data(ds, pandas=True)
^^^^^^^^^^^^^^^^^^^^^
File “C:Usershollidata_reader.py”, line 12, in init
self.parameters = self.generate_list_of_parameters()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:Usershollidata_reader.py”, line 24, in generate_list_of_parameters
units=getattr(Units(), key.split(‘-’)[1]),
~~~~~~~~~~~~~~^^^
IndexError: list index out of range