Skip to content

Commit

Permalink
New way of handling the path to the C1.h5 file in the m3dc1sup.in fil…
Browse files Browse the repository at this point in the history
…e. Also bug fix in reading previous runs.
  • Loading branch information
wingena committed Apr 5, 2024
1 parent b0fe0a6 commit 5d9dc5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/plasma3DClass.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def readM3DC1supFile(self):
if line[0] == '#': continue
words = line.split()
c1file = words[0]
if ('./' in c1file): c1file = c1file.replace('./', self.inputDir + '/')
if ('$CWD' in c1file): c1file = c1file.replace('$CWD', self.inputDir)
C1Files.append(c1file)
scales.append(tools.makeFloat(words[1]))
if len(words) > 2: phases.append(tools.makeFloat(words[2]))
Expand Down Expand Up @@ -397,9 +397,9 @@ def copyAndRead(self, path, tag = None):
#self.writeCoilsupFile()

# normalization profile data
for tag in ['LI','LO','UI','UO']:
src = path + '/../' + 'lam_' + tag + '.dat'
dst = self.cwd + '/../' + 'lam_' + tag + '.dat'
for normtag in ['LI','LO','UI','UO']:
src = path + '/../' + 'lam_' + normtag + '.dat'
dst = self.cwd + '/../' + 'lam_' + normtag + '.dat'
if (not os.path.isfile(dst)) & os.path.isfile(src):
shutil.copy(src, dst)

Expand Down

0 comments on commit 5d9dc5f

Please sign in to comment.