From 88f2f72b657518758d887b424ba65bcd3e98803d Mon Sep 17 00:00:00 2001 From: Romain Bazile Date: Tue, 6 Jul 2021 13:15:31 +0200 Subject: [PATCH] imager: fix capture loop --- scripts/planktoscope/imager/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/planktoscope/imager/__init__.py b/scripts/planktoscope/imager/__init__.py index 77b17e4..81870c9 100644 --- a/scripts/planktoscope/imager/__init__.py +++ b/scripts/planktoscope/imager/__init__.py @@ -238,7 +238,7 @@ class ImagerProcess(multiprocessing.Process): planktoscope.light.interrupted() - self.__imager.change(planktoscope.imager_state_machine.Stop) + self.__imager.change(planktoscope.imager.state_machine.Stop) def __message_update(self, last_message): if self.__imager.state.name == "stop": @@ -505,7 +505,7 @@ class ImagerProcess(multiprocessing.Process): # Reset the counter to 0 self.__img_done = 0 # Change state towards stop - self.__imager.change(planktoscope.imager_state_machine.Stop) + self.__imager.change(planktoscope.imager.state_machine.Stop) planktoscope.light.error() return @@ -526,7 +526,7 @@ class ImagerProcess(multiprocessing.Process): ) # Reset the counter to 0 self.__img_done = 0 - self.__imager.change(planktoscope.imager_state_machine.Stop) + self.__imager.change(planktoscope.imager.state_machine.Stop) planktoscope.light.error() return else: @@ -612,7 +612,7 @@ class ImagerProcess(multiprocessing.Process): self.imager_client.client.publish("status/imager", '{"status":"Done"}') - self.__imager.change(planktoscope.imager_state_machine.Stop) + self.__imager.change(planktoscope.imager.state_machine.Stop) planktoscope.light.ready() else: # We have not reached the final stage, let's keep imaging