From 9852c3c469327fa16e68bb19102e7e479a050701 Mon Sep 17 00:00:00 2001 From: Romain Bazile Date: Tue, 8 Dec 2020 16:51:55 +0100 Subject: [PATCH] imager: remove spaces in path --- scripts/planktoscope/imager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/planktoscope/imager.py b/scripts/planktoscope/imager.py index 0348d22..870d8ca 100644 --- a/scripts/planktoscope/imager.py +++ b/scripts/planktoscope/imager.py @@ -596,8 +596,8 @@ class ImagerProcess(multiprocessing.Process): self.__export_path = os.path.join( self.__base_path, self.__global_metadata["object_date"], - str(self.__global_metadata["sample_id"]), - str(self.__global_metadata["acq_id"]), + str(self.__global_metadata["sample_id"]).replace(" ", "_"), + str(self.__global_metadata["acq_id"]).replace(" ", "_"), ) if os.path.exists(self.__export_path):