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

fixing smt to work without kwargs #408

Closed CB-quakemodel closed 4 months ago

CB-quakemodel commented 4 months ago

This PR updates the SMT to work without kwargs (mgmpe arguments read in from the toml are now partitioned from the gsim arguments and then recombined if ModifiableGMPE must be used - the mgmpe arguments are non-standard gsim arguments, so raise value errors without kwargs if included when trying to use gsim.valid). The documentation and demo files have also been updated. Some unit tests have been added to check some additional gsim parameters specifiable within the toml file for use in the residuals module (before toml read in was only tested for comparison module) + a unit test for plotting of observed spectra vs gsim predictions as was missing before