Skip to content

Commit

Permalink
Altered temporary run file name in t2data run()- fixes issue #10.
Browse files Browse the repository at this point in the history
  • Loading branch information
acroucher committed Jun 5, 2015
1 parent f8bf157 commit ac0525e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t2data.py
Expand Up @@ -291,7 +291,7 @@ def run(self,save_filename='',incon_filename='',simulator='AUTOUGH2_2',silent=Fa
they are constructed by changing the extensions of the data filename. Set silent to True to suppress screen
output."""
if self.filename:
from os.path import splitext
from os.path import splitext, basename
from os import devnull,system,remove
datbase,ext=splitext(self.filename)
if (self.type=='AUTOUGH2'):
Expand All @@ -300,7 +300,7 @@ def run(self,save_filename='',incon_filename='',simulator='AUTOUGH2_2',silent=Fa
savebase,ext=splitext(save_filename)
inconbase,ext=splitext(incon_filename)
# write a file containing the filenames, to pipe into AUTOUGH2:
runfilename=simulator+'_input.dat'
runfilename = datbase + '_' + basename(simulator) + '.in'
f=open(runfilename,'w')
f.write(savebase+'\n')
f.write(inconbase+'\n')
Expand Down

0 comments on commit ac0525e

Please sign in to comment.