NRML source model parser to use 'Decimal' instead of 'float'
Bug #1008398 reported by
Lars Butler
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake (deprecated) |
Fix Released
|
High
|
Lars Butler |
Bug Description
For probability values in the various distributions. This applies to nrml v0.4 only.
The reason for this is that, for example, sum([0.1] * 10) == 0.9999999999999999
Using 'decimal' (http://
tags: | added: nrml |
Changed in openquake: | |
status: | New → Confirmed |
Changed in openquake: | |
assignee: | nobody → Lars Butler (lars-butler) |
milestone: | none → 0.8.1 |
importance: | Undecided → Medium |
Changed in openquake: | |
status: | In Progress → Fix Committed |
Changed in openquake: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Pull request: https:/ /github. com/gem/ nrml/pull/ 30