GEMScienceTools / gmpe-smtk

Python and OpenQuake-based Toolkit for Analysis of Strong Motions and Interpretation of GMPEs
GNU Affero General Public License v3.0
43 stars 33 forks source link

Revision of Trellis Plots and addition of json exporters #63

Closed g-weatherill closed 6 years ago

g-weatherill commented 6 years ago

Refactor of the Trellis Plotting to resolve the following issues:

  1. Magnitude Trellis and Magnitude-Distance Spectra trellis were lacking methods to instantiate from a rupture model. This is because when the rupture size changes (with magnitude) it would be necessary to rebuild the rupture for each magnitude. This capability has now been added such that the user need only input a single dictionary with the configuration settings of the rupture object in order to get the functionality to work.

  2. The ground motion values of the trellis plots can now be exported to json, for easy and organised parsing.