Update src/seismic_hazard_forecasting.py
This commit is contained in:
@@ -16,7 +16,7 @@ from openquake.hazardlib.site import Site, SiteCollection
|
||||
from openquake.hazardlib.contexts import ContextMaker
|
||||
from openquake.hazardlib.valid import gsim
|
||||
from openquake.hazardlib.imt import PGA
|
||||
|
||||
import sys
|
||||
|
||||
def my_trivial_task(x):
|
||||
"""
|
||||
@@ -26,7 +26,7 @@ def my_trivial_task(x):
|
||||
|
||||
def compute_IMT_exceedance(rx_lat, rx_lon, r, fr, p, lambdas, D, percentages_D, magnitudes, magnitude_pdf, magnitude_cdf, model, imt='PGA', IMT_min=0.01, IMT_max=2.0, rx_label=None, rtol=0.1, use_cython=False, **kwargs):
|
||||
|
||||
return 0
|
||||
return None
|
||||
|
||||
n_events = len(r)
|
||||
|
||||
@@ -683,6 +683,9 @@ verbose: {verbose}")
|
||||
logger.error(msg)
|
||||
raise Exception(msg)
|
||||
|
||||
logger.info("Test3 run finished")
|
||||
sys.exit()
|
||||
|
||||
# create list of one empty list for each imt
|
||||
iml_grid = [[] for _ in range(len(products))] # final ground motion grids
|
||||
iml_grid_prep = iml_grid.copy() # temp ground motion grids
|
||||
|
Reference in New Issue
Block a user