Skip to content

Commit

Permalink
Update setup_relative_calculation.py
Browse files Browse the repository at this point in the history
flipping conditional statement for `remove_constraiint`
  • Loading branch information
hannahbrucemacdonald authored Aug 28, 2020
1 parent 5c57c2a commit bcf0fef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions perses/app/setup_relative_calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ def getSetupOptions(filename):
if 'small_molecule_parameters_cache' not in setup_options:
setup_options['small_molecule_parameters_cache'] = None

if 'remove_constraints' not in setup_options:
setup_options['remove_constraints'] = False
_logger.info('No constraints will be removed')
# remove_constraints can be 'all' or 'not water'
if setup_options['remove_constraints'] not in ['all', 'not water']:
elif setup_options['remove_constraints'] not in ['all', 'not water', False]:
_logger.warning("remove_constraints value of {setup_options['remove_constraints']} not understood. 'all', 'none' or 'not water' are valid options. NOT REMOVING ANY CONSTRAINTS")
setup_options['remove_constraints'] = False
elif 'remove_constraints' not in setup_options:
setup_options['remove_constraints'] = False
_logger.info('No constraints will be removed')

if 'spectators' not in setup_options:
_logger.info(f'No spectators')
Expand Down

0 comments on commit bcf0fef

Please sign in to comment.