gem / oq-engine

OpenQuake's Engine for Seismic Hazard and Risk Analysis
https://github.com/gem/oq-engine/#openquake-engine
GNU Affero General Public License v3.0
373 stars 272 forks source link

Imported CSV ruptures cannot exported #9785

Closed micheles closed 2 weeks ago

micheles commented 2 weeks ago

Run event_based_risk/recompute/job.ini and then you will get

# oq export ruptures
  File "/home/michele/oq-engine/openquake/calculators/extract.py", line 1378, in extract_rupture_info
    mags = dstore[f'source_mags/{rgetter.trt}'][:]
           ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/michele/oq-engine/openquake/commonlib/datastore.py", line 522, in __getitem__
    raise KeyError('No %r found in %s' % (key, self))
KeyError: "No 'source_mags/*' found in <DataStore /home/michele/oqdata/calc_27153.hdf5 open>"

Reported on the mailing list https://groups.google.com/g/openquake-users/c/r3BZdu4oqGE/m/ESb4mGbZAQAJ