Skip to content

Make sure the button "Download job.zip" works for all calculations #11641

Description

@micheles

In engine-3.26 we decided to hide the button outside of OQImpact, but it would be much nicer to have it work.
One should test all the demos, for instance in bin/run-demos.sh after running each demo one should call
oq export job -e zip and make sure there are no errors like

  File "/home/michele/oq-engine/openquake/calculators/export/risk.py", line 954, in export_job_zip
    model = dstore['ruptures'][0]['model'].decode('ascii')
            ~~~~~~^^^^^^^^^^^^
  File "/home/michele/oq-engine/openquake/commonlib/datastore.py", line 555, in __getitem__
    raise KeyError('No %r found in %s' % (key, self))
KeyError: "No 'ruptures' found in <DataStore /home/michele/oqdata/calc_15379.hdf5 open>"

which obviously happens for classical calculations where there are no ruptures stored.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions