Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
Removed timing printouts; made min and max repi work.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbworden committed Jan 25, 2019
1 parent 19ebf28 commit d3c6eeb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ps2ff/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
Expand All @@ -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

0 comments on commit d3c6eeb

Please sign in to comment.