Skip to content
Snippets Groups Projects
Commit 295cc055 authored by Alan De Smet's avatar Alan De Smet
Browse files

Fix stat summary shown in GUI.

parent ae92da37
No related branches found
No related tags found
1 merge request!9Improved report formatting#18
...@@ -8,8 +8,6 @@ Copyright (c) 2011 University of Wisconsin SSEC. All rights reserved. ...@@ -8,8 +8,6 @@ Copyright (c) 2011 University of Wisconsin SSEC. All rights reserved.
<%inherit file="variablereport.txt"/> <%inherit file="variablereport.txt"/>
<%block name="statDocLink"></%block>
<%block name="htmlContent"> <%block name="htmlContent">
<h3>${self.title()}</h3> <h3>${self.title()}</h3>
......
...@@ -116,6 +116,13 @@ Copyright (c) 2011 University of Wisconsin SSEC. All rights reserved. ...@@ -116,6 +116,13 @@ Copyright (c) 2011 University of Wisconsin SSEC. All rights reserved.
<h3>Statistical Summary</h3> <h3>Statistical Summary</h3>
## list out all of the statistics groups we have ## list out all of the statistics groups we have
<%def name="doclink()">
% if constants.DOCUMENTATION_PATH_KEY in runInfo:
<a href="${runInfo[constants.DOCUMENTATION_PATH_KEY]}">*</a>
% else:
% endif
</%def>
<table> <table>
% if groupedStats is UNDEFINED: % if groupedStats is UNDEFINED:
% for setName in sorted(list(statGroups)) : % for setName in sorted(list(statGroups)) :
...@@ -123,7 +130,7 @@ Copyright (c) 2011 University of Wisconsin SSEC. All rights reserved. ...@@ -123,7 +130,7 @@ Copyright (c) 2011 University of Wisconsin SSEC. All rights reserved.
<tr><th class="l" colspan="2">${setName}</th></tr> <tr><th class="l" colspan="2">${setName}</th></tr>
% for statName, statValue in sorted(list(dataSet.items())) : % for statName, statValue in sorted(list(dataSet.items())) :
<tr> <tr>
<td class="n">${statName}<a href="${runInfo[constants.DOCUMENTATION_PATH_KEY]}">*</a>:</td> <td class="n">${statName}${doclink()}:</td>
<td class="n">${report.make_formatted_display_string(statValue)}</td> <td class="n">${report.make_formatted_display_string(statValue)}</td>
</tr> </tr>
% endfor % endfor
...@@ -134,7 +141,7 @@ Copyright (c) 2011 University of Wisconsin SSEC. All rights reserved. ...@@ -134,7 +141,7 @@ Copyright (c) 2011 University of Wisconsin SSEC. All rights reserved.
<tr><th class="l">${setName}</th><th>Both</th><th>File A</th><th>File B</th></tr> <tr><th class="l">${setName}</th><th>Both</th><th>File A</th><th>File B</th></tr>
% for statName, statValue in sorted(list(dataSet.items())) : % for statName, statValue in sorted(list(dataSet.items())) :
<tr> <tr>
<td class="n">${statName}<a href="${runInfo[constants.DOCUMENTATION_PATH_KEY]}">*</a>:</td> <td class="n">${statName}${doclink()}:</td>
<td class="n">${report.make_formatted_display_string(statValue['both'])}</td> <td class="n">${report.make_formatted_display_string(statValue['both'])}</td>
<td class="n">${report.make_formatted_display_string(statValue['a'])}</td> <td class="n">${report.make_formatted_display_string(statValue['a'])}</td>
<td class="n">${report.make_formatted_display_string(statValue['b'])}</td> <td class="n">${report.make_formatted_display_string(statValue['b'])}</td>
......
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