GNS-Science / toshi-hazard-post

Hazard post-processing pipeline as serverless AWS infrastructure.
MIT License
0 stars 1 forks source link

refactor v2: skeleton #25

Closed chrisdicaprio closed 2 months ago

chrisdicaprio commented 5 months ago

We want a refactor of toshi-hazard-post that will make use of the new nzshm-model and toshi-hazard-store paradigms and simplifies/clarifies code. For now, ignore parallelisation, which should be easy to add later (I HOPE)

Guidelines

Create v2 package, borrowing code from v1 as necessary. Create the functional skeleton of the program to be sure the logic holds together

  1. Inputs
  2. logic tree construction / permutations
  3. load data
  4. calculate rates of composite branches
  5. aggegate
  6. store result