{% extends "base.html" %} {% block title %}Reduction job #{{ run.title|default:"null" }}{% endblock %} {% load view %} {% load colour_table_rows %} {% load natural_time_difference %} {% load replace %} {% load naturaltime from humanize %} {% load static %} {% block body %} {% comment %} only pull in plotly if there are interactive plots {% endcomment %} {% if interactive_plots %} {% endif %} {% if not run %}
Reduction run not found or error encountered: {{ message }}.
{% else %} Reduction Job #{{ run.title }}

Reduction Job #{{ run.title }}

{% if is_rerun %}

(This run has been re-reduced, see history)

{% endif %}
{% if plot_error_message %}

{{ plot_error_message }}

{% else %} {% if static_plots %}
{% for plot_file in static_plots %} {% if static_plots|length == 1 %} Plot image stored at {{ plot_file }} {% else %} Plot image stored at {{ plot_file }} {% endif %} {% endfor %}
{% endif %} {% if interactive_plots %}
{% for name, data in interactive_plots.items %}
{% endfor %}
{% endif %} {% endif %} {% if run.message %} {% if 'Skipped' in run.message %} {% else %} {% endif %} {% endif %}
{% if run.run_description %} Run description: {{ run.run_description }} {% endif %}
{% if started_by is not null %} Started by: {{ started_by }} {% endif %}
Status: {{ run.status.value_verbose }}
Last Updated: {{ run.last_updated }}
Start: {% if run.started %} {{ run.started }} {% elif is_skipped %} Not run {% else %} Not yet started {% endif %}
Finish: {% if is_skipped %} Not run {% elif run.finished %} {{ run.finished }} {% else %} Not yet finished {% endif %}
Duration: {% if run.started and run.finished %} {% natural_time_difference run.started run.finished %} {% elif is_skipped %} Not run {% else %} Not yet finished {% endif %}
Retrying: {% if run.finished %} {% if run.retry_when %} {{ run.retry_when|naturaltime }} {% if run.retry_run %} ({{ run.retry_run.status.value_verbose }}) {% endif %} {% else %} Never {% endif %} {% else %} Not yet finished {% endif %}
Software used: {% if run.software is not null %} {{ run.software.name }} - {{ run.software.version }} {% else %} No software data found {% endif %}
Data: {% if run.data_location.all %} {% for location in run.data_location.all %} {{ location.file_path }}
{% endfor %} {% else %} No data found {% endif %}
Host: {{ run.reduction_host }}
Reduced: {% if reduction_location %} {{ reduction_location }}
{% elif run.reduction_location.all %} {% for location in run.reduction_location.all %} {{ location.file_path }}
{% endfor %} {% else %} No reduced data found {% endif %}
{% if not is_skipped %} {% endif %}
{% if not is_skipped %}
{% if run.graph %}
{% for graph in run.graph %}
{% endfor %}
{% endif %} {% if has_run_variables and has_reduce_vars %} {% autoescape on %} {% view "instrument.views.variables.render_run_variables" instrument run_number run_version %} {% endautoescape %} {% elif not has_run_variables %}

No variables found for this run.

{% elif not has_reduce_vars %}

The reduce_vars.py script is missing for this instrument. Please create it before being able to submit re-runs.

{% endif %}
Back to {{ run.instrument.name }} runs
{% endif %} {% endif %} {% endblock %} {% block stylesheets %} {% endblock %} {% block scripts %} {% endblock %}