Fix sampling when mean/covs = nan
Bug #1167863 reported by
matley
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake Risk Library |
Fix Released
|
Critical
|
matley |
Bug Description
Sampling a LogNormalDistri
When some of the covs are equal to zero, the corresponding losses should not be changed. Example given:
d = LogNormalDistri
d.init(1, 1)
d.sample(
where 3.14 is the number 3 perturbed when both mean/cov > 0
Please, note that the bug is not occurring when all the covs = 0 because in that case we are not sampling at all.
Changed in oq-risklib: | |
milestone: | none → 0.1 |
Changed in oq-risklib: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
https:/ /github. com/gem/ oq-risklib/ pull/51