Skip to content
Snippets Groups Projects
Commit c7201334 authored by (no author)'s avatar (no author)
Browse files

correcting interaction between shouldIncludeImages in settings and the new...

correcting interaction between shouldIncludeImages in settings and the new plot only on fail feature

git-svn-id: https://svn.ssec.wisc.edu/repos/glance/trunk@74 8a9318a1-56ba-4d59-b755-99d26321be01
parent acdee99b
No related branches found
No related tags found
No related merge requests found
......@@ -971,9 +971,14 @@ python -m glance
variableAnalysisInfo[varKey]['var_stats'],
defaultValues)
varRunInfo['did_pass'] = didPass
if ('only_plot_on_fail' in varRunInfo) and (varRunInfo['only_plot_on_fail']) :
varRunInfo['shouldIncludeImages'] = ((not didPass) and varRunInfo['only_plot_on_fail']
and ((not ('shouldIncludeImages' in varRunInfo)) or varRunInfo['shouldIncludeImages']))
# based on the settings the user gave and whether the variable passsed or failed,
# should we include images for this variable?
currentIncludeImages = runInfo['shouldIncludeImages']
if ('shouldIncludeImages' in varRunInfo) :
currentIncludeImages = varRunInfo['shouldIncludeImages']
if ('only_plot_on_fail' in varRunInfo) :
varRunInfo['shouldIncludeImages'] = currentIncludeImages and (not (varRunInfo['only_plot_on_fail'] and didPass))
# set the rest of our info
variableAnalysisInfo[varKey]['run_info'] = varRunInfo
variableAnalysisInfo[varKey]['exp_name'] = explanationName
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment