Example #1
0
 def _set_references( self, references):
   if len( references) != 4:
     raise oasa_exceptions.oasa_stereochemistry_error( "wrong number of references in stereochemistry specification '%s'" % len( references))
   super( self.__class__, self)._set_references( references)
Example #2
0
 def _set_references(self, references):
     if len(references) != 4:
         raise oasa_exceptions.oasa_stereochemistry_error(
             "wrong number of references in stereochemistry specification '%s'"
             % len(references))
     super(self.__class__, self)._set_references(references)
Example #3
0
 def _set_value( self, value):
   if value not in (self.CLOCKWISE, self.ANTICLOCKWISE, self.UNDEFINED):
     raise oasa_exceptions.oasa_stereochemistry_error( "invalid stereochemistry identifier '%s'" % value)
   super( self.__class__, self)._set_value( value)
Example #4
0
 def _set_value(self, value):
     if value not in (self.SAME_SIDE, self.OPPOSITE_SIDE, self.UNDEFINED):
         raise oasa_exceptions.oasa_stereochemistry_error(
             "invalid stereochemistry identifier '%s'" % value)
     super(self.__class__, self)._set_value(value)