Dear OpenQuake community,
I am trying to upgrade the Real-Time Loss Tools to OpenQuake v3.25.0 but when running tests that run OpenQuake scenario damage calculations I am getting this validation error (I have also tried with v3.24.1 with the same result):
ValueError: The risk functions contain AvgSA which is not in the secondary IMTs set()
Perhaps this stems from here?: https://github.com/gem/oq-engine/blob/d42a4d2beab5f9e0c6ffd401c1e80731d954e81f/openquake/commonlib/oqvalidation.py#L1757.
The ground motion model XML is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<nrml xmlns:gml="http://www.opengis.net/gml"
xmlns="http://openquake.org/xmlns/nrml/0.4">
<logicTree logicTreeID='lt1'>
<logicTreeBranchSet uncertaintyType="gmpeModel" branchSetID="bs1"
applyToTectonicRegionType="Active Shallow Crust">
<logicTreeBranch branchID="b1">
<uncertaintyModel>
[GenericGmpeAvgSA]
gmpe_name = "LanzanoEtAl2019_RJB_OMO"
avg_periods = [0.04, 0.07, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.25, 1.5, 1.75, 2.0, 2.25, 2.5, 2.75]
corr_func = "baker_jayaram"
</uncertaintyModel>
<uncertaintyWeight>1.0</uncertaintyWeight>
</logicTreeBranch>
</logicTreeBranchSet>
</logicTree>
</nrml>
And the fragility XML is of the kind:
<?xml version="1.0" ?>
<nrml xmlns="http://openquake.org/xmlns/nrml/0.5">
<fragilityModel assetCategory="buildings" id="fragility_model" lossCategory="structural">
<description>description</description>
<limitStates>slight moderate extensive complete</limitStates>
<fragilityFunction format="continuous" id="MUR+STRUB/LWAL+CDN/H:1/DS0" shape="logncdf">
<imls imt="AvgSA" maxIML="5" minIML="1e-15" noDamageLimit="1e-15"/>
<params ls="slight" mean="0.0828" stddev="0.0219"/>
<params ls="moderate" mean="0.1332" stddev="0.0297"/>
<params ls="extensive" mean="0.1626" stddev="0.0295"/>
<params ls="complete" mean="0.1826" stddev="0.0313"/>
</fragilityFunction>
I can provide all input files if needed.
Can you please help me understand what is going on, and how to solve it?
Thanks in advance!
Best regards,
Cecilia
Dear Michele,
Thank you very much for your prompt response! Please find attached a ZIP with all the files. The job.ini file is located under temp_integration_rla/current/job.ini. Please let me know if anything is missing.
Kind regards,
Cecilia
--
You received this message because you are subscribed to the Google Groups "OpenQuake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openquake-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/openquake-users/fdf2d6af-bc13-49ab-a8e1-a1e62d3fa804n%40googlegroups.com.
Great, thanks a lot Michele for the quick fix!
To view this discussion visit https://groups.google.com/d/msgid/openquake-users/5ddfba14-8a95-4301-bec7-95e54033d105n%40googlegroups.com.