Make sure that context objects are not changed by calling 'get_mean_and_stddevs'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake Hazard Library |
Fix Released
|
High
|
Damiano Monelli |
Bug Description
We need to make sure that context objects (https:/
For instance the AtkinsonBoore20
In [1]: from openquake.
In [2]: from openquake.
In [3]: from openquake.
In [4]: from openquake.
In [6]: sites = SitesContext()
In [7]: sites.vs30 = array([760.])
In [8]: rup = RuptureContext()
In [9]: rup.mag = 6
In [10]: rup.hypo_depth = 50
In [11]: dists = DistancesContext()
In [12]: dists.rrup = array([40.])
In [13]: gmpe = AtkinsonBoore20
In [14]: gmpe.get_
Out[14]: (array(
In [15]: rup.hypo_depth
Out[15]: 20.0
As it can be seen, `rup.hypo_depth` is initially set to 50 but after calling `gmpe.get_
Changed in oq-hazardlib: | |
assignee: | nobody → Damiano Monelli (monelli) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in oq-hazardlib: | |
milestone: | none → 0.12 |
Changed in oq-hazardlib: | |
status: | Fix Committed → Fix Released |
https:/ /github. com/gem/ oq-hazardlib/ pull/181