Update src/seismic_hazard_forecasting.py
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user