Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store both filtered and complete site collections (when it makes sense) #8950

Closed
micheles opened this issue Aug 23, 2023 · 1 comment
Closed
Assignees
Labels

Comments

@micheles
Copy link
Contributor

Right now storing a filtered site collection cause an issue, because when reading it, it becomes complete :-(

@micheles
Copy link
Contributor Author

micheles commented Sep 6, 2023

This is serious: the lack of the complete site collection breaks the gmf_data exporter. Attached is a breaking example:
job.zip

$ oq export gmf_data
Traceback (most recent call last):
  File "/home/michele/openquake/bin/oq", line 33, in <module>
    sys.exit(load_entry_point('openquake.engine', 'console_scripts', 'oq')())
  File "/home/michele/oq-engine/openquake/commands/__main__.py", line 48, in oq
    sap.run(commands, prog='oq')
  File "/home/michele/oq-engine/openquake/baselib/sap.py", line 212, in run
    return _run(parser(funcdict, **parserkw), argv)
  File "/home/michele/oq-engine/openquake/baselib/sap.py", line 203, in _run
    return func(**dic)
  File "/home/michele/oq-engine/openquake/commands/export.py", line 38, in main
    fnames = export_((datastore_key, fmt), dstore)
  File "/home/michele/oq-engine/openquake/baselib/general.py", line 571, in __call__
    return self[key](obj, *args, **kw)
  File "/home/michele/oq-engine/openquake/calculators/export/hazard.py", line 426, in export_gmf_data_csv
    df['csi'] = decode(sitecol.custom_site_id[df.sid])
IndexError: index 698 is out of bounds for axis 0 with size 686

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants