I am deploying 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 GitHub - FluidsLab/fluid_ws and the link to the URL for the app is streamlitstuff · Streamlit.
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 message. I have attached the image of what is seen on the website when a .csv data file is inputted.
It looks like three functions in particular have been highlighted as problematic, can anyone advise? I can provide more information if necessary.
2024-07-06 17:40:29.304 Uncaught app exception
Traceback (most recent call last):
File “C:\Users\holli\miniconda3\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py”, line 600, in _run_script
exec(code, module.dict)
File “C:\Users\holli\streamlitstuff.py”, line 61, in
data = Data(ds, pandas=True)
^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\holli\data_reader.py”, line 12, in init
self.parameters = self.generate_list_of_parameters()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\holli\data_reader.py”, line 24, in generate_list_of_parameters
units=getattr(Units(), key.split(‘-’)[1]),
~~~~~~~~~~~~~~^^^
IndexError: list index out of range