GEMScienceTools / oq-mbtk

OpenQuake Model Building Toolkit, a suite of tools for building components and analysing models for PSHA.
https://gemsciencetools.github.io/oq-mbtk/index.html
GNU Affero General Public License v3.0
14 stars 8 forks source link

WIP: fault buffer around distributed seis fixes #419

Closed cossatot closed 3 months ago

cossatot commented 3 months ago

There are two parts to this PR:

cossatot commented 3 months ago

I've added support for TruncatedGRMFD, EvenlyDiscretizedMFD, and ArbitraryMFD. The Hazardlib MultiMFD doesn't support TaperedGRMFD, and it does not seem particularly sensible to add YoungsCoppersmith1985 to distributed seismicity.

I have not added or modified any tests. However there is an assert statement in the updated explode function to ensure that the moment rate is preserved within each depth slice.

@mmpagani anything else? Should I make some new test files of distributed seis and faults, before we merge this? This would take into next week, maybe not a long time in the grand scheme of things, but it does block other model building until that point.