ucgmsim / slurm_gm_workflow

Porting the GM workflow to run on new NeSI HPC (Maintainer: Jonney)
MIT License
0 stars 2 forks source link

Empirical calculation re-enabled on NeSI Mahuika #509

Closed sungeunbae closed 11 months ago

sungeunbae commented 11 months ago

Includes all the neccessary changes to re-enable empirical calculations.

Tested with

Designed to be flexible. You can either supply pre-computed Z-values (auto-selected if it exists alongside .ll, .vs30 file in StationInfo directory. We plan to update Z-vlalues when we generate a new grid, or update basin models), or use on-the-fly estimated Z-values, the same behaviour as the old Empirical calculation. If it is a historical event (defined in root_params.yaml, historical: true), then it will be extracting event details from the NZ GMDB source file. Otherwise, it will use the srf info file sitting next to the .srf file.

In task_config.yaml, you need

Empirical: ALL

This PR also includes necessary environment changes. This calculation is only running on Mahuika, so Empirical_Engine installation is skipped on Maui. When Mahuika env is created, it will automatically clone and install oq-engine package on Mahuika env only, so we don't waste project storage for having two copies of oq-engine.

If Empirical calculation is to be added to the existing environment, follow the manual steps below.

  1. Go to Mahuika terminal and navigate to $gmsim (environment root)
  2. git clone Empirical_Engine repo and enter ../Empirical_Engine/
  3. "pip install -r requirements.txt" then "pip install -e ./"