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,