Skip to content

Commit

Permalink
Merge pull request #8923 from gem/cond-gmf
Browse files Browse the repository at this point in the history
Disable multiprocessing when working with conditioned GMFs
  • Loading branch information
ptormene authored Aug 7, 2023
2 parents cdb3628 + 3f1d27a commit d03a7d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions openquake/baselib/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ def compile(sigstr):
@compile(["int64[:, :](uint8[:])",
"int64[:, :](uint16[:])",
"int64[:, :](uint32[:])",
"int64[:, :](int32[:])",
"int64[:, :](int64[:])"])
def idx_start_stop(integers):
# given an array of integers returns an array int64 of shape (n, 3)
Expand Down
2 changes: 2 additions & 0 deletions openquake/calculators/event_based.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,8 @@ class EventBasedCalculator(base.HazardCalculator):
accept_precalc = ['event_based', 'ebrisk', 'event_based_risk']

def init(self):
if 'station_data' in self.oqparam.inputs:
os.environ['OQ_DISTRIBUTE'] = 'no'
if self.oqparam.cross_correl.__class__.__name__ == 'GodaAtkinson2009':
logging.warning(
'The truncation_level param is ignored with GodaAtkinson2009')
Expand Down

0 comments on commit d03a7d0

Please sign in to comment.