This commit is contained in:
stten5 2023-03-31 10:11:44 +02:00
parent f4e41b2422
commit f35b128ff1
2 changed files with 9 additions and 6 deletions

View File

@ -1,4 +1,4 @@
echo on
SET mypath=%~dp0
cd %mypath%
.\venv\Scripts\activate.bat && python -O "./src/main.py" --no-edgetpu --no-tflite --no-autotest
.\venv\Scripts\activate.bat && python -O "./src/main.py" --no-edgetpu --no-tflite

View File

@ -10,10 +10,17 @@ from components.Automation.BDaq import ErrorCode
class Test_Leak(Test_Test):
def __init__(self, components=None, recipe=None, step=None, pieces=None, run_once=False, reset_on_start=True, enable_override=False,parent=None):
super().__init__(components=components, recipe=recipe, step=step, pieces=pieces, run_once=run_once, reset_on_start=reset_on_start, enable_override=enable_override)
self.start_b.clicked.connect(lambda checked, self=weakref.ref(self): self().components["tecna_t3"].start_test())
self.step=step
self.start_b.clicked.connect(self.start_test)
self.stop_b.clicked.connect(lambda checked, self=weakref.ref(self): self().components["tecna_t3"].stop_test())
self.parent=parent
def start_test(self):
# print extra labels
if self.step.type == "leak_1":
self.parent.print_extra_labels()
self.components["tecna_t3"].start_test()
def start(self, recipe=None, step=None, pieces=None):
# TESTING
if "--test-leak" in sys.argv or "--test" in sys.argv:
@ -25,10 +32,6 @@ class Test_Leak(Test_Test):
if show is False:
return show
# print extra labels
if step.type == "leak_1":
self.parent.print_extra_labels()
# setup test loop
self.components["tecna_t3"].write_recipe(self.recipe, self.step)
self.get_connection = self.components["tecna_t3"].out.connect(self.get)