Skip to content

Conversation

micheles
Copy link
Contributor

@micheles micheles commented Oct 17, 2025

For separation of concerns. It should help with #10627.
NB: this is changing the ps_grid_spacing approximation by replacing occurrence rates with average occurrence rates.
Here are some numbers coming from the newzealand calculation in the oq-risk-tests:

(Pdb) ctx.occurrence_rate  # before/after
array([3.62667e-05, 3.67693e-05, 3.56305e-05, 3.73712e-05, 4.02654e-05,
       4.13410e-05, 3.80362e-05, 4.27079e-05, 4.66359e-05, 3.77293e-05,
       4.40878e-05, 4.99884e-05])
array([4.05691333e-05, 4.05691333e-05, 4.05691333e-05, 4.05691333e-05,
       4.05691333e-05, 4.05691333e-05, 4.05691333e-05, 4.05691333e-05,
       4.05691333e-05, 4.05691333e-05, 4.05691333e-05, 4.05691333e-05])

@micheles micheles added this to the Engine 3.24.0 milestone Oct 17, 2025
@micheles micheles self-assigned this Oct 17, 2025
@micheles micheles merged commit 4756feb into master Oct 17, 2025
@micheles micheles deleted the mrate branch October 17, 2025 05:20
@micheles
Copy link
Contributor Author

NB: check the newzealand test in the oq-risk-tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant