From e09a9521ac89cf806e0cff3d60e09baaf9450a1d Mon Sep 17 00:00:00 2001
From: lopa <pardini@physik.hu-berlin.de>
Date: Thu, 12 Apr 2018 16:23:30 +0200
Subject: [PATCH] mistake... forgot to chage dir in previous

---
 parser/parser-elastic/parser_elastic.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/parser/parser-elastic/parser_elastic.py b/parser/parser-elastic/parser_elastic.py
index 57dd451..01dad9f 100644
--- a/parser/parser-elastic/parser_elastic.py
+++ b/parser/parser-elastic/parser_elastic.py
@@ -62,11 +62,11 @@ class SampleContext(object):
         backend.addArrayValues('configuration_periodic_dimensions', np.asarray([True, True, True]))
         self.SGN = int(section["x_elastic_space_group_number"][0])
         mainFile = self.parser.fIn.fIn.name
-        dirPath = os.path.dirname(mainFile)           #####exciting sbt -> zip file####     YES ?????????? sure???? check first    OKOKOKKO
+#        dirPath = os.path.dirname(mainFile)           #####exciting sbt -> zip file####     YES ?????????? sure???? check first    OKOKOKKO
         self.mainFile = self.parser.fIn.name              #####exciting sbt -> zip file####     YES
         self.mainFilePath = self.mainFile[0:-12]    #####exciting sbt -> zip file####           YES
 #        print("self.mainFileUri=",self.mainFileUri)
-#        dirPath = self.mainFileUri[0:-12]   #####exciting LOCAL HOME or from NOMAD URI nmd://  #######   YES                      OKOKOKOK
+        dirPath = self.mainFileUri[0:-12]   #####exciting LOCAL HOME or from NOMAD URI nmd://  #######   YES                      OKOKOKOK
 #        print("dirPath=",dirPath)
 #        for files in os.listdir(self.mainFilePath):
         for files in os.listdir(dirPath):
@@ -326,6 +326,7 @@ class SampleContext(object):
 
 #        my_file = Path("Energy-vs-Strain")
 #        print("ooooo",my_file.exists())
+#        print("oooooooo ", os.listdir())
         if 'Energy-vs-Strain' in os.listdir():
 #        if my_file.is_dir():
 #            print("esiste! :-)")
-- 
GitLab