Characteristic fault sources are being ignore during logic tree validation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake Engine |
Fix Released
|
Critical
|
Lars Butler |
Bug Description
This bug was observed when running a calculation with a source model containing only characteristic fault source(s) for a given tectonic region type:
[2013-04-09 14:10:45,386 #3 1.0.0.127.
[2013-04-09 14:10:45,395 #3 1.0.0.127.
[2013-04-09 14:10:45,423 #3 1.0.0.127.
Traceback (most recent call last):
File "bin/openquake", line 615, in <module>
main()
File "bin/openquake", line 581, in main
args.exports)
File "bin/openquake", line 265, in run_hazard
job, log_level, log_file, exports, 'hazard')
File "/Users/
_do_
File "/Users/
calc.
File "/Users/
self.
File "/Users/
self.
File "/Users/
gmpe_
File "/Users/
super(
File "/Users/
self.
File "/Users/
self.
File "/Users/
validate)
File "/Users/
self.
File "/Users/
"type %r" % trt
openquake.
[2013-04-09 14:10:46,429 #3 - ERROR MainProcess/19495 supervisor] job process 19494 crashed or terminated
Job 3 failed
I did some quick analysis and the following patch should resolve the issue:
----------
--- a/openquake/
+++ b/openquake/
@@ -649,7 +649,8 @@ class SourceModelLogi
"""
Source model logic tree parser.
"""
- SOURCE_TYPES = ('point', 'area', 'complexFault', 'simpleFault')
+ SOURCE_TYPES = ('point', 'area', 'complexFault', 'simpleFault',
+ 'characteristic
def __init__(self, *args, **kwargs):
----------
We ran some tests and confirmed that the correctness of the calculation is not affected by this bug; this is purely a validation bug.
Changed in oq-engine: | |
status: | In Progress → Fix Committed |
Changed in oq-engine: | |
status: | Fix Committed → Fix Released |
Patch: https:/ /github. com/gem/ oq-engine/ pull/1119