def addAllostericOmniStatement(self, alloOmniLine): alloOmniLine = self.PreProcessStatement(alloOmniLine) self.allostericOmnis.append(alloOmniLine) self.allostericOmnisSection = AllostericOmnisSection( self.allostericOmnis) return
def addAllostericOmnisBlock(self, aoBlock, overwrite=False): if self.allostericOmnis and not overwrite: raise MzrExceptions.MoleculizerException( "Error: Cannot add an allosteric omnis block twice.") if not self.BlockPassesSanityCheck(aoBlock): raise InsaneBlockOnTheLooseException(aoBlock, "allosteric omnis block") self.allostericOmnis = aoBlock[:] self.allostericOmnisSection = AllostericOmnisSection( self.allostericOmnis)