Skip to content

Commit

Permalink
Merge pull request #9 from FlorianvdEnt/master
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
jesperswillem authored Nov 22, 2022
2 parents fda6c6c + afb8f20 commit 164f105
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion IO.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import numpy as np

import functions as f
import src.settings as s
import settings as s

## Some useful objects TO DO add GLH etc.
charged_res = {'HIS': {'HD1' : 'HID',
Expand Down
2 changes: 1 addition & 1 deletion protprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def write_qprep(self):
outfile.write(outline)

def run_qprep(self):
qprep = s.Q_DIR[self.preplocation] + 'qprep'
qprep = s.LOCAL['QPREP']
options = ' < qprep.inp > qprep.out'
# Somehow Q is very annoying with this < > input style so had to implement
# another function that just calls os.system instead of using the preferred
Expand Down
10 changes: 6 additions & 4 deletions scripts/generate_opls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
import shlex
import os

curdir = os.getcwd()
os.chdir(curdir)
opls2Q = '../opls2Q.py'
generate = 'python3 ' + opls2Q
cur_dir = os.getcwd()
script_dir = os.path.dirname(os.path.dirname(__file__))

os.chdir(cur_dir)
opls2Q = f'{script_dir}/opls2Q.py'

generate = 'python3 ' + opls2Q

for pdb in glob.glob('*.pdb'):
name = pdb.split('.')[0]
Expand Down
2 changes: 1 addition & 1 deletion tutorials/1.QligFEP_CDK2/3.setupFEP/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
systems = ['protein', 'water']
cnt = 0
# Change this to where you installed QligFEP
setupFEP = 'python $QligFEPDIR/QligFEP.py'
setupFEP = 'python $qligfep/QligFEP.py'
cysbond = ' '

for system in systems:
Expand Down

0 comments on commit 164f105

Please sign in to comment.