{% extends "base.html" %} {% load i18n %} {% block content %}
📂 {% trans "Importer des configurations depuis CSV" %}
{% for message in messages %}

{{ message }}

{% endfor %}
{% csrf_token %} {% if form.non_field_errors %}
{% for error in form.non_field_errors %}

⚠ {{ error }}

{% endfor %}
{% endif %}

{% trans "Fichier CSV Ă  importer" %}

📄

{% trans "Glissez-déposez votre fichier CSV ici" %}
{% trans "ou cliquez pour sélectionner" %}

{% if form.csv_file.errors %}
{% for error in form.csv_file.errors %}

⚠ {{ error }}

{% endfor %}
{% endif %}
{% if form.overwrite.errors %} {{ form.overwrite.errors|join:", " }} {% endif %}
✖ {% trans "Annuler" %}

{% trans "Format du fichier CSV" %}

{% trans "Colonnes obligatoires" %}

{% trans "Colonne" %} {% trans "Type" %} {% trans "Exemple" %} {% trans "Description" %}
experiment {% trans "texte" %} exp_2026_04_25 {% trans "Identifiant unique de l'expérience" %}
well {% trans "texte" %} A1 {% trans "Identifiant du puits" %}
px_per_mm {% trans "flottant" %} 26.25 {% trans "Calibration optique (pixels/mm)" %}
fps {% trans "flottant" %} 10.0 {% trans "Fréquence de capture (images/s)" %}

{% trans "Colonnes optionnelles" %} {% trans "(valeurs par défaut utilisées si absentes)" %}

{% trans "Colonne" %} {% trans "Défaut" %} {% trans "Description" %}
well_radius_mm 8.0 {% trans "Rayon du puits (mm)" %}
thresh_immobile 0.2 {% trans "Seuil Immobile EthoVision (mm/s)" %}
thresh_mobile 1.5 {% trans "Seuil Mobile EthoVision (mm/s)" %}
tube_axis vertical {% trans "Axe du tube : vertical | horizontal" %}
min_area_px 20 {% trans "Surface min de dĂ©tection (pxÂČ)" %}
planarian_count 1 {% trans "Nombre de planaires par puits" %}
photo_mode none {% trans "Phototactisme : none | fixed | sine | radial" %}
photo_strength 0.0 {% trans "Intensité phototactisme (0-1)" %}
chemo_strength 0.0 {% trans "Intensité chimiotactisme (0-1)" %}
chemo_radius_mm 2.0 {% trans "Rayon zone nourriture (mm)" %}
avoid_radius_mm 3.0 {% trans "Rayon évitement inter-individus (mm)" %}
aggreg_radius_mm 6.0 {% trans "Rayon agrégation inter-individus (mm)" %}

{% trans "Exemple minimal" %}

experiment,well,px_per_mm,fps,thresh_immobile,thresh_mobile,photo_mode
exp_ctrl_01,A1,26.25,10,0.2,1.5,none
exp_ctrl_01,A2,26.25,10,0.2,1.5,none
exp_light_01,B1,26.25,10,0.2,1.5,fixed
exp_light_01,B2,26.25,10,0.2,1.5,fixed
⬇ {% trans "TĂ©lĂ©charger un template CSV vide" %} {% trans "Ou exportez vos configurations existantes depuis l'admin Django." %}
{% endblock %}