Lines Matching refs:composition
15 from pymatgen.core.composition import Composition
27 def __init__(self, composition, charge=0.0, properties=None): argument
32 super().__init__(composition)
65 composition = Composition(f)
66 return cls(composition, charge)
158 composition = Composition(input)
159 return Ion(composition, charge)
168 d = self.composition.to_reduced_dict
173 def composition(self): member in Ion
178 if self.composition != other.composition:
188 new_composition = self.composition + other.composition
196 new_composition = self.composition - other.composition
204 new_composition = self.composition * other
209 return hash((self.composition, self.charge))