From 941047b93517368294c28281df15ec8c859d855c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20BUISINE?= Date: Thu, 27 Jun 2019 17:07:50 +0200 Subject: [PATCH] Update of Transformation use case --- classes/Transformation.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/classes/Transformation.py b/classes/Transformation.py index e6380fe..10935af 100644 --- a/classes/Transformation.py +++ b/classes/Transformation.py @@ -46,10 +46,8 @@ def getTransformationPath(self): path = os.path.join(path, 'N' + str(n_components)) if self.transformation == 'static': - # param contains the whole path of image - last_element = self.param.split('/')[-1] - output_path = self.param.replace(last_element, '') - path = os.path.join(output_path, self.transformation, last_element) + # param contains image name to find for each scene + path = self.param return path