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

Errors with generated GMFs #1

Open
daniviga opened this issue Jan 31, 2018 · 0 comments
Open

Errors with generated GMFs #1

daniviga opened this issue Jan 31, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@daniviga
Copy link

Traceback (most recent call last):
  File "/home/daniele/py35/bin/oq", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/home/daniele/GIT/gem/openquake/oq-engine/bin/oq", line 35, in <module>
    main.oq()
  File "/home/daniele/GIT/gem/openquake/oq-engine/openquake/commands/__main__.py", line 42, in oq
    parser.callfunc()
  File "/home/daniele/GIT/gem/openquake/oq-engine/openquake/baselib/sap.py", line 186, in callfunc
    return self.func(**vars(namespace))
  File "/home/daniele/GIT/gem/openquake/oq-engine/openquake/baselib/sap.py", line 245, in main
    return func(**kw)
  File "/home/daniele/GIT/gem/openquake/oq-engine/openquake/commands/engine.py", line 161, in engine
    exports, hazard_calculation_id=hc_id)
  File "/home/daniele/GIT/gem/openquake/oq-engine/openquake/commands/engine.py", line 65, in run_job
    hazard_calculation_id=hazard_calculation_id, **kw)
  File "/home/daniele/GIT/gem/openquake/oq-engine/openquake/engine/engine.py", line 238, in run_calc
    _do_run_calc(calc, exports, hazard_calculation_id, **kw)
  File "/home/daniele/GIT/gem/openquake/oq-engine/openquake/engine/engine.py", line 273, in _do_run_calc
    close=False, **kw)  # don't close the datastore too soon
  File "/home/daniele/GIT/gem/openquake/oq-engine/openquake/calculators/base.py", line 198, in run
    self.pre_execute()
  File "/home/daniele/GIT/gem/openquake/oq-engine/openquake/calculators/scenario_risk.py", line 107, in pre_execute
    self.riskinputs = self.build_riskinputs('gmf', eps, eids)
  File "/home/daniele/GIT/gem/openquake/oq-engine/openquake/calculators/base.py", line 708, in build_riskinputs
    getter.init()
  File "/home/daniele/GIT/gem/openquake/oq-engine/openquake/calculators/getters.py", line 194, in init
    self.data[sid] = data = self[sid]
  File "/home/daniele/GIT/gem/openquake/oq-engine/openquake/calculators/getters.py", line 215, in __getitem__
    idxs = self.dstore['gmf_data/indices'][sid]
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (/tmp/pip-huypgcah-build/h5py/_objects.c:2840)
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (/tmp/pip-huypgcah-build/h5py/_objects.c:2798)
  File "/home/daniele/py35/lib64/python3.5/site-packages/h5py/_hl/dataset.py", line 474, in __getitem__
    selection = sel.select(self.shape, args, dsid=self.id)
  File "/home/daniele/py35/lib64/python3.5/site-packages/h5py/_hl/selections.py", line 94, in select
    sel[args]
  File "/home/daniele/py35/lib64/python3.5/site-packages/h5py/_hl/selections.py", line 261, in __getitem__
    start, count, step, scalar = _handle_simple(self.shape,args)
  File "/home/daniele/py35/lib64/python3.5/site-packages/h5py/_hl/selections.py", line 451, in _handle_simple
    x,y,z = _translate_int(int(arg), length)
  File "/home/daniele/py35/lib64/python3.5/site-packages/h5py/_hl/selections.py", line 471, in _translate_int
    raise ValueError("Index (%s) out of range (0-%s)" % (exp, length-1))
ValueError: Index (900) out of range (0-899)

Ghorka.zip

@daniviga daniviga added the bug Something isn't working label Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants