Skip to content

Commit

Permalink
Set permissions of job.sh file to 777 after creation
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinp0 committed Dec 24, 2024
1 parent 3134bec commit 13a7f02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arc/job/adapters/ts/heuristics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1184,6 +1184,9 @@ def crest_ts_conformer_search(xyz_guess: dict, a_atom: int, h_atom: int, b_atom:

with open(os.path.join(path, 'job.sh'), 'w') as f:
f.write(crest_job)
# Need to make the job.sh file 777
os.chmod(os.path.join(path, 'job.sh'), 0o777)

elif SERVERS['local']['cluster_soft'].lower() == 'pbs':
# Write job submission scripts
sub_job = submit_scripts['local']['crest']
Expand Down

0 comments on commit 13a7f02

Please sign in to comment.