You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In running the station.py command read_flux_out() with outputs found in the Hello SCHISM tutorial, the following error arises: File "C:\Users%userprofile%\Miniconda3\envs\schimpy\lib\site-packages\schimpy\station.py", line 304, in flux_stations_from_yaml
if not "linestrings" in content: raise ValueError("Could not fine 'linestrings' key. Was the input a string or filename? Valid file?")
I think this might be an issue of updated formatting for flux.out in SCHISM 5.10?
Traceback (most recent call last):
File "C:\Users%userprofile%\Miniconda3\envs\schimpy\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Users%userprofile%\Miniconda3\envs\schimpy\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "c:\Users%userprofile%.vscode\extensions\ms-python.python-2022.12.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher/../..\debugpy_main.py", line 39, in
cli.main()
File "c:\Users%userprofile%.vscode\extensions\ms-python.python-2022.12.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 430, in main
run()
File "c:\Users%userprofile%.vscode\extensions\ms-python.python-2022.12.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 284, in run_file
runpy.run_path(target, run_name="main")
File "c:\Users%userprofile%.vscode\extensions\ms-python.python-2022.12.1\pythonFiles\lib\python\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runpy.py", line 322, in run_path
pkg_name=pkg_name, script_name=fname)
File "c:\Users%userprofile%.vscode\extensions\ms-python.python-2022.12.1\pythonFiles\lib\python\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runpy.py", line 136, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "c:\Users%userprofile%.vscode\extensions\ms-python.python-2022.12.1\pythonFiles\lib\python\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runpy.py", line 124, in _run_code
exec(code, run_globals)
File "d:\SCHISM\Hello_SCHISM_Tutorial\tutorial_workshop_5.10\t1_output\exercises\exercise2.py", line 15, in
all_ts = read_flux_out(outputs_fpath, station_fpath, time_basis)
File "C:\Users%userprofile%\Miniconda3\envs\schimpy\lib\site-packages\schimpy\station.py", line 327, in read_flux_out
names = station_names_from_file(names)
File "C:\Users%userprofile%\Miniconda3\envs\schimpy\lib\site-packages\schimpy\station.py", line 319, in station_names_from_file
station_names = flux_stations_from_yaml(fpath)
File "C:\Users%userprofile%\Miniconda3\envs\schimpy\lib\site-packages\schimpy\station.py", line 304, in flux_stations_from_yaml
if not "linestrings" in content: raise ValueError("Could not fine 'linestrings' key. Was the input a string or filename? Valid file?")
ValueError: Could not fine 'linestrings' key. Was the input a string or filename? Valid file?
The text was updated successfully, but these errors were encountered:
Description
In running the station.py command read_flux_out() with outputs found in the Hello SCHISM tutorial, the following error arises:
File "C:\Users%userprofile%\Miniconda3\envs\schimpy\lib\site-packages\schimpy\station.py", line 304, in flux_stations_from_yaml
if not "linestrings" in content: raise ValueError("Could not fine 'linestrings' key. Was the input a string or filename? Valid file?")
I think this might be an issue of updated formatting for flux.out in SCHISM 5.10?
What I Did
station_fpath = '../flow_station_xsects.yaml'
time_basis = datetime.datetime(2009, 2, 10)
set_color_cycle_dark2()
outputs_fpath = "../outputs/flux.out"
station_name = "montezuma_mouth"
all_ts = read_flux_out(outputs_fpath, station_fpath, time_basis)
Traceback (most recent call last):
File "C:\Users%userprofile%\Miniconda3\envs\schimpy\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Users%userprofile%\Miniconda3\envs\schimpy\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "c:\Users%userprofile%.vscode\extensions\ms-python.python-2022.12.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher/../..\debugpy_main.py", line 39, in
cli.main()
File "c:\Users%userprofile%.vscode\extensions\ms-python.python-2022.12.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 430, in main
run()
File "c:\Users%userprofile%.vscode\extensions\ms-python.python-2022.12.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 284, in run_file
runpy.run_path(target, run_name="main")
File "c:\Users%userprofile%.vscode\extensions\ms-python.python-2022.12.1\pythonFiles\lib\python\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runpy.py", line 322, in run_path
pkg_name=pkg_name, script_name=fname)
File "c:\Users%userprofile%.vscode\extensions\ms-python.python-2022.12.1\pythonFiles\lib\python\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runpy.py", line 136, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "c:\Users%userprofile%.vscode\extensions\ms-python.python-2022.12.1\pythonFiles\lib\python\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runpy.py", line 124, in _run_code
exec(code, run_globals)
File "d:\SCHISM\Hello_SCHISM_Tutorial\tutorial_workshop_5.10\t1_output\exercises\exercise2.py", line 15, in
all_ts = read_flux_out(outputs_fpath, station_fpath, time_basis)
File "C:\Users%userprofile%\Miniconda3\envs\schimpy\lib\site-packages\schimpy\station.py", line 327, in read_flux_out
names = station_names_from_file(names)
File "C:\Users%userprofile%\Miniconda3\envs\schimpy\lib\site-packages\schimpy\station.py", line 319, in station_names_from_file
station_names = flux_stations_from_yaml(fpath)
File "C:\Users%userprofile%\Miniconda3\envs\schimpy\lib\site-packages\schimpy\station.py", line 304, in flux_stations_from_yaml
if not "linestrings" in content: raise ValueError("Could not fine 'linestrings' key. Was the input a string or filename? Valid file?")
ValueError: Could not fine 'linestrings' key. Was the input a string or filename? Valid file?
The text was updated successfully, but these errors were encountered: