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

Separate LSE into LqSE (liquefaction) and LsSE (landslide) #10385

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

catarinaquintela
Copy link
Contributor

To clearly distinguish between the Liquefaction and Landslide Speatial Extent, the original imt (LSE) was divided into LqSE (for liquefaction) and LsSE (for landslides).

@@ -317,7 +317,7 @@ def ASH():


# secondary IMTs
sec_imts = 'Disp DispProb LiqProb LiqOccur LSE PGDMax LSD PGDGeomMean LsProb'.split()
sec_imts = 'Disp DispProb LiqProb LiqOccur LqSE LsSE PGDMax LSD PGDGeomMean LsProb'.split()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are using Lq for liquefaction, can we also change LiqProb and LiqOccur to LqProb and LqOccur to be consistent?

@@ -227,7 +227,7 @@ class ZhuEtAl2017LiquefactionCoastal(SecondaryPeril):
to binary output via the predefined probability threshold.
"""

outputs = ["LiqProb", "LiqOccur", "LSE"]
outputs = ["LiqProb", "LiqOccur", "LqSE"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are using Lq for liquefaction, can we also change LiqProb and LiqOccur to LqProb and LqOccur to be consistent?

@@ -319,7 +319,7 @@ class RashidianBaise2020Liquefaction(SecondaryPeril):
to binary output via the predefined probability threshold.
"""

outputs = ["LiqProb", "LiqOccur", "LSE"]
outputs = ["LiqProb", "LiqOccur", "LqSE"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are using Lq for liquefaction, can we also change LiqProb and LiqOccur to LqProb and LqOccur to be consistent?

@@ -378,7 +378,7 @@ class AllstadtEtAl2022Liquefaction(SecondaryPeril):
to binary output via the predefined probability threshold.
"""

outputs = ["LiqProb", "LiqOccur", "LSE"]
outputs = ["LiqProb", "LiqOccur", "LqSE"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@@ -348,13 +348,20 @@ def LiqOccur():
return IMT('LiqOccur')


def LSE():
def LqSE():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above regarding LiqProb() and LiqOccur()LqProb() and LqOccur()

Also, @micheles probably no one noticed this until now, but if you check above, the return statement for the following IMT seems wrong..

def DispProb():
    """
    Displacement probability
    """
    return IMT('RSD595')

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I would have expected a return IMT('DispProb')

@micheles
Copy link
Contributor

micheles commented Mar 3, 2025

My plan would be to implement namespaces for the IMTs (i.e. the column names in gmf_data will become liq_LSE and land_LSE), then there will no need for this PR.

@micheles micheles mentioned this pull request Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants