Skip to content
Snippets Groups Projects
Commit 15e8dfc1 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

small changes in summary for imaging compression pipeline

parent 2af35dfe
No related branches found
No related tags found
1 merge request!355small changes in summary for imaging compression pipeline
Pipeline #87286 passed
...@@ -972,6 +972,7 @@ def construct_imaging_summary(task): ...@@ -972,6 +972,7 @@ def construct_imaging_summary(task):
total_size_to_process += task.size_to_process total_size_to_process += task.size_to_process
total_size_processed += task.size_processed total_size_processed += task.size_processed
total_total_processing_time += task.total_processing_time total_total_processing_time += task.total_processing_time
ratio = total_size_processed / total_size_to_process
# find the summary in the quality json structure # find the summary in the quality json structure
try: try:
...@@ -1034,7 +1035,7 @@ def construct_imaging_summary(task): ...@@ -1034,7 +1035,7 @@ def construct_imaging_summary(task):
results += f'<tr><td colspan="3">{details["pointing"]}</td></tr>' results += f'<tr><td colspan="3">{details["pointing"]}</td></tr>'
stations = details["DStDev"] stations = details["DStDev"]
results += '<tr style="background-color:#7EB100"><td colspan="3"><b>Stations</b></td></tr>' results += '<tr style="background-color:#7EB100"><td colspan="3"><b>Stations_DStDev</b></td></tr>'
results += f'<tr><td colspan="3">{stations}</td></tr>' results += f'<tr><td colspan="3">{stations}</td></tr>'
antennas = details["antennas"] antennas = details["antennas"]
...@@ -1050,6 +1051,9 @@ def construct_imaging_summary(task): ...@@ -1050,6 +1051,9 @@ def construct_imaging_summary(task):
totals += '<tr><td><b>Size to process</b></td colspan="2"><td>' + str(total_size_to_process) + '</td></tr>' totals += '<tr><td><b>Size to process</b></td colspan="2"><td>' + str(total_size_to_process) + '</td></tr>'
totals += '<tr><td><b>Size processed</b><td colspan="2">' + str(total_size_processed) + '</td></tr>' totals += '<tr><td><b>Size processed</b><td colspan="2">' + str(total_size_processed) + '</td></tr>'
totals += '<tr><td><b>Ratio</b></td>'
totals += '<td colspan="2">' + str(round(ratio, 3)) + '</td>'
totals += '</tr>'
try: try:
# add calculated quality per sasid (if present) # add calculated quality per sasid (if present)
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
{% include 'taskdatabase/pagination.html' %} {% include 'taskdatabase/pagination.html' %}
</div> </div>
</div> </div>
<p class="footer"> Version 28 Jun 2024 <p class="footer"> Version 5 Jul 2024
</div> </div>
{% include 'taskdatabase/refresh.html' %} {% include 'taskdatabase/refresh.html' %}
......
...@@ -25,9 +25,6 @@ ...@@ -25,9 +25,6 @@
Filter Filter
<a href="{% url 'sort-tasks' 'filter' 'quality' %}" class="btn btn-light btn-sm" role="button"><i class="fas fa-sort-down"></i></a> <a href="{% url 'sort-tasks' 'filter' 'quality' %}" class="btn btn-light btn-sm" role="button"><i class="fas fa-sort-down"></i></a>
</th> </th>
<th>uv-coverage</th>
<th>Sensitivity</th>
<th>Conditions</th>
<th>Plots</th> <th>Plots</th>
<th>Calc Q</th> <th>Calc Q</th>
<th>Quality</th> <th>Quality</th>
......
...@@ -38,9 +38,6 @@ ...@@ -38,9 +38,6 @@
<td>{{ task.filter }} </td> <td>{{ task.filter }} </td>
{% if task.has_quality %} {% if task.has_quality %}
{% for value in task.quality_as_list %}
<td>{{value}}</td>
{% endfor %}
<td> <td>
<a class="open-modal btn btn-primary btn-sm" <a class="open-modal btn btn-primary btn-sm"
href="{% url 'inspection-plots' task.id my_tasks.number %}" href="{% url 'inspection-plots' task.id my_tasks.number %}"
......
...@@ -19,9 +19,6 @@ ...@@ -19,9 +19,6 @@
Filter Filter
<a href="{% url 'sort-tasks' 'filter' 'validation' %}" class="btn btn-light btn-sm" role="button"><i class="fas fa-sort-down"></i></a> <a href="{% url 'sort-tasks' 'filter' 'validation' %}" class="btn btn-light btn-sm" role="button"><i class="fas fa-sort-down"></i></a>
</th> </th>
<th>uv-coverage</th>
<th>Sensitivity</th>
<th>Conditions</th>
<th>Plots</th> <th>Plots</th>
<th>Summary</th> <th>Summary</th>
<th>Annotate</th> <th>Annotate</th>
......
...@@ -18,9 +18,6 @@ ...@@ -18,9 +18,6 @@
<td>{{ task.filter }} </td> <td>{{ task.filter }} </td>
{% if task.has_quality %} {% if task.has_quality %}
{% for value in task.quality_as_list %}
<td>{{value}}</td>
{% endfor %}
{% if task.has_plots %} {% if task.has_plots %}
<td> <td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment