Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HSPsquared model created from ./tests/ZRW_WestIndian/HSPF.uci fails with KeyError #179

Open
timcera opened this issue Oct 3, 2024 · 0 comments

Comments

@timcera
Copy link
Contributor

timcera commented Oct 3, 2024

hsp2 import_uci ./tests/ZRW_WestIndian/HSPF.uci ./tests/ZRW_WestIndian/ref_run_HSPF.h5
hsp2 run ./tests/ZRW_WestIndian/ref_run_HSPF.h5

fails with the error:

2024-10-02 22:47:31.65   Processing started for file ./tests/ZRW_WestIndian/ref_run_HSPF.h5; saveall=True
Traceback (most recent call last):
  File "/var/home/timcera/miniconda3/envs/default311/bin/hsp2", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/var/home/timcera/programming/HSPsquared/src/hsp2/hsp2tools/HSP2_CLI.py", line 9, in main
    cltoolbox.main()
  File "/var/home/timcera/miniconda3/envs/default311/lib/python3.11/site-packages/cltoolbox/cltoolbox.py", line 323, in __call__
    return self.execute(sys.argv[1:])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/timcera/miniconda3/envs/default311/lib/python3.11/site-packages/cltoolbox/cltoolbox.py", line 319, in execute
    return command(*real_args)
           ^^^^^^^^^^^^^^^^^^^
  File "/var/home/timcera/programming/HSPsquared/src/hsp2/hsp2tools/commands.py", line 26, in run
    main(io_manager, saveall=saveall, jupyterlab=compress)
  File "/var/home/timcera/programming/HSPsquared/src/hsp2/hsp2/main.py", line 119, in main
    state_om_model_run_prep(state, io_manager, siminfo)
  File "/var/home/timcera/programming/HSPsquared/src/hsp2/hsp2/om.py", line 206, in state_om_model_run_prep
    model_loader_recursive(state["model_data"], model_root_object)
  File "/var/home/timcera/programming/HSPsquared/src/hsp2/hsp2/om.py", line 416, in model_loader_recursive
    model_object = model_class_loader(object_name, model_props, container)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/timcera/programming/HSPsquared/src/hsp2/hsp2/om.py", line 336, in model_class_loader
    model_object = SpecialAction(
                   ^^^^^^^^^^^^^^
  File "/var/home/timcera/programming/HSPsquared/src/hsp2/hsp2/om_special_action.py", line 23, in __init__
    super().__init__(name, container, model_props)
  File "/var/home/timcera/programming/HSPsquared/src/hsp2/hsp2/om_model_object.py", line 87, in __init__
    self.parse_model_props(model_props)
  File "/var/home/timcera/programming/HSPsquared/src/hsp2/hsp2/om_special_action.py", line 62, in parse_model_props
    domain = self.state["model_object_cache"][
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: '/STATE/RCHRES_R110'
@timcera timcera changed the title HSPsquared model created from ./tests/ZRW_WestIndian/HSPF.uci HSPsquared model created from ./tests/ZRW_WestIndian/HSPF.uci fails with KeyError Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant