From 6cb8b70eaae6bfdaa1a50a673637e0c6b2795883 Mon Sep 17 00:00:00 2001 From: Romain Bazile Date: Mon, 18 Oct 2021 14:01:58 +0200 Subject: [PATCH] sourcery: remove f-strings to make it happy --- scripts/planktoscope/imager/__init__.py | 5 ++--- scripts/planktoscope/stepper.py | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/planktoscope/imager/__init__.py b/scripts/planktoscope/imager/__init__.py index 7916496..bc29cbd 100644 --- a/scripts/planktoscope/imager/__init__.py +++ b/scripts/planktoscope/imager/__init__.py @@ -543,7 +543,7 @@ class ImagerProcess(multiprocessing.Process): if "object_date" not in self.__global_metadata: # If this path exists, then ids are reused when they should not - logger.error(f"The metadata did not contain object_date!") + logger.error("The metadata did not contain object_date!") self.imager_client.client.publish( "status/imager", '{"status":"Configuration update error: object_date is missing!"}', @@ -768,7 +768,6 @@ class ImagerProcess(multiprocessing.Process): logger.success("Imager process shut down! See you!") -# This is called if this script is launched directly +# TODO This should be a test suite for this library if __name__ == "__main__": - # TODO This should be a test suite for this library pass diff --git a/scripts/planktoscope/stepper.py b/scripts/planktoscope/stepper.py index f884fd7..18836ac 100644 --- a/scripts/planktoscope/stepper.py +++ b/scripts/planktoscope/stepper.py @@ -253,7 +253,7 @@ class StepperProcess(multiprocessing.Process): logger.error(f"{self.stepper_type} is what was supplied") return - logger.info(f"Stepper initialisation is over") + logger.info("Stepper initialisation is over") def __message_pump(self, last_message): logger.debug("We have received a pumping command") @@ -295,7 +295,7 @@ class StepperProcess(multiprocessing.Process): # Get number of steps from the different received arguments flowrate = float(last_message["flowrate"]) if flowrate == 0: - logger.error(f"The flowrate should not be == 0") + logger.error("The flowrate should not be == 0") self.actuator_client.client.publish( "status/pump", '{"status":"Error, The flowrate should not be == 0"}' )