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

facilitate scripting hazard calcs #34

Open
chrisdicaprio opened this issue May 21, 2024 · 1 comment
Open

facilitate scripting hazard calcs #34

chrisdicaprio opened this issue May 21, 2024 · 1 comment
Assignees
Labels

Comments

@chrisdicaprio
Copy link
Collaborator

The paradigm used for starting hazard calculation jobs is to start from an input file. Make it easy to modify the input args for a calculation (e.g. change the logic trees, locations, vs30s, etc) and run multiple different hazard calculations.

@chrisbc
Copy link
Member

chrisbc commented May 28, 2024

@chrisdicaprio a few things I ran into getting running #30 locally...

  • it took a while getting local config file set up correctly. FYI in THS and other projects we use python-dotenv which support .env and standard envvars in a flexible way.
  • The docs had a THP_ prefix which need to be removed.
  • log messages are sometimes a bit terse/incomplete. If logging what's passed in make sure to include all the values. (e.g. my config wasn't working because I had a wrong IMT in config. It woujld have been helpful t see all the filter args logged in data.load_realisations().

@chrisdicaprio chrisdicaprio self-assigned this Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants