Hi all,
I have this error when trying to upload weather data into the Editor (I make my own data files from monitoring data):
Traceback (most recent call last):
File "peewee.py", line 7295, in get
File "peewee.py", line 4581, in __getitem__
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "actions\import_weather.py", line 328, in add_weather_files_type
File "peewee.py", line 6838, in get
File "peewee.py", line 7298, in get
database.project.climate.Weather_fileDoesNotExist: <Model: Weather_file> instance matching query does not exist:
SQL: SELECT "t1"."id", "t1"."filename", "t1"."type", "t1"."lat", "t1"."lon" FROM "weather_file" AS "t1" WHERE (("t1"."filename" = ?) AND ("t1"."type" = ?)) LIMIT ? OFFSET ?
Params: ['Maskinonge_River.pcp', 'pcp', 1, 0]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "swatplus_api.py", line 111, in <module>
File "actions\import_weather.py", line 410, in import_data
File "actions\import_weather.py", line 125, in import_data
File "actions\import_weather.py", line 257, in add_weather_files
File "actions\import_weather.py", line 337, in add_weather_files_type
ValueError: Invalid value at line 3 of
\Maskinonge_River.pcp. Expecting nbyr, tstep, lat, long, elev values separated by a space.
[PYI-16224:ERROR] Failed to execute script 'swatplus_api' due to unhandled exception!
Can you please help me interpret it? I opened the file in Notepad++ and found that the spacing changes (line 1) from one item to the next - do you know whether it's best to just have tabs? And also, do you know whether the naming of the pcp file matters? I think my cli file is correctly pointing to the pcp, tmp, and pet files, by the way.
Many thanks and best wishes,
Camilla Negri