export/import metrics
This commit is contained in:
@@ -7,7 +7,6 @@ import json
|
||||
from django_celery_beat.models import PeriodicTask, ClockedSchedule
|
||||
from django.dispatch import receiver
|
||||
from django.db.models.signals import post_save, post_delete
|
||||
from django.utils.text import slugify
|
||||
from django.utils import timezone
|
||||
from django.db import models
|
||||
from django.contrib.auth.models import User
|
||||
@@ -440,12 +439,14 @@ def create_experiment_well(sender, instance, created, **kwargs):
|
||||
ExperimentWell.objects.get_or_create(experiment=instance, well=wp.well, author=instance.author, defaults={'active':True})
|
||||
|
||||
ExperimentConfig.objects.get_or_create(
|
||||
experiment=instance,
|
||||
well=wp.well,
|
||||
experiment_key=instance,
|
||||
well=wp.well.name,
|
||||
author=instance.author,
|
||||
experiment=instance.identifier,
|
||||
defaults={
|
||||
'px_per_mm': wp.px_per_mm,
|
||||
'fps': ScannerConstants().get().video_frame_rate,
|
||||
'well_radius_mm': instance.multiwell.diameter / 2,
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -275,4 +275,5 @@ def supervisor_restart_service(params):
|
||||
except Exception as e:
|
||||
logger.error(f"supervisor_restart_all_services error {e}")
|
||||
|
||||
|
||||
|
||||
@@ -98,7 +98,12 @@
|
||||
<a href="{% url 'scanner:session_view' %}" class="w3-bar-item w3-btn w3-hover-opacity">
|
||||
<i class="fa-solid fa-gear w3-text-purple w3-xlarge"></i> {% trans "Création de sessions d'expériences" %}
|
||||
</a>
|
||||
<hr class="w3-bar-item divider w3-grey">
|
||||
<hr class="w3-bar-item divider w3-grey">
|
||||
{% if conf.tracking %}
|
||||
<a href="{% url 'planarian:import-params' %}" class="w3-bar-item w3-btn w3-hover-opacity">
|
||||
<i class="fa-solid fa-file-import w3-text-lime w3-xlarge"></i> {% trans "Importer des configurations depuis CSV" %}
|
||||
</a>
|
||||
{% endif %}
|
||||
<a href="{% url 'scanner:experiment_view' %}" class="w3-bar-item w3-btn w3-hover-opacity">
|
||||
<i class="fa-solid fa-gear w3-text-pink w3-xlarge"></i> {% trans "Gestions des expériences" %}
|
||||
</a>
|
||||
@@ -110,15 +115,15 @@
|
||||
</a>
|
||||
<hr class="w3-bar-item divider w3-grey w3-margin-bottom">
|
||||
{% endif %}
|
||||
{% if conf.tracking %}
|
||||
<a href="{% url 'planarian:export-csv' %}" class="w3-bar-item w3-btn w3-hover-opacity">
|
||||
<i class="fa-solid fa-vials w3-text-lime w3-xlarge"></i> {% trans "Export CSV des expériences" %}
|
||||
</a>
|
||||
{% endif %}
|
||||
<a href="{% url 'scanner:scanning' %}" class="w3-bar-item w3-btn w3-hover-opacity">
|
||||
<i class="fa-solid fa-film w3-text-green w3-xlarge""></i> {% trans "Balayage multi-puits" %}
|
||||
</a>
|
||||
<div class="w3-bar-item w3-dark-xxlight">{% trans "Résultats " %}</div>
|
||||
{% if conf.tracking %}
|
||||
<a href="{% url 'planarian:export-csv' %}" class="w3-bar-item w3-btn w3-hover-opacity">
|
||||
<i class="fa-solid fa-file-export w3-text-lime w3-xlarge"></i> {% trans "Export CSV des expériences" %}
|
||||
</a>
|
||||
{% endif %}
|
||||
<a href="{% url 'scanner:images' %}" class="w3-bar-item w3-btn w3-hover-opacity">
|
||||
<i class="fa-regular fa-images w3-text-cyan w3-xlarge" w3-xlarge""></i> {% trans "Gestionnaire d'images" %}
|
||||
</a>
|
||||
@@ -136,7 +141,7 @@
|
||||
<script>
|
||||
const stats_endpoint = "{% url 'scanner:api_stats' %}";
|
||||
</script>
|
||||
<!--script src="/static/scanner/js/stats.js"></script-->
|
||||
<script src="/static/scanner/js/stats.js"></script>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user