add attributes “units” and “minIML” and “maxIML” in both fragility models (continuous and discrete)

Bug #979691 reported by Muharem Hrnjadovic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake (deprecated)
Fix Released
Medium
Muharem Hrnjadovic

Bug Description

This requires changes in
  - nrml model
  - database schema
  - nrml parser
  - database writer

Changed in openquake:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Muharem Hrnjadovic (al-maisan)
milestone: none → 0.7.0
tags: added: database nrml risk
Changed in openquake:
status: Confirmed → In Progress
Revision history for this message
Muharem Hrnjadovic (al-maisan) wrote :

From Vitor's email:

    1. What is the "units" attribute about? Is it comparable to the same
       attribute in the exposure model?
       What is its type and what are the possible values? Are there any
       constraints that should be imposed?

No, units here refer to how the IML are being measured. So common values would be "g", "m", or even none if macro seismic intensity was being used. This being said, this parameter should be a string with no constrains and not mandatory.

    2. What is the type of the "minIML" attribute and what are the possible
       values? Are there any constraints that should be imposed?

    3. What is the type of the "maxIML" attribute and what are the possible
       values? Are there any constraints that should be imposed?

These parameters are purely informative and will not be used in the calculations for the time being. Therefore they are optional and defined as a double.

Revision history for this message
Muharem Hrnjadovic (al-maisan) wrote :

Another exchange with Vitor yielded the following clarification:

These new properties apply to the entire fragility model.

In case of a discrete model we only allow the "units" property since the IMLs are already there.

In the continuous fragility model case all 3 properties (i.e. "units", and "minIML" and "maxIML") are allowed .

Changed in openquake:
status: In Progress → Fix Committed
Changed in openquake:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.