Skip to content

Commit

Permalink
Merge branch 'plasma3D' of github.com:plasmapotential/HEAT into plasma3D
Browse files Browse the repository at this point in the history
  • Loading branch information
wingena committed Apr 9, 2024
2 parents 32a72d9 + 5d9dc5f commit 1beab9a
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 @@ -260,7 +260,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 @@ -418,9 +418,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 1beab9a

Please sign in to comment.