Skip to content

Commit

Permalink
Changed temp directory logic to support multi-level dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
brianbeliveau committed Oct 24, 2019
1 parent 8baa089 commit 2b3bc4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions structureCheck.py
Expand Up @@ -107,7 +107,7 @@ def run(self):
dirName = '%s_%d' \
% (self.fileName, np.random.random_integers(0, 1000000))
if not os.path.exists('%s/%s' % (self.tempDir, dirName)):
os.mkdir('%s/%s' % (self.tempDir, dirName))
os.makedirs('%s/%s' % (self.tempDir, dirName))

# Open input file for reading.
with open(self.inputFile, 'r') as f:
Expand Down Expand Up @@ -146,7 +146,7 @@ def run(self):
'mM Na+ and %d%% formamide, added to output' \
% (file_read[i].split('\t')[0],
file_read[i].split('\t')[1],
file_read[i].split('\t')[2],
file_read[i].split('\t')[2],
p, self.threshVal, self.Temp,
self.saltConc, self.formConc))
else:
Expand Down

0 comments on commit 2b3bc4d

Please sign in to comment.