Engine tries to compute quantiles using only one realisation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake Engine |
Fix Released
|
High
|
Michele Simionato |
Bug Description
Damiano replied to a user from INGV-PI about this error:
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
log_file, args.exports)
File "/usr/lib/
job, log_level, log_file, exports, 'hazard' if hazard else 'risk')
File "/usr/lib/
_do_
File "/usr/lib/
calc.
File "/usr/lib/
self.
File "/usr/lib/
return method(self, *args)
File "/usr/lib/
curves_poes, quantile
File "/usr/lib/
return (1.0 - gamma) * data[:, k - 1] + gamma * data[:, k]
IndexError: invalid index
He replied that it could be generated by the fact that the Engine tries to generate quantiles with only one realisation instead of at least 2.
He suggested to leave the 'quantile_
We should implement a check to avoid this and/or generate a better error.
description: | updated |
Changed in oq-engine: | |
status: | New → Fix Committed |
importance: | Undecided → High |
milestone: | none → 1.0.1 |
Changed in oq-engine: | |
status: | Fix Committed → Fix Released |
https:/ /github. com/gem/ oq-engine/ pull/1485