Skip to content

Commit fc8e535

Browse files
authored
Update RESTORE.py
1 parent df985b0 commit fc8e535

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

RESTORE.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ def lilliefors(magcat, mmin):
338338

339339
from statsmodels.stats.diagnostic import lilliefors as lillie
340340
from numpy import random
341-
import numpy as np
342341

343342
incert = ((random.randint(0, 10000, size=len(magcat))) - 5000) / 100000
344343
mag = magcat[:] + incert[:]
@@ -512,7 +511,7 @@ def mc_vs_time(magcat, mmin, mc_ok, serial_times, size, step):
512511
# --> STAI gap ends
513512
tmp_hole_upper_lim.append(t_window[i])
514513

515-
# Refine STAI gap start time by setting it to the time of the largest shock in the interval,
514+
# Refine STAI gap start time by setting it to the time of the largest shock in the interval,
516515
# which has caused the raise of the magnitude of completeness
517516
for j in range(len(tmp_hole_lower_lim)):
518517
idx_critical = [idx for idx, val in enumerate(serial_times) if
@@ -522,7 +521,7 @@ def mc_vs_time(magcat, mmin, mc_ok, serial_times, size, step):
522521
idx_main = idx_critical[iidx_main[0]]
523522
tmp_hole_lower_lim[j] = serial_times[idx_main]
524523

525-
# Exclude too small regions, which could simply arise from statistical fluctuations of the magnitude of completeness
524+
# Exclude too small regions, which could simply arise from statistical fluctuations of the magnitude of completeness
526525
a, b = [], []
527526
for j in range(len(tmp_hole_lower_lim)):
528527
index = [idx for idx, val in enumerate(serial_times) if

0 commit comments

Comments
 (0)