SPF-OST / pytrnsys

Package that provides functionality to run and process, plot and report TRNSYS simulations
https://pytrnsys.readthedocs.io
GNU General Public License v3.0
11 stars 8 forks source link

Return proper error message when no data was loaded during processing #71

Open martin-neugebauer opened 3 years ago

martin-neugebauer commented 3 years ago

If no data was loaded (potentially because the respective folder does not contain a lst-file) an exception with a proper error message should be raised. At the moment an error only occurs at a later stage, e.g. in the form of a key error or as a problem of empty axes when plotting.

martin-neugebauer commented 2 years ago

This is also an issue for empty Prt files. Normally a monthly Prt file looks like this: image If it is empty, however image it leads to the following error: image This should be caught at the proper stage and a warning should be logged instead of crashing.