{% extends "base.html" %} {% load naturaldelta %} {% load remove_whitespace %} {% load profiles %} {% load pathlib %} {% load workstations %} {% load static %} {% load url %} {% load meta_attr %} {% block title %} Algorithm Result - {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block sidebar %}
{% endblock %} {% block content %}

Algorithm Result

{{ object.rendered_result_text }}
{% if json %} {% for object in json %} {% if object.interface.kind == 'STR' %} {% else %} {% endif %} {% endfor %}
Metric Value
{{ object.interface.title }}{{ object.value|slice:"1:-1" }} {{ object.value }}
{% endif %} {% for chart in charts %}

{{ chart.interface.title }}

{{ chart.value|json_script:chart.pk }}
{% endfor %} {% for thumbnail in thumbnails %}

{{ thumbnail.interface.title }}

{{ thumbnail.file.name }}
{% endfor %} {% for file in files %}

{{ file.interface.title }}

 Download {{ file.interface.kind }}
{% endfor %} {% if object.status == object.SUCCESS %} {% endif %}

Result Reference Data

Result ID
{{ object.pk }}
Algorithm
{{ object.algorithm_image.algorithm }}
Algorithm Version
{{ object.algorithm_image.pk }}
Creator
{{ object.creator|user_profile_link }}
Created
{{ object.created }}
Status
{% if object.animate %} {% endif %} {{ object.get_status_display }}{% if object.status == object.SUCCESS and object.stderr %}, with warnings{% endif %}
{% if object.error_message %}
Error Message
{{ object.error_message }}
{% endif %} {% if object.duration %}
Duration
{{ object.duration|naturaldelta }}
{% endif %} {% if object.comment %}
Comment
{{ object.comment }}
{% endif %}
Visibility
{% if object.public %} Result and images are public {% else %} {% if object.viewers.user_set.all|length > 1 %} {# TODO: Hack, we need to exclude the creator rather than checking the length is > 1 #} Result and images are visible by {{ object.viewers.user_set.all|oxford_comma }} {% else %} Result and images are private {% endif %} {% endif %}
Inputs
{% if object.status == object.SUCCESS %}
Outputs
{% endif %}
{% if "change_job" in job_perms %} Edit this Result {% endif %}
{% if "change_job" in job_perms %}

Viewers

Members of the {{ object.viewer_groups.all|oxford_comma }} groups are able to view this result.

{% if object.viewers in object.viewer_groups.all %}

The following users are members of this results viewers group:

Add users {% endif %}
{% endif %} {% if "view_logs" in job_perms %}

Logs

{% if object.runtime_metrics %}

Runtime Metrics

{{ object.runtime_metrics_chart|json_script:"runtimeMetricsData" }}
{% endif %}

Stdout

{# @formatter:off #}
{% if object.stdout %}{{ object.stdout }}{% else %}No logs found on stdout{% endif %}
{# @formatter:on #}

Stderr

{# @formatter:off #}
{% if object.stderr %}{{ object.stderr }}{% else %}No logs found on stderr{% endif %}
{# @formatter:on #}
{% endif %}
{% endblock %} {% block script %} {{ block.super }} {% include 'workstations/partials/session-control.html' %} {% endblock %}