Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix recent QC crash #346

Merged
merged 1 commit into from
Aug 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions configuration/scripts/tests/QC/cice.t-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,13 @@ def stage_one(data_d, num_files, mean_d, variance_d):
for x in maenumerate(data_d):
min_val = np.min(np.abs(r1[x]-r1_table))
idx = np.where(np.abs(r1[x]-r1_table) == min_val)
# Handle the cases where the data point falls exactly half way between
# 2 critical T-values (i.e., idx has more than 1 value in it)
while True:
try:
idx = idx[0]
except:
break
t_crit[x] = t_crit_table[idx]

# Create an array showing locations of Pass / Fail grid cells
Expand Down