diff --git a/openquake/baselib/performance.py b/openquake/baselib/performance.py index a039a7c35665..aca3ac318836 100644 --- a/openquake/baselib/performance.py +++ b/openquake/baselib/performance.py @@ -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) diff --git a/openquake/calculators/event_based.py b/openquake/calculators/event_based.py index 96adec3b3717..c62d9cbdae8c 100644 --- a/openquake/calculators/event_based.py +++ b/openquake/calculators/event_based.py @@ -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')