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

QC Script Debug #108

Merged
merged 2 commits into from
Mar 28, 2018
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
10 changes: 7 additions & 3 deletions configuration/scripts/tests/QC/cice.t-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,11 @@ def two_stage_test(data_a,data_b,num_files,data_d):
else:
logger.error('TEST NOT CONCLUSIVE')
passed = False
return passed, passed_array

try:
return passed, passed_array
except:
return passed, 0

# Calculate Taylor Skill Score
def skill_test(path_a,fname,data_a,data_b,num_files,tlat,hemisphere):
Expand Down Expand Up @@ -473,10 +477,10 @@ def plot_two_stage_failures(data,lat,lon):
logger.info('')
if not passed and not passed_skill:
logger.error('Quality Control Test FAILED')
post_to_cdash(False)
#post_to_cdash(False)
sys.exit(1) # exit with an error return code
else:
logger.info('Quality Control Test PASSED')
post_to_cdash(True)
#post_to_cdash(True)
sys.exit(0) # exit with successfull return code