Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Valdes-Tresanco-MS committed Feb 26, 2022
2 parents 052416a + 657141e commit b7bc9d3
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions GMXMMPBSA/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,9 @@ def check_for_bad_input(self, INPUT=None):
for tol in INPUT['tolerance']:
if tol <= 0:
GMXMMPBSA_ERROR('TOLERANCE must be positive!', InputError)
if INPUT['tolerance'][-1] > 0.00001:
logging.warning(f"Default TOLERANCE value is 0.00001! However {INPUT['tolerance'][-1]} is been used. "
f"Check documentation for more details...")
if INPUT['buffer'] < 0 and INPUT['ng'] == '':
GMXMMPBSA_ERROR('You must specify NG if BUFFER < 0!', InputError)
if INPUT['polardecomp'] not in [0, 1]:
Expand Down Expand Up @@ -910,7 +913,7 @@ def check_for_bad_input(self, INPUT=None):

# User warning when intdiel > 10
if self.INPUT['intdiel'] > 10:
logging.warning('Intdiel is great than 10...')
logging.warning('Intdiel is greater than 10...')
# check mutant definition
if self.INPUT['mutant'].upper() not in ['ALA', 'A', 'GLY', 'G']:
GMXMMPBSA_ERROR('The mutant most be ALA (or A) or GLY (or G)', InputError)
Expand All @@ -922,10 +925,17 @@ def check_for_bad_input(self, INPUT=None):
logging.warning(f"The startframe variable must be >= 1. Changing startframe from"
f" {self.INPUT['startframe']} to 1")
self.INPUT['startframe'] = 1
if self.INPUT['nmstartframe'] < 1:
logging.warning(f"The nmstartframe variable must be >= 1. Changing nmstartframe from"
f" {self.INPUT['nmstartframe']} to 1")
self.INPUT['nmstartframe'] = 1
if INPUT['nmoderun']:
if self.INPUT['nmstartframe'] < 1:
logging.warning(f"The nmstartframe variable must be >= 1. Changing nmstartframe from"
f" {self.INPUT['nmstartframe']} to 1")
self.INPUT['nmstartframe'] = 1
if INPUT['drms'] > 0.001:
logging.warning(f"Default DRMS value is 0.001! However {INPUT['drms']} is been used. Check "
f'documentation for more details...')
if INPUT['maxcyc'] < 10000:
logging.warning(f"Default MAXCYC value is 10000! However {INPUT['maxcyc']} is been used. Check "
f'documentation for more details...')

# set the pbtemp = temperature
self.INPUT['pbtemp'] = self.INPUT['temperature']
Expand Down

0 comments on commit b7bc9d3

Please sign in to comment.