Просмотр исходного кода

Update of Transformation use case

Jérôme BUISINE 4 лет назад
Родитель
Сommit
941047b935
1 измененных файлов с 2 добавлено и 4 удалено
  1. 2 4
      classes/Transformation.py

+ 2 - 4
classes/Transformation.py

@@ -46,10 +46,8 @@ class Transformation():
             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