Skip to content

Commit

Permalink
rename network.pdf's as they are made so they don't overwrite each other
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohnson541 committed Apr 22, 2019
1 parent d580928 commit e09ad75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arkane/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def execute(self, outputFile, plot, format='pdf', print_summary=True, speciesLis
warns.append('Reaction {0} in the input file was not included in the reduced model.'.format(rxn))

self.networks = networks
for network in self.networks:
for p,network in enumerate(self.networks):
self.pdepjob.network = network

if len(self.networks) > 1:
Expand All @@ -289,6 +289,8 @@ def execute(self, outputFile, plot, format='pdf', print_summary=True, speciesLis
stot = outputFile

self.pdepjob.execute(stot, plot, format='pdf', print_summary=True)
if os.path.isfile('network.pdf'):
os.rename('network.pdf','network'+str(p)+'.pdf')

if warns != []:
logging.info('\nOUTPUT WARNINGS:\n')
Expand Down

0 comments on commit e09ad75

Please sign in to comment.