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

Fix inspectReport; it (must) use non-grouped data.

parent 3048ab2e
No related branches found
No related tags found
1 merge request!9Improved report formatting#18
...@@ -117,13 +117,24 @@ Copyright (c) 2011 University of Wisconsin SSEC. All rights reserved. ...@@ -117,13 +117,24 @@ Copyright (c) 2011 University of Wisconsin SSEC. All rights reserved.
## list out all of the statistics groups we have ## list out all of the statistics groups we have
<table> <table>
% if groupedStats is not UNDEFINED: % if groupedStats is UNDEFINED:
% for setName in sorted(list(statGroups)) :
<% dataSet = statGroups[setName] %>
<tr><th class="l" colspan="2">${setName}</th></tr>
% for statName, statValue in sorted(list(dataSet.items())) :
<tr>
<td class="n">${statName}<a href="${runInfo[constants.DOCUMENTATION_PATH_KEY]}">*</a>:</td>
<td class="n">${report.make_formatted_display_string(statValue)}</td>
</tr>
% endfor
% endfor
% else:
% for setName in sorted(list(groupedStats)) : % for setName in sorted(list(groupedStats)) :
<% dataSet = groupedStats[setName] %> <% dataSet = groupedStats[setName] %>
<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}<%block name="statDocLink"><a href="${runInfo[constants.DOCUMENTATION_PATH_KEY]}">*</a>:</%block></td> <td class="n">${statName}<a href="${runInfo[constants.DOCUMENTATION_PATH_KEY]}">*</a>:</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