Support any defined Magnitude Scaling Relationship class

Bug #1229165 reported by matley
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake Engine
Fix Released
Critical
matley

Bug Description

We want to support any defined magnitude scaling relationship (MSR), i.e. any derived class of BaseMSR (https://github.com/gem/oq-hazardlib/blob/master/openquake/hazardlib/scalerel/base.py#L63) to be used in the engine.

Currently, the list of supported MSR is hardcoded in the implementation (https://github.com/gem/oq-engine/blob/master/openquake/engine/input/source.py#L43).

A more future proof solution is get them at runtime by using the MSR registry (see https://github.com/gem/oq-hazardlib/blob/master/openquake/hazardlib/scalerel/__init__.py#L52).

Revision history for this message
matley (matley) wrote :
Changed in oq-engine:
status: New → In Progress
matley (matley)
Changed in oq-engine:
status: In Progress → Fix Committed
Changed in oq-engine:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.