Skip to content

Unclear attribute of Hazard class #1007

Open
@chahank

Description

The hazard class has currently an attribute called self.intensity_thres that is silently set to the value 10. It is very unclear what the use of this attribute is, and even more unclear how the value of 10 was chosen. Moreover, it appears that the value cannot be set in the init. I propose to remove it entirely.

The only place where this values seems to be used is in the Method haz.local_exceedance_intensity. It is not clear why this value is there, but one could easily replace this by taking the minimal non-zero value of the hazard: haz.intensity.min(explicit=True).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions