parameters: (self, line)
docstring: Process the [ defaults ] line.
docstring_summary: Process the [ defaults ] line.
docstring_tokens: Process the [ defaults ] line .
function: def _processDefaults(self, line):
          """Process the [ defaults ] line."""
          fields = line.split()
          if len(fields) < 5:
              # fudgeLJ and fudgeQQ not specified, assumed 1.0 by default
              if len(fields) == 3:
                  fields.append(1.0)
                  fields.append(1.0)
              else:
                  raise ValueError('Too few fields in [ defaults ] line: '+line)
          if fields[0] != '1':
              raise ValueError('Unsupported nonbonded type: '+fields[0])
          if not fields[1] in ('1', '2', '3'):
              raise ValueError('Unsupported combination rule: '+fields[1])
          if fields[2].lower() == 'no':
              self._genpairs = False
          self._defaults = fields
function_tokens: def _processDefaults ( self , line ) : fields = line . split ( ) if len ( fields ) < 5 : # fudgeLJ and fudgeQQ not specified, assumed 1.0 by default if len ( fields ) == 3 : fields . append ( 1.0 ) fields . append ( 1.0 ) else : raise ValueError ( 'Too few fields in [ defaults ] line: ' + line ) if fields [ 0 ] != '1' : raise ValueError ( 'Unsupported nonbonded type: ' + fields [ 0 ] ) if not fields [ 1 ] in ( '1' , '2' , '3' ) : raise ValueError ( 'Unsupported combination rule: ' + fields [ 1 ] ) if fields [ 2 ] . lower ( ) == 'no' : self . _genpairs = False self . _defaults = fields