From fde4b166d4eba131eb63fd29d8d6fd9d2def67a6 Mon Sep 17 00:00:00 2001 From: Romain Bazile Date: Tue, 8 Dec 2020 16:52:50 +0100 Subject: [PATCH] segmenter: remove description from metadata --- scripts/planktoscope/segmenter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/planktoscope/segmenter.py b/scripts/planktoscope/segmenter.py index 217dc1d..1ab855e 100644 --- a/scripts/planktoscope/segmenter.py +++ b/scripts/planktoscope/segmenter.py @@ -240,6 +240,10 @@ class SegmenterProcess(multiprocessing.Process): f"Configuration loaded is {self.__global_metadata}" ) + # TODO Remove all the keys that don't start with acq, sample, object or process + # Otherwise Ecotaxata is annoying as fuck + self.__global_metadata.pop("description") + project = self.__global_metadata["sample_project"].replace(" ", "_") date = self.__global_metadata["process_datetime"] sample = self.__global_metadata["sample_id"]