Skip to content

Commit

Permalink
Merge pull request #34 from doyle-lab-ucla/master
Browse files Browse the repository at this point in the history
update dev2 to master
  • Loading branch information
WinstonGee authored Jun 26, 2024
2 parents 4c5db74 + 7135aef commit eb7658a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion autoqchem/helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,12 @@ def ssh_connect_pem(host, user, pem_path) -> fabric.Connection:
client.connect(host,username=user,key_filename=pem_path)
else:
client.connect(host,username=user)
client.get_transport().auth_password(username=user,password=getpass.getpass(f"{user}@{host}'s password:"))
except paramiko.ssh_exception.SSHException:
pass

if not pem_path:
client.get_transport().auth_password(username=user,password=getpass.getpass(f"{user}@{host}'s password:"))

c = fabric.Connection(host)
c.client = client
c.transport = client.get_transport()
Expand Down
6 changes: 3 additions & 3 deletions autoqchem/sge_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,16 +604,16 @@ def _create_sge_file_from_gaussian_file(self, base_name, directory, wall_time) -
output += f"# set job environment and GAUSS_SCRDIR variable\n" \
f". /u/local/Modules/default/init/modules.sh\n" \
f"module load gaussian/g16_sse4\n" \
f"# another compiled version: gaussian/16_avx\n" \
f"export GAUSS_SCRDIR=$TMPDIR\n\n"

output += f"# echo current module used to joblog\n" \
f"module li\n" \
f'echo "GAUSS_SCRDIR=$GAUSS_SCRDIR"\n' \
f"# another compiled version: $g16root/16_avx/g16\n" \
f"echo '/usr/bin/time -v $g16root/16_sse4/g16 < {base_name}.gjf > {base_name}.log'\n\n" \
f"echo '/usr/bin/time -v $g16root/g16 < {base_name}.gjf > {base_name}.log'\n\n" \
f"cd {self.remote_dir}\n" \
f"# run command\n" \
f"/usr/bin/time -v $g16root/16_sse4/g16 < {base_name}.gjf > {base_name}.log\n\n"
f"/usr/bin/time -v $g16root/g16 < {base_name}.gjf > {base_name}.log\n\n"

output += f"# echo job info to joblog\n" \
f"echo 'Job $JOB_ID ended on: '' `hostname -s`\n" \
Expand Down

0 comments on commit eb7658a

Please sign in to comment.