From d3c6eebe8566017340939aa6aa399f84f0ff8059 Mon Sep 17 00:00:00 2001 From: "C. Bruce Worden" Date: Fri, 25 Jan 2019 11:22:03 -0700 Subject: [PATCH] Removed timing printouts; made min and max repi work. --- ps2ff/run.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ps2ff/run.py b/ps2ff/run.py index ff0f7c2..ecc3bdf 100644 --- a/ps2ff/run.py +++ b/ps2ff/run.py @@ -75,8 +75,6 @@ def single_event_adjustment( - Variance of Rrup conditioned on Repi, M, and Zhyp. """ - start_time = time.time() - # Check that mag_scaling and mechanism are the # correct type if not isinstance(mag_scaling, MagScaling): @@ -107,10 +105,8 @@ def single_event_adjustment( conf['max_seis_depth'] = 35.0 # not used? conf['bytheta'] = False - repi_min = 0.1 - repi_max = 1000 repi = np.logspace( - np.log10(repi_min), np.log10(repi_max), n_repi) + np.log10(min_repi), np.log10(max_repi), n_repi) Rrup_var = np.zeros_like(repi) Rrup_avg = np.zeros_like(repi) @@ -121,6 +117,4 @@ def single_event_adjustment( Rrup_var[i], Rrup_avg[i], Rjb_var[i], Rjb_avg[i] = \ single_event_inner_loop(conf, repi[i], ntheta=n_theta) - print("Total execution time %f seconds." % (time.time() - start_time)) - return repi, Rjb_avg, Rrup_avg, Rjb_var, Rrup_var