Classical PSHA Risk demo with --output-type=xml is broken

Bug #943882 reported by Lars Butler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake (deprecated)
Fix Released
High
Lars Butler

Bug Description

[at=1.5h]

$ bin/openquake --config-file=demos/classical_psha_based_risk/config.gem --output-type=xml
[2012-03-01 10:47:58,529 #153 - INFO MainProcess/58813 supervisor] Entering supervisor for job 153
[2012-03-01 10:47:58,541 #153 - DEBUG MainProcess/58813 amqplib] Start from server, version: 8.0, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2011 VMware, Inc.', u'capabilities': {}, u'platform': u'Erlang/OTP', u'version': u'2.6.1'}, mechanisms: [u'PLAIN', u'AMQPLAIN'], locales: [u'en_US']
[2012-03-01 10:47:58,542 #153 - DEBUG MainProcess/58813 amqplib] Open OK! known_hosts []
[2012-03-01 10:47:58,543 #153 - DEBUG MainProcess/58813 amqplib] using channel_id: 1
[2012-03-01 10:47:58,543 #153 - DEBUG MainProcess/58813 amqplib] Channel open
[2012-03-01 10:47:59,839 #153 geop-076.ethz.ch CRITICAL MainProcess/58812 root] Calculation failed with exception: 'argument of type 'ExposureData' is not iterable'
Traceback (most recent call last):
  File "bin/openquake", line 169, in <module>
    log_level=args.log_level)
  File "/Users/larsbutler/proj/openquake/openquake/engine.py", line 728, in run_calculation
    _launch_calculation(calc_proxy, sections)
  File "/Users/larsbutler/proj/openquake/openquake/engine.py", line 800, in _launch_calculation
    calculator.execute()
  File "/Users/larsbutler/proj/openquake/openquake/calculators/risk/classical/core.py", line 252, in execute
    self.write_output()
  File "/Users/larsbutler/proj/openquake/openquake/calculators/risk/general.py", line 416, in write_output
    self._write_output_for_block(calc_proxy.job_id, block_id)
  File "/Users/larsbutler/proj/openquake/openquake/calculators/risk/general.py", line 317, in _write_output_for_block
    curve_mode='loss_ratio')
  File "/Users/larsbutler/proj/openquake/openquake/calculators/risk/general.py", line 271, in _serialize
    writer.serialize(kwargs['curves'])
  File "/Users/larsbutler/proj/openquake/openquake/writer.py", line 81, in serialize
    self.write(key, val)
  File "/Users/larsbutler/proj/openquake/openquake/output/risk.py", line 624, in write
    super(CurveXMLWriter, self).write(point, values)
  File "/Users/larsbutler/proj/openquake/openquake/output/risk.py", line 569, in write
    if 'nrml_id' in asset:
TypeError: argument of type 'ExposureData' is not iterable
[2012-03-01 10:48:00,844 #153 - INFO MainProcess/58813 supervisor] Process 58812 not running
[2012-03-01 10:48:00,859 #153 - INFO MainProcess/58813 supervisor] job finished with status u'failed'
[2012-03-01 10:48:00,859 #153 - INFO MainProcess/58813 root] Recording stop time for job 153 to calc_stats
[2012-03-01 10:48:00,875 #153 - INFO MainProcess/58813 root] Cleaning up after job 153
[2012-03-01 10:48:00,877 #153 - INFO MainProcess/58813 root] KVS garbage collection removed 9 keys for job 153
[2012-03-01 10:48:00,887 #153 - DEBUG MainProcess/58813 amqplib] Closed channel #1
[2012-03-01 10:48:00,888 #153 - INFO MainProcess/58813 supervisor] Job 153 finished in 0:00:02.340829
[2012-03-01 10:48:00,888 #153 - INFO MainProcess/58813 supervisor] Exiting supervisor for job 153

Changed in openquake:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Lars Butler (lars-butler)
milestone: none → 0.6.0
status: Confirmed → In Progress
Revision history for this message
Lars Butler (lars-butler) wrote :
description: updated
Changed in openquake:
status: In Progress → Fix Committed
Changed in openquake:
status: Fix Committed → Fix Released
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.