dev free_fall

This commit is contained in:
edo-neo 2025-10-15 15:09:49 +02:00
parent b8f34dd2a9
commit e913ababdb

View File

@ -113,13 +113,17 @@ class Test_Leak(Test_Test):
self.template_print_l.setText(f"AUTOTEST")
else:
self.template_print_l.setText(f"{self.parent.print_template}")
self.recipe_pressure_l.setText(f"{self.step.spec['test_pressure']}")
self.leak_min_l.setText(f"{self.step.spec['test_pressure_qneg']}")
self.leak_max_l.setText(f"{self.step.spec['test_pressure_qpos']}")
self.fill_time_l.setText(f"{self.step.spec['filling_time']}")
self.settle_time_l.setText(f"{self.step.spec['settling_time']}")
self.meas_time_l.setText(f"{self.step.spec['test_time']}")
self.valore_PID_l.setText(f"{self.step.spec.get('pid_pressure_correction')}")
# Populate labels defensively to support both Leak and Free Fall specs
pressure_val = self.step.spec.get('test_pressure', self.step.spec.get('filling_pressure', ""))
leak_min_val = self.step.spec.get('test_pressure_qneg', self.step.spec.get('pressure_min', ""))
leak_max_val = self.step.spec.get('test_pressure_qpos', self.step.spec.get('pressure_max', ""))
self.recipe_pressure_l.setText(f"{pressure_val}")
self.leak_min_l.setText(f"{leak_min_val}")
self.leak_max_l.setText(f"{leak_max_val}")
self.fill_time_l.setText(f"{self.step.spec.get('filling_time', '')}")
self.settle_time_l.setText(f"{self.step.spec.get('settling_time', '')}")
self.meas_time_l.setText(f"{self.step.spec.get('test_time', '')}")
self.valore_PID_l.setText(f"{self.step.spec.get('pid_pressure_correction', '')}")
# SETUP TEST LOOP
if self.step.spec.get("autotest", False): # IF AUTOTESTING UPLOAD RECIPE EVERY TIME