Esempio n. 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)
Esempio n. 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)
Esempio n. 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))
Esempio n. 4
0
 def __init__(self, type, molid, atomid):
     self.type = type
     self.__dict__.update(label.add(self.type, molid, atomid))
Esempio n. 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))
Esempio n. 6
0
	def __init__(self, type, molid, atomid):
		self.type = type
		self.__dict__.update(label.add(self.type, molid, atomid))