Update src/seismic_hazard_forecasting.py

This commit is contained in:
2025-08-22 12:05:45 +02:00
parent 54dd40e640
commit 643d785146

View File

@@ -81,7 +81,7 @@ def compute_IMT_exceedance(rx_lat, rx_lon, r, fr, p, lambdas, D, percentages_D,
rake = Rake) rake = Rake)
ctx = context_maker.from_srcs([src], site_collection)[0] #returns one context from the source for one rupture ctx = context_maker.from_srcs([src], site_collection)[0] #returns one context from the source for one rupture
return None
if use_cython: if use_cython:
from cython_exceedance import exceedance_core from cython_exceedance import exceedance_core
@@ -146,7 +146,7 @@ def compute_IMT_exceedance(rx_lat, rx_lon, r, fr, p, lambdas, D, percentages_D,
return exceedance_prob_sum - p return exceedance_prob_sum - p
return None
# Check function values at different test points # Check function values at different test points
IMT_mid = (IMT_max-IMT_min)/2 IMT_mid = (IMT_max-IMT_min)/2