Compare commits

..

2 Commits

Author SHA1 Message Date
548b3b9ab4 Update src/seismic_hazard_forecasting.py 2025-06-10 12:01:00 +02:00
c470831615 turn DASK on 2025-06-09 18:15:40 +02:00
2 changed files with 3 additions and 15 deletions

View File

@ -1,13 +0,0 @@
Copyright 2025 Institute of Geophysics, Polish Academy of Sciences
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@ -125,7 +125,6 @@ verbose: {verbose}")
logger.debug(f"BASELINE CPU LOAD% {psutil.cpu_percent(interval=None, percpu=True)}")
dask.config.set(scheduler='processes')
# run magnitude distribution modeling if selected by user and no magnitude pdf file provided
if m_select and m_range[0] == None and m_pdf[0] == None:
@ -441,9 +440,11 @@ verbose: {verbose}")
start = timer()
use_pp = False
use_pp = True
if use_pp: # use dask parallel computing
#dask.config.set(scheduler='processes')
dask.config.set(scheduler='threads')
pbar = ProgressBar()
pbar.register()
# iter = range(0,len(distances))