def load_atom_types(self, filename): """ Loads all :class:`~pyxrd.atoms.models.AtomType` objects from the JSON file specified by *filename*. """ for atom_type in AtomType.load_atom_types(filename, parent=self): self.atom_types.append(atom_type)