Skip to content

Commit

Permalink
features profiles by performance
Browse files Browse the repository at this point in the history
IssueID #2184: features profiles by performance

- Added fp efficiency and layer efficiency calculations to the search features
  results table.  This is a simple percentage calculation of matched over number
  of time checked.

Modified:
skyline/webapp/templates/search_features_profiles.html
  • Loading branch information
earthgecko committed Nov 8, 2017
1 parent 7b8ff93 commit 86931b0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions skyline/webapp/templates/search_features_profiles.html
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ <h4><span class="logo"><span class="sky">Metrics ::</span> <span class="re">feat
<th>generation</th>
<th>origin</th>
<th>full duration</th>
<!-- # @added 20171020 - Feature #2184: features profiles by performance-->
<th>fp efficiency</th>
<th>match count</th>
<th>last matched</th>
<th>checked count</th>
Expand All @@ -352,6 +354,8 @@ <h4><span class="logo"><span class="sky">Metrics ::</span> <span class="re">feat
<!-- # @added 20170402 - Feature #2000: Ionosphere - validated -->
<th>validated</th>
<th>layer id</th>
<!-- # @added 20171020 - Feature #2184: features profiles by performance-->
<th>layer efficiency</th>
<!-- @added 20170322 - Feature #1960: ionosphere_layers
# Added layers information to the features profiles search results -->
<th>layer matched count</th>
Expand Down Expand Up @@ -389,14 +393,36 @@ <h4><span class="logo"><span class="sky">Metrics ::</span> <span class="re">feat
{% endif %}
{% endif %}
<td>{{ item[3] }}</td>
<!-- # @added 20171020 - Feature #2184: features profiles by performance-->
{% if item[10] == 0 %}
<td>0 %</td>
{% else %}
<td>{{ (item[10] / item[13] * 100)|round(1, 'common')}} %</td>
{% endif %}
<td>{{ item[10] }}</td>
<td>{{ item[11] }}</td>
<td>{{ item[13] }}</td>
<td>{{ item[14] }}</td>
<td>{{ item[12] }}</td>
<td>{{ item[17] }}</td>
<td>{{ item[18] }}</td>
<!-- # @added 20171106 - Feature #2184: features profiles by performance
Handle if no layers in results, not ideal but works. If item[19] do not exist
for any of the returned features profiles the layers column values will be blank -->
{% if item[19] %}
<!-- # @added 20171020 - Feature #2184: features profiles by performance -->
{% if item[19] == 0 %}
<td>0 %</td>
<td>{{ item[19] }}</td>
{% else %}
<td>{{ (item[19] / item[21] * 100)|round(1, 'common')}} %</td>
<td>{{ item[19] }}</td>
{% endif %}
{% else %}
<td>0 %</td>
<td>{{ item[19] }}</td>
{% endif %}
<!-- <td>{{ item[19] }}</td> -->
<td>{{ item[20] }}</td>
<td>{{ item[21] }}</td>
<td>{{ item[22] }}</td>
Expand Down

0 comments on commit 86931b0

Please sign in to comment.