Skip to content

Commit

Permalink
copy athinput and cmd to the rundirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Aug 23, 2023
1 parent 4778298 commit 62cd3b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pythena_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ def browse_dir(t):

def run(self, odir_input, plot):
#print('run')
cmd = f'cp {args.file} {odir_input.text()}'
print(cmd)
Popen(cmd.split())

#cmd = f'{athena} -i {args.file} -d {odir_input.text()} output2/file_type=tab '
cmd = f'{athena} -i {args.file} -d {odir_input.text()} '

Expand All @@ -199,6 +203,10 @@ def run(self, odir_input, plot):
cmd += '%s=%s ' % (k, self.input[k].text())

print(cmd)
hname = f'{odir_input.text()}/cmd'
with open(hname, 'w') as file:
file.write(cmd)

if plot:
if not path.exists(athena):
print('Athena not found\nExiting')
Expand Down

0 comments on commit 62cd3b0

Please sign in to comment.