Update src/seismic_hazard_forecasting.py
This commit is contained in:
@@ -90,6 +90,7 @@ def main(catalog_file, mc_file, pdf_file, m_file, m_select, mag_label, mc, m_max
|
|||||||
from matplotlib.contour import ContourSet
|
from matplotlib.contour import ContourSet
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
import json
|
import json
|
||||||
|
import multiprocessing as mp
|
||||||
|
|
||||||
logger = getDefaultLogger('igfash')
|
logger = getDefaultLogger('igfash')
|
||||||
|
|
||||||
@@ -478,8 +479,9 @@ verbose: {verbose}")
|
|||||||
use_pp = True
|
use_pp = True
|
||||||
|
|
||||||
if use_pp: # use dask parallel computing
|
if use_pp: # use dask parallel computing
|
||||||
pbar = ProgressBar()
|
mp.set_start_method("fork", force=True)
|
||||||
pbar.register()
|
#pbar = ProgressBar()
|
||||||
|
#pbar.register()
|
||||||
# iter = range(0,len(distances))
|
# iter = range(0,len(distances))
|
||||||
iter = indices
|
iter = indices
|
||||||
iml_grid_raw = [] # raw ground motion grids
|
iml_grid_raw = [] # raw ground motion grids
|
||||||
|
Reference in New Issue
Block a user