Research in Natural Hazards Engineering > Regional Hazard Simulation (R2D, rWhale)

EQHazard: generate error codes

(1/2) > >>

Anne Hulsey:
It would be really helpful to have error messages if EQHazard doesn't work. Currently it gives a 0 if successful and an meaningless number if it doesn't. It look me over 4 hours to discover that I had misspelled Chiou wrong in the GMPE name.

elhaddad:
Thanks for reporting this issue. We currently do not validate the input so any mistake in the input gets reported as an unhandled exception, which in this case return a -ve error code (-2).
We will add input validation and error codes for incorrect GMPE or ERF in the next release, with distinct error codes values.

Anne Hulsey:
Great, thank you.

elhaddad:
This issue is now fixed in the latest preview release.
https://github.com/NHERI-SimCenter/GroundMotionUtilities/releases/tag/v1.1.1

We improved error handling for typos in IMR or ERF names.
For unhandled exception, the program will print the call stack, which can help debugging in the future.
We also plan to add more logging in the next release and allow user to change logging verbosity.

Anne Hulsey:
Much appreciated!

Navigation

[0] Message Index

[#] Next page

Go to full version