error running a job file with the new version

37 views
Skip to first unread message

Parisa

unread,
May 23, 2018, 3:16:14 AM5/23/18
to OpenQuake Users

Hello everybody,

I have run jobs with older versions of OQ such as 2.7 successfully. but using the OQ 3.0.0 this error come up.
what does it refer to and How can I fix it?

Thank you very much.


Traceback (most recent call last):
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\calculators\base.py", line 184, in run
    self.pre_execute()
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\calculators\scenario_risk.py", line 107, in pre_execute
    self.riskinputs = self.build_riskinputs('gmf', eps, E)
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\calculators\base.py", line 623, in build_riskinputs
    riskinputs = list(self._gen_riskinputs(kind, eps, num_events))
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\calculators\base.py", line 643, in _gen_riskinputs
    num_gmfs = sum(stop - start for start, stop in indices[sid])
IndexError: index 6229 is out of bounds for axis 0 with size 6229
[2018-05-23 11:39:41,845 #340 CRITICAL] Traceback (most recent call last):
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\engine\engine.py", line 232, in run_calc
    _do_run_calc(calc, exports, hazard_calculation_id, **kw)
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\engine\engine.py", line 267, in _do_run_calc
    close=False, **kw)  # don't close the datastore too soon
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\calculators\base.py", line 184, in run
    self.pre_execute()
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\calculators\scenario_risk.py", line 107, in pre_execute
    self.riskinputs = self.build_riskinputs('gmf', eps, E)
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\calculators\base.py", line 623, in build_riskinputs
    riskinputs = list(self._gen_riskinputs(kind, eps, num_events))
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\calculators\base.py", line 643, in _gen_riskinputs
    num_gmfs = sum(stop - start for start, stop in indices[sid])
IndexError: index 6229 is out of bounds for axis 0 with size 6229

Traceback (most recent call last):
  File "C:\Program Files\OpenQuake Engine\bin\oq-script.py", line 17, in <module>
    main.oq()
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\commands\__main__.py", line 42, in oq
    parser.callfunc()
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\baselib\sap.py", line 186, in callfunc
    return self.func(**vars(namespace))
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\baselib\sap.py", line 245, in main
    return func(**kw)
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\commands\engine.py", line 172, in engine
    exports, hazard_calculation_id=hc_id)
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\commands\engine.py", line 67, in run_job
    hazard_calculation_id=hazard_calculation_id, **kw)
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\engine\engine.py", line 232, in run_calc
    _do_run_calc(calc, exports, hazard_calculation_id, **kw)
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\engine\engine.py", line 267, in _do_run_calc
    close=False, **kw)  # don't close the datastore too soon
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\calculators\base.py", line 184, in run
    self.pre_execute()
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\calculators\scenario_risk.py", line 107, in pre_execute
    self.riskinputs = self.build_riskinputs('gmf', eps, E)
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\calculators\base.py", line 623, in build_riskinputs
    riskinputs = list(self._gen_riskinputs(kind, eps, num_events))
  File "C:\Program Files\OpenQuake Engine\lib\site-packages\openquake\calculators\base.py", line 643, in _gen_riskinputs
    num_gmfs = sum(stop - start for start, stop in indices[sid])
IndexError: index 6229 is out of bounds for axis 0 with size 6229

Michele Simionato

unread,
May 23, 2018, 3:36:24 AM5/23/18
to OpenQuake Users
Can you send the files you are using to engine....@openquake.org ? Otherwise we cannot debug your issue.
Thanks,

       Michele

Michele Simionato

unread,
May 23, 2018, 4:47:48 AM5/23/18
to OpenQuake Users
We have a bug. I will work to fix it in the next release.
Meanwhile, you can use the gmfs_csv approach instead of the gmfs_file approach. It is documented in the manual, section 8.1 for scenario_damage, but it applies to scenario_risk too.

      Michele

Parisa

unread,
May 23, 2018, 5:01:08 AM5/23/18
to OpenQuake Users
Thank you very much.

Michele Simionato

unread,
May 25, 2018, 5:27:22 AM5/25/18
to OpenQuake Users
The bug has been fixed yesterday in master. It wil appear in the next release. Still, I recommend you to use .csv files, since the .xml file format for the GMFs has been deprecated.

      Michele
Reply all
Reply to author
Forward
0 new messages