Update src/seismic_hazard_forecasting.py

This commit is contained in:
2025-08-22 15:09:01 +02:00
parent 5f0b397793
commit 49cc8a5c7d

View File

@@ -185,11 +185,10 @@ def compute_IMT_exceedance(rx_lat, rx_lon, r, fr, p, lambdas, D, percentages_D,
start = timer() start = timer()
try: try:
method='brenth' method='brentq'
logger.debug("Now trying Scipy " + method) logger.debug("Now trying Scipy " + method)
#output = root_scalar(exceedance_root_function, bracket=[IMT_min, IMT_max], rtol=rtol, method=method) output = root_scalar(exceedance_root_function, bracket=[IMT_min, IMT_max], rtol=rtol, method=method)
#gm_est = output.root gm_est = output.root
gm_est = np.nan
except Exception as error: except Exception as error:
logger.error(f"An exception occurred: {error}") logger.error(f"An exception occurred: {error}")
logger.info("Set ground motion value to nan") logger.info("Set ground motion value to nan")