edit error message for clarity
This commit is contained in:
parent
2906af6918
commit
e06f4a5a05
@ -380,9 +380,9 @@ verbose: {verbose}")
|
||||
models_anthro_limited = ['Lasocki2013', 'Atkinson2015', 'ConvertitoEtAl2012Geysers'] # these models require that m_max<=4.5
|
||||
if m_max > 4.5 and model in models_anthro_limited:
|
||||
if m_file is None:
|
||||
msg = f"Selected ground motion model {model} is only valid up to a maximum magnitude of 4.5. Please try again with a lower maximum magnitude."
|
||||
msg = f"The selected ground motion model {model} is only valid for magnitudes up to 4.5. Please select a lower maximum magnitude."
|
||||
else:
|
||||
msg = f"Selected ground motion model {model} is only valid up to a maximum magnitude of 4.5. The magnitude file provided has a range up to {m_max}."
|
||||
msg = f"The selected ground motion model {model} is only valid for magnitudes up to 4.5, but the provided magnitude file includes values up to {m_max}. Please adjust the magnitude range in the file accordingly."
|
||||
logger.error(msg)
|
||||
raise Exception(msg)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user