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/land_spec/hwmA51800.uci fails with KeyError #180

Open
timcera opened this issue Oct 3, 2024 · 1 comment

Comments

@timcera
Copy link
Contributor

timcera commented Oct 3, 2024

hsp2 import_uci ./tests/land_spec/hwmA51800.uci ./tests/land_spec/ref_run_hwmA51800.h5
hsp2 run ./tests/land_spec/ref_run_hwmA51800.h5

fails with:

2024-10-02 22:48:40.71   Processing started for file ./tests/land_spec/ref_run_hwmA51800.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 202, in state_om_model_run_prep
    state_om_model_root_object(state, siminfo)
  File "/var/home/timcera/programming/HSPsquared/src/hsp2/hsp2/om.py", line 194, in state_om_model_root_object
    for seg_name, seg_path in state["hsp_segments"].items():
                              ~~~~~^^^^^^^^^^^^^^^^
KeyError: 'hsp_segments'
@rburghol
Copy link
Contributor

rburghol commented Oct 5, 2024

Thanks @timcera I will check this out asap.

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

2 participants