Cannot export results

73 views
Skip to first unread message

youngan...@gmail.com

unread,
Nov 1, 2022, 7:53:23 PM11/1/22
to OpenQuake Users
Hi ,

Im running Event-based damage in OQ 3.14, and the analysis does run:

[2022-11-01 16:37:22 #92 INFO] Building aggrisk from 30.99 MB of risk_by_event
[2022-11-01 16:37:22 #92 INFO] Sanity check on avg_losses and aggrisk
[2022-11-01 16:37:22 #92 INFO] Exposing the outputs to the database
[2022-11-01 16:37:23 #92 INFO] Stored 232.34 MB on C:\Users\AA\oqdata/calc_92.hdf5 in 270 seconds
  id | name
 406 | Aggregate Risk
 412 | Aggregated Risk By Event
 407 | Asset Risk Distributions
 413 | Earthquake Ruptures
 408 | Events
 409 | Full Report
 410 | Ground Motion Fields
 411 | Realizations

But when I try to export the results, it fails:

C:\>%USERPROFILE%\openquake\Scripts\oq engine --eos 91 C:\Users\AA\Desktop\test
Exporting aggrisk...
C:\Users\AA\Desktop\test\aggrisk-_91.csv
C:\Users\AA\Desktop\test\aggrisk-taxonomy_91.csv
Exporting damages-rlzs...
Traceback (most recent call last):
  File "C:\Users\AA\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\AA\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\AA\openquake\Scripts\oq.exe\__main__.py", line 7, in <module>
  File "C:\Users\AA\openquake\lib\site-packages\openquake\commands\__main__.py", line 53, in oq
    sap.run(commands, prog='oq')
  File "C:\Users\AA\openquake\lib\site-packages\openquake\baselib\sap.py", line 225, in run
    return _run(parser(funcdict, **parserkw), argv)
  File "C:\Users\AA\openquake\lib\site-packages\openquake\baselib\sap.py", line 216, in _run
    return func(**dic)
  File "C:\Users\AA\openquake\lib\site-packages\openquake\commands\engine.py", line 209, in main
    for line in core.export_outputs(
  File "C:\Users\AA\openquake\lib\site-packages\openquake\engine\export\core.py", line 100, in export_outputs
    for line in export_output(
  File "C:\Users\AA\openquake\lib\site-packages\openquake\engine\export\core.py", line 124, in export_output
    yield from export_from_db(outkey, calc_id, datadir, target_dir)
TypeError: 'NoneType' object is not iterable

could you advice me where I am going wrong?

Regards,

Anirudh Rao

unread,
Nov 2, 2022, 4:48:24 AM11/2/22
to OpenQuake Users
Hi Ann,

Could you please confirm that you're trying to export the results from the same calculation that you ran? In the calculation log I see the calc_id is 92, but you're trying to export the outputs for calc 91? 

Best,
Anirudh

Ann Abraham

unread,
Nov 2, 2022, 4:50:11 AM11/2/22
to openqua...@googlegroups.com
Yes. It's the same calculation ID.

Regards


--
You received this message because you are subscribed to a topic in the Google Groups "OpenQuake Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openquake-users/V07xVGFUP10/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openquake-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/ef59300c-6eee-49c6-8ddb-836a783a53aen%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages