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.
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.shafter running each demo one should calloq export job -e zipand make sure there are no errors likewhich obviously happens for classical calculations where there are no ruptures stored.