dev free_fall

This commit is contained in:
edo-neo 2025-10-16 10:09:39 +02:00
parent 9b0f39b882
commit b1360c20ca
3 changed files with 22 additions and 1 deletions

View File

@ -59,6 +59,7 @@ label_template_field: modello_etichetta
description_field: descrizione
[recipes_defaults]
prova_pervieta_abilitata:
tester_discharge_enable: yes
dimensione_lotto_abilitata: x
tempo_pre_riempimento: 0

View File

@ -393,6 +393,26 @@ def export_recipes(config, csv_path=None, logger=None):
fieldnames.update(["prova_tenuta_abilitata", "tempo_pre_riempimento", "pressione_pre_riempimento",
"tempo_di_test", "pressione_di_test", "pid_pressure_correction"])
# Export Free Fall leak test parameters
if "test_freefall_leak" in steps:
# Ensure enable flag present even if leak_1 absent
exportable.update({
"prova_pervieta_abilitata": exportable.get("prova_pervieta_abilitata", ""),
"tempo_riempimento_free_fall": steps["test_freefall_leak"].spec.get("filling_time", 0),
"pressione_riempimento_free_fall": steps["test_freefall_leak"].spec.get("filling_pressure", 0),
"pressione_min_free_fall": steps["test_freefall_leak"].spec.get("pressure_min", 0),
"pressione_max_free_fall": steps["test_freefall_leak"].spec.get("pressure_max", 0),
"riempimento_continuo_free_fall": "x" if steps["test_freefall_leak"].spec.get("continuous_filling") else "",
})
fieldnames.update([
"prova_pervieta_abilitata",
"tempo_riempimento_free_fall",
"pressione_riempimento_free_fall",
"pressione_min_free_fall",
"pressione_max_free_fall",
"riempimento_continuo_free_fall",
])
if "leak_2" in steps:
exportable.update({
"prova_tenuta_abilitata_2": "x",

View File

@ -181,7 +181,7 @@ class Test_Leak(Test_Test):
if hasattr(self, name):
getattr(self, name).setVisible(False)
self.display_text(text="COLLAUDARE USANDO IL SISTEMA DI FLUSSAGGIO ALLA FINE DELLA PROVA POSIZIONRE IL PEZZO PER LA PROVATENUTA")
self.display_text(text="COLLAUDARE USANDO IL SISTEMA DI FLUSSAGGIO ALLA FINE DELLA PROVA POSIZIONRE IL PEZZO PER LA PROVA TENUTA")
# Show placeholder image for free-fall: PERVIETÀ.png
pervieta_path_candidates = [