Пример #1
0
 def create(cls, *atoms):
     """
     Creates the label if it doesn't exist.
     """
     atomids = tuple(a.index for a in atoms)
     molids = tuple(a.molecule.molid for a in atoms)
     _label.add(cls._category, molids, atomids)
     return cls(*atoms)
Пример #2
0
 def create(cls, *atoms):
     """
     Creates the label if it doesn't exist.
     """
     atomids = tuple(a.index for a in atoms)
     molids = tuple(a.molecule.molid for a in atoms)
     _label.add(cls._category, molids, atomids)
     return cls(*atoms)
Пример #3
0
    def update(self):
        """ Updates the values of the 'on' and 'value' attributes for this label.
		"""
        self.__dict__.update(label.add(self.type, self.molid, self.atomid))
Пример #4
0
 def __init__(self, type, molid, atomid):
     self.type = type
     self.__dict__.update(label.add(self.type, molid, atomid))
Пример #5
0
	def update(self):
		""" Updates the values of the 'on' and 'value' attributes for this label.
		"""
		self.__dict__.update(label.add(self.type, self.molid, self.atomid))
Пример #6
0
	def __init__(self, type, molid, atomid):
		self.type = type
		self.__dict__.update(label.add(self.type, molid, atomid))