gem / oq-engine

OpenQuake's Engine for Seismic Hazard and Risk Analysis
https://github.com/gem/oq-engine/#openquake-engine
GNU Affero General Public License v3.0
373 stars 272 forks source link

Added function `valid.modifiable_gmpe` #9806

Closed micheles closed 1 week ago

micheles commented 1 week ago

It is a GRAVE ERROR to instantiate directly ModifiableGMPE. I am adding a factory function valid.modifiable_gmpe that does the right thing, at least in simple cases.

micheles commented 1 week ago

EDIT: later renamed to valid.modified_gsim for similarity with valid.gsim.