Update src/seismic_hazard_forecasting.py

This commit is contained in:
2025-08-22 12:03:53 +02:00
parent 9f883af133
commit 54dd40e640

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
@@ -166,7 +166,7 @@ def compute_IMT_exceedance(rx_lat, rx_lon, r, fr, p, lambdas, D, percentages_D,
return gm_est return gm_est
# raise ValueError(msg) # raise ValueError(msg)
return None
# Find root of function # Find root of function
start = timer() start = timer()