Event based calculator fails when serializing ruptures coming from CharacteristicFaultSource with ComplexFaultGeometry

Bug #1168954 reported by Damiano Monelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake (deprecated)
Invalid
Critical
Unassigned

Bug Description

The following error occurs when running the 'event based' calculator with a source model containing a characteristicFaultSource with complexFaultGeometry:

[2013-04-14 21:40:26,004 #190 gemcontrol.ethz.ch PROGRESS MainProcess/1336 root] ** > hazard 93% complete
[2013-04-14 21:40:27,131 #190 gemcontrol.ethz.ch PROGRESS MainProcess/1336 root] ** > hazard 94% complete
[2013-04-14 21:40:27,184 #190 gemcontrol.ethz.ch PROGRESS MainProcess/1336 root] ** > hazard 95% complete
[2013-04-14 21:40:27,209 #190 gemcontrol.ethz.ch PROGRESS MainProcess/1336 root] ** > hazard 96% complete
[2013-04-14 21:40:27,911 #190 gemcontrol.ethz.ch PROGRESS MainProcess/1336 root] ** > hazard 97% complete
[2013-04-14 21:40:28,135 #190 gemcontrol.ethz.ch PROGRESS MainProcess/1336 root] ** > hazard 98% complete
[2013-04-14 21:41:49,938 #190 gemsun01.ethz.ch CRITICAL PoolWorker-13/4640 root] Error occurred in task: 'ComplexFaultSurface' object has no attribute 'top_left'
[2013-04-14 21:41:49,939 #190 gemsun01.ethz.ch ERROR PoolWorker-13/4640 root] 'ComplexFaultSurface' object has no attribute 'top_left'
Traceback (most recent call last):
  File "/usr/local/openquake/oq-engine/openquake/engine/utils/tasks.py", line 183, in wrapped
    task_func(*args, **kwargs)
  File "/usr/local/openquake/oq-engine/openquake/engine/utils/stats.py", line 253, in wrapper
    result = func(*args, **kwargs)
  File "/usr/local/openquake/oq-engine/openquake/engine/calculators/hazard/event_based/core.py", line 177, in ses_and_gmfs
    rupture_ordinal)
  File "/usr/lib/python2.7/dist-packages/django/db/transaction.py", line 217, in inner
    res = func(*args, **kwargs)
  File "/usr/local/openquake/oq-engine/openquake/engine/calculators/hazard/event_based/core.py", line 316, in _save_ses_rupture
    for i, corner in enumerate((surface.top_left,
AttributeError: 'ComplexFaultSurface' object has no attribute 'top_left'
[2013-04-14 21:42:11,356 #190 - ERROR MainProcess/1337 supervisor] job terminated with failures: [('oqs/190/h/nhzrd:failed/i', 300)]
Job 190 failed
damiano@gemcontrol:

Looking at the code base it seems that only a Characteristic Fault Source with a MultiSurface is supported while also SimpleFaultGeometry and ComplexFaultGeometry need to be supported.

Changed in openquake:
importance: Undecided → Critical
milestone: none → 1.0.0
description: updated
Changed in openquake:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.