FileNotFoundError: [Errno 2] No such file or directory: '/ldcast/ldcast/scripts/../data/rate-tp-0/'
p3jitnath opened this issue · comments
Upon running the eval_pysteps.py
file I encountered the FileNotFoundError.
Would you mind checking this for me?
Traceback (most recent call last):
File "/ldcast/ldcast/scripts/eval_pysteps.py", line 50, in <module>
Fire(main)
File "/venv/lib/python3.10/site-packages/fire/core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/venv/lib/python3.10/site-packages/fire/core.py", line 475, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "/venv/lib/python3.10/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "/ldcast/ldcast/scripts/eval_pysteps.py", line 46, in main
create_evaluation_ensemble(**config)
File "/ldcast/ldcast/scripts/eval_pysteps.py", line 22, in create_evaluation_ensemble
data_iter = eval_data.get_data_iter(
File "/ldcast/ldcast/scripts/eval_data.py", line 50, in get_data_iter
return func(**kwargs)
File "/ldcast/ldcast/scripts/eval_data.py", line 27, in data_iter_testset
return data_iter_mchrzc(**kwargs, split="test")
File "/ldcast/scripts/eval_data.py", line 15, in data_iter_mchrzc
datamodule = train_genforecast.setup_data(
File "/ldcast/scripts/train_nowcaster.py", line 65, in setup_data
raw = {
File "/ldcast/scripts/train_nowcaster.py", line 66, in <dictcomp>
var: patches.load_all_patches(
File "/ldcast/features/patches.py", line 398, in load_all_patches
files = os.listdir(patch_dir)
FileNotFoundError: [Errno 2] No such file or directory: '/ldcast/ldcast/scripts/../data/rate-tp-0/'
Thank you for your bug reports and my apologies for the inconvenience. It seems we introduced quite a few little problems while migrating the code from the development version to the released version. These should have been caught earlier.
Anyway, I have fixed the problem mentioned here. I have also fixed all the scripts for producing the evaluation data - eval_genforecast.py
, eval_dgmr.py
and eval_pysteps.py
- and verified that they will run using the released code.
Thanks @jleinonen for the prompt bug fixes. Hope the back-to-back issues were not a big inconvenience.
ldcast happens to be a perfect base to work on my MSc thesis this term.
Hence, I tried to get things up and running as I could.