Skip to content
Snippets Groups Projects
Commit e09a9521 authored by Pardini, Lorenzo (lopa)'s avatar Pardini, Lorenzo (lopa)
Browse files

mistake... forgot to chage dir in previous

parent 92a5c8d4
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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! :-)")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment