pymatgen.io namespace — pymatgen 2026.3.9 documentation

# pymatgen.io namespace

## Subpackages

- pymatgen.io.abinit package
  - Submodules
  - pymatgen.io.abinit.abiobjects module
    - `AbivarAble`
      - `AbivarAble.to_abivars()`
    - `Constraints`
      - `Constraints.to_abivars()`
    - `Electrons`
      - `Electrons.as_dict()`
      - `Electrons.from_dict()`
      - `Electrons.nspden`
      - `Electrons.nspinor`
      - `Electrons.nsppol`
      - `Electrons.to_abivars()`
    - `ElectronsAlgorithm`
      - `ElectronsAlgorithm.as_dict()`
      - `ElectronsAlgorithm.from_dict()`
      - `ElectronsAlgorithm.to_abivars()`
    - `ExcHamiltonian`
      - `ExcHamiltonian.inclvkb`
      - `ExcHamiltonian.to_abivars()`
      - `ExcHamiltonian.use_cg`
      - `ExcHamiltonian.use_direct_diago`
      - `ExcHamiltonian.use_haydock`
    - `HilbertTransform`
      - `HilbertTransform.to_abivars()`
    - `KSampling`
      - `KSampling.as_dict()`
      - `KSampling.automatic_density()`
      - `KSampling.explicit_path()`
      - `KSampling.from_dict()`
      - `KSampling.gamma_centered()`
      - `KSampling.gamma_only()`
      - `KSampling.is_homogeneous`
      - `KSampling.monkhorst()`
      - `KSampling.monkhorst_automatic()`
      - `KSampling.path_from_structure()`
      - `KSampling.to_abivars()`
    - `KSamplingModes`
      - `KSamplingModes.automatic`
      - `KSamplingModes.monkhorst`
      - `KSamplingModes.path`
    - `ModelDielectricFunction`
      - `ModelDielectricFunction.to_abivars()`
    - `PPModel`
      - `PPModel.as_dict()`
      - `PPModel.as_ppmodel()`
      - `PPModel.from_dict()`
      - `PPModel.get_noppmodel()`
      - `PPModel.to_abivars()`
    - `PPModelModes`
      - `PPModelModes.farid`
      - `PPModelModes.godby`
      - `PPModelModes.hybersten`
      - `PPModelModes.linden`
      - `PPModelModes.noppmodel`
    - `RelaxationMethod`
      - `RelaxationMethod.IONMOV_DEFAULT`
      - `RelaxationMethod.OPTCELL_DEFAULT`
      - `RelaxationMethod.as_dict()`
      - `RelaxationMethod.atoms_and_cell()`
      - `RelaxationMethod.atoms_only()`
      - `RelaxationMethod.from_dict()`
      - `RelaxationMethod.move_atoms`
      - `RelaxationMethod.move_cell`
      - `RelaxationMethod.to_abivars()`
    - `Screening`
      - `Screening.to_abivars()`
      - `Screening.use_hilbert`
    - `SelfEnergy`
      - `SelfEnergy.gwcalctyp`
      - `SelfEnergy.symsigma`
      - `SelfEnergy.to_abivars()`
      - `SelfEnergy.use_ppmodel`
    - `Smearing`
      - `Smearing.as_dict()`
      - `Smearing.as_smearing()`
      - `Smearing.from_dict()`
      - `Smearing.mode`
      - `Smearing.nosmearing()`
      - `Smearing.to_abivars()`
    - `SpinMode`
      - `SpinMode.as_dict()`
      - `SpinMode.as_spinmode()`
      - `SpinMode.from_dict()`
      - `SpinMode.to_abivars()`
    - `SpinModeTuple`
      - `SpinModeTuple.mode`
      - `SpinModeTuple.nspden`
      - `SpinModeTuple.nspinor`
      - `SpinModeTuple.nsppol`
    - `contract()`
    - `lattice_from_abivars()`
    - `species_by_znucl()`
    - `structure_from_abivars()`
    - `structure_to_abivars()`
  - pymatgen.io.abinit.abitimer module
    - `AbinitTimer`
      - `AbinitTimer.cpuwall_histogram()`
      - `AbinitTimer.get_dataframe()`
      - `AbinitTimer.get_section()`
      - `AbinitTimer.get_values()`
      - `AbinitTimer.names_and_values()`
      - `AbinitTimer.ncpus`
      - `AbinitTimer.order_sections()`
      - `AbinitTimer.pie()`
      - `AbinitTimer.scatter_hist()`
      - `AbinitTimer.sum_sections()`
      - `AbinitTimer.to_csv()`
      - `AbinitTimer.to_table()`
      - `AbinitTimer.totable()`
    - `AbinitTimerParseError`
    - `AbinitTimerParser`
      - `AbinitTimerParser.BEGIN_TAG`
      - `AbinitTimerParser.END_TAG`
      - `AbinitTimerParser.Error`
      - `AbinitTimerParser.filenames`
      - `AbinitTimerParser.get_sections()`
      - `AbinitTimerParser.parse()`
      - `AbinitTimerParser.pefficiency()`
      - `AbinitTimerParser.plot_all()`
      - `AbinitTimerParser.plot_efficiency()`
      - `AbinitTimerParser.plot_pie()`
      - `AbinitTimerParser.plot_stacked_hist()`
      - `AbinitTimerParser.section_names()`
      - `AbinitTimerParser.summarize()`
      - `AbinitTimerParser.timers()`
      - `AbinitTimerParser.walk()`
    - `AbinitTimerSection`
      - `AbinitTimerSection.FIELDS`
      - `AbinitTimerSection.NUMERIC_FIELDS`
      - `AbinitTimerSection.STR_FIELDS`
      - `AbinitTimerSection.as_dict()`
      - `AbinitTimerSection.fake()`
      - `AbinitTimerSection.to_csvline()`
      - `AbinitTimerSection.to_dict()`
      - `AbinitTimerSection.to_tuple()`
    - `ParallelEfficiency`
      - `ParallelEfficiency.bad_sections()`
      - `ParallelEfficiency.good_sections()`
      - `ParallelEfficiency.totable()`
    - `alternate()`
  - pymatgen.io.abinit.inputs module
    - `AbstractInput`
      - `AbstractInput.deepcopy()`
      - `AbstractInput.pop_vars()`
      - `AbstractInput.remove_vars()`
      - `AbstractInput.set_vars()`
      - `AbstractInput.set_vars_ifnotin()`
      - `AbstractInput.to_str()`
      - `AbstractInput.vars`
      - `AbstractInput.write()`
    - `BasicAbinitInput`
      - `BasicAbinitInput.Error`
      - `BasicAbinitInput.add_abiobjects()`
      - `BasicAbinitInput.as_dict()`
      - `BasicAbinitInput.comment`
      - `BasicAbinitInput.from_dict()`
      - `BasicAbinitInput.isnc`
      - `BasicAbinitInput.ispaw`
      - `BasicAbinitInput.new_with_vars()`
      - `BasicAbinitInput.pop_irdvars()`
      - `BasicAbinitInput.pop_tolerances()`
      - `BasicAbinitInput.pseudos`
      - `BasicAbinitInput.set_comment()`
      - `BasicAbinitInput.set_gamma_sampling()`
      - `BasicAbinitInput.set_kmesh()`
      - `BasicAbinitInput.set_kpath()`
      - `BasicAbinitInput.set_spin_mode()`
      - `BasicAbinitInput.set_structure()`
      - `BasicAbinitInput.structure`
      - `BasicAbinitInput.to_str()`
      - `BasicAbinitInput.vars`
    - `BasicAbinitInputError`
    - `BasicMultiDataset`
      - `BasicMultiDataset.Error`
      - `BasicMultiDataset.addnew_from()`
      - `BasicMultiDataset.append()`
      - `BasicMultiDataset.deepcopy()`
      - `BasicMultiDataset.extend()`
      - `BasicMultiDataset.from_inputs()`
      - `BasicMultiDataset.has_same_structures`
      - `BasicMultiDataset.isnc`
      - `BasicMultiDataset.ispaw`
      - `BasicMultiDataset.ndtset`
      - `BasicMultiDataset.pseudos`
      - `BasicMultiDataset.replicate_input()`
      - `BasicMultiDataset.split_datasets()`
      - `BasicMultiDataset.to_str()`
      - `BasicMultiDataset.write()`
    - `ShiftMode`
      - `ShiftMode.GammaCentered`
      - `ShiftMode.MonkhorstPack`
      - `ShiftMode.OneSymmetric`
      - `ShiftMode.Symmetric`
      - `ShiftMode.from_object()`
    - `as_structure()`
    - `calc_shiftk()`
    - `ebands_input()`
    - `gs_input()`
    - `ion_ioncell_relax_input()`
    - `num_valence_electrons()`
  - pymatgen.io.abinit.netcdf module
    - `AbinitHeader`
      - `AbinitHeader.to_str()`
      - `AbinitHeader.to_string()`
    - `EtsfReader`
      - `EtsfReader.chemical_symbols()`
      - `EtsfReader.read_abinit_hdr()`
      - `EtsfReader.read_abinit_xcfunc()`
      - `EtsfReader.read_structure()`
      - `EtsfReader.type_idx_from_symbol()`
    - `NO_DEFAULT`
    - `NetcdfReader`
      - `NetcdfReader.Error`
      - `NetcdfReader.close()`
      - `NetcdfReader.print_tree()`
      - `NetcdfReader.read_dimvalue()`
      - `NetcdfReader.read_keys()`
      - `NetcdfReader.read_value()`
      - `NetcdfReader.read_variable()`
      - `NetcdfReader.read_varnames()`
      - `NetcdfReader.walk_tree()`
    - `NetcdfReaderError`
    - `as_etsfreader()`
    - `as_ncreader()`
    - `structure_from_ncdata()`
  - pymatgen.io.abinit.pseudos module
    - `AbinitHeader`
    - `AbinitPseudo`
      - `AbinitPseudo.Z`
      - `AbinitPseudo.Z_val`
      - `AbinitPseudo.l_local`
      - `AbinitPseudo.l_max`
      - `AbinitPseudo.summary`
      - `AbinitPseudo.supports_soc`
    - `Hint`
      - `Hint.as_dict()`
      - `Hint.from_dict()`
    - `NcAbinitHeader`
      - `NcAbinitHeader.fhi_header()`
      - `NcAbinitHeader.gth_header()`
      - `NcAbinitHeader.hgh_header()`
      - `NcAbinitHeader.oncvpsp_header()`
      - `NcAbinitHeader.tm_header()`
    - `NcAbinitPseudo`
      - `NcAbinitPseudo.Z`
      - `NcAbinitPseudo.Z_val`
      - `NcAbinitPseudo.l_local`
      - `NcAbinitPseudo.l_max`
      - `NcAbinitPseudo.nlcc_radius`
      - `NcAbinitPseudo.summary`
    - `NcPseudo`
      - `NcPseudo.has_nlcc`
      - `NcPseudo.nlcc_radius`
      - `NcPseudo.rcore`
    - `PawAbinitHeader`
      - `PawAbinitHeader.paw_header()`
    - `PawAbinitPseudo`
      - `PawAbinitPseudo.paw_radius`
      - `PawAbinitPseudo.supports_soc`
    - `PawPseudo`
      - `PawPseudo.paw_radius`
      - `PawPseudo.rcore`
    - `PawXmlSetup`
      - `PawXmlSetup.Z`
      - `PawXmlSetup.Z_val`
      - `PawXmlSetup.ae_core_density()`
      - `PawXmlSetup.ae_partial_waves()`
      - `PawXmlSetup.l_local`
      - `PawXmlSetup.l_max`
      - `PawXmlSetup.paw_radius`
      - `PawXmlSetup.plot_densities()`
      - `PawXmlSetup.plot_projectors()`
      - `PawXmlSetup.plot_waves()`
      - `PawXmlSetup.projector_functions()`
      - `PawXmlSetup.pseudo_core_density()`
      - `PawXmlSetup.pseudo_partial_waves`
      - `PawXmlSetup.root()`
      - `PawXmlSetup.summary`
      - `PawXmlSetup.supports_soc`
      - `PawXmlSetup.yield_figs()`
    - `Pseudo`
      - `Pseudo.Z`
      - `Pseudo.Z_val`
      - `Pseudo.as_dict()`
      - `Pseudo.as_pseudo()`
      - `Pseudo.as_tmpfile()`
      - `Pseudo.basename`
      - `Pseudo.compute_md5()`
      - `Pseudo.djrepo_path`
      - `Pseudo.element`
      - `Pseudo.filepath`
      - `Pseudo.from_dict()`
      - `Pseudo.from_file()`
      - `Pseudo.has_dojo_report`
      - `Pseudo.has_hints`
      - `Pseudo.hint_for_accuracy()`
      - `Pseudo.isnc`
      - `Pseudo.ispaw`
      - `Pseudo.l_local`
      - `Pseudo.l_max`
      - `Pseudo.md5()`
      - `Pseudo.open_pspsfile()`
      - `Pseudo.summary`
      - `Pseudo.supports_soc`
      - `Pseudo.symbol`
      - `Pseudo.to_str()`
      - `Pseudo.type`
    - `PseudoParseError`
    - `PseudoParser`
      - `PseudoParser.Error`
      - `PseudoParser.parse()`
      - `PseudoParser.ppdesc`
        - `PseudoParser.ppdesc.format`
        - `PseudoParser.ppdesc.name`
        - `PseudoParser.ppdesc.psp_type`
        - `PseudoParser.ppdesc.pspcod`
      - `PseudoParser.read_ppdesc()`
      - `PseudoParser.scan_directory()`
    - `PseudoTable`
      - `PseudoTable.all_combinations_for_elements()`
      - `PseudoTable.allnc`
      - `PseudoTable.allpaw`
      - `PseudoTable.as_dict()`
      - `PseudoTable.as_table()`
      - `PseudoTable.from_dict()`
      - `PseudoTable.from_dir()`
      - `PseudoTable.get_pseudos_for_structure()`
      - `PseudoTable.is_complete()`
      - `PseudoTable.print_table()`
      - `PseudoTable.pseudo_with_symbol()`
      - `PseudoTable.pseudos_with_symbols()`
      - `PseudoTable.select()`
      - `PseudoTable.select_family()`
      - `PseudoTable.select_rows()`
      - `PseudoTable.select_symbols()`
      - `PseudoTable.sort_by_z()`
      - `PseudoTable.sorted()`
      - `PseudoTable.to_table()`
      - `PseudoTable.with_dojo_report()`
      - `PseudoTable.zlist`
    - `RadialFunction`
      - `RadialFunction.mesh`
      - `RadialFunction.values`
    - `l2str()`
    - `str2l()`
  - pymatgen.io.abinit.variable module
    - `InputVariable`
      - `InputVariable.basename`
      - `InputVariable.dataset`
      - `InputVariable.format_list()`
      - `InputVariable.format_list2d()`
      - `InputVariable.format_scalar()`
      - `InputVariable.get_value()`
      - `InputVariable.name`
      - `InputVariable.units`
    - `flatten()`
- pymatgen.io.cp2k package
  - Submodules
  - pymatgen.io.cp2k.inputs module
    - `AtomicMetadata`
      - `AtomicMetadata.info`
      - `AtomicMetadata.element`
      - `AtomicMetadata.potential`
      - `AtomicMetadata.name`
      - `AtomicMetadata.alias_names`
      - `AtomicMetadata.filename`
      - `AtomicMetadata.version`
      - `AtomicMetadata.alias_names`
      - `AtomicMetadata.element`
      - `AtomicMetadata.filename`
      - `AtomicMetadata.get_hash()`
      - `AtomicMetadata.get_str()`
      - `AtomicMetadata.info`
      - `AtomicMetadata.name`
      - `AtomicMetadata.potential`
      - `AtomicMetadata.softmatch()`
      - `AtomicMetadata.version`
    - `BandStructure`
      - `BandStructure.from_kpoints()`
    - `Band_Structure`
    - `BasisFile`
      - `BasisFile.from_str()`
    - `BasisInfo`
      - `BasisInfo.electrons`
      - `BasisInfo.core`
      - `BasisInfo.valence`
      - `BasisInfo.polarization`
      - `BasisInfo.diffuse`
      - `BasisInfo.cc`
      - `BasisInfo.pc`
      - `BasisInfo.sr`
      - `BasisInfo.molopt`
      - `BasisInfo.admm`
      - `BasisInfo.lri`
      - `BasisInfo.contracted`
      - `BasisInfo.xc`
      - `BasisInfo.admm`
      - `BasisInfo.cc`
      - `BasisInfo.contracted`
      - `BasisInfo.core`
      - `BasisInfo.diffuse`
      - `BasisInfo.electrons`
      - `BasisInfo.from_str()`
      - `BasisInfo.lri`
      - `BasisInfo.molopt`
      - `BasisInfo.pc`
      - `BasisInfo.polarization`
      - `BasisInfo.softmatch()`
      - `BasisInfo.sr`
      - `BasisInfo.valence`
      - `BasisInfo.xc`
    - `BrokenSymmetry`
      - `BrokenSymmetry.from_el()`
    - `Cell`
    - `Coord`
    - `Cp2kInput`
      - `Cp2kInput.from_file()`
      - `Cp2kInput.from_lines()`
      - `Cp2kInput.from_str()`
      - `Cp2kInput.get_str()`
      - `Cp2kInput.write_file()`
    - `DOS`
    - `DataFile`
      - `DataFile.from_file()`
      - `DataFile.from_str()`
      - `DataFile.get_str()`
      - `DataFile.objects`
      - `DataFile.write_file()`
    - `Davidson`
    - `Dft`
    - `DftPlusU`
    - `Diagonalization`
    - `EDensityCube`
    - `E_Density_Cube`
    - `ForceEval`
    - `GaussianTypeOrbitalBasisSet`
      - `GaussianTypeOrbitalBasisSet.info`
      - `GaussianTypeOrbitalBasisSet.nset`
      - `GaussianTypeOrbitalBasisSet.n`
      - `GaussianTypeOrbitalBasisSet.lmax`
      - `GaussianTypeOrbitalBasisSet.lmin`
      - `GaussianTypeOrbitalBasisSet.nshell`
      - `GaussianTypeOrbitalBasisSet.exponents`
      - `GaussianTypeOrbitalBasisSet.coefficients`
      - `GaussianTypeOrbitalBasisSet.coefficients`
      - `GaussianTypeOrbitalBasisSet.exponents`
      - `GaussianTypeOrbitalBasisSet.from_str()`
      - `GaussianTypeOrbitalBasisSet.get_keyword()`
      - `GaussianTypeOrbitalBasisSet.get_str()`
      - `GaussianTypeOrbitalBasisSet.info`
      - `GaussianTypeOrbitalBasisSet.lmax`
      - `GaussianTypeOrbitalBasisSet.lmin`
      - `GaussianTypeOrbitalBasisSet.n`
      - `GaussianTypeOrbitalBasisSet.nexp`
      - `GaussianTypeOrbitalBasisSet.nset`
      - `GaussianTypeOrbitalBasisSet.nshell`
    - `Global`
    - `GthPotential`
      - `GthPotential.info`
      - `GthPotential.n_elecs`
      - `GthPotential.r_loc`
      - `GthPotential.nexp_ppl`
      - `GthPotential.c_exp_ppl`
      - `GthPotential.radii`
      - `GthPotential.nprj`
      - `GthPotential.nprj_ppnl`
      - `GthPotential.hprj_ppnl`
      - `GthPotential.c_exp_ppl`
      - `GthPotential.from_section()`
      - `GthPotential.from_str()`
      - `GthPotential.get_keyword()`
      - `GthPotential.get_section()`
      - `GthPotential.get_str()`
      - `GthPotential.hprj_ppnl`
      - `GthPotential.n_elecs`
      - `GthPotential.nexp_ppl`
      - `GthPotential.nprj`
      - `GthPotential.nprj_ppnl`
      - `GthPotential.r_loc`
      - `GthPotential.radii`
    - `Keyword`
      - `Keyword.as_dict()`
      - `Keyword.from_dict()`
      - `Keyword.from_str()`
      - `Keyword.get_str()`
      - `Keyword.verbosity()`
    - `KeywordList`
      - `KeywordList.append()`
      - `KeywordList.extend()`
      - `KeywordList.get_str()`
      - `KeywordList.verbosity()`
    - `Kind`
    - `KpointSet`
    - `Kpoint_Set`
    - `Kpoints`
      - `Kpoints.from_kpoints()`
    - `LDOS`
    - `MOCubes`
    - `MO_Cubes`
    - `Mgrid`
    - `OrbitalTransformation`
    - `PBE`
    - `PDOS`
    - `PotentialFile`
      - `PotentialFile.from_str()`
    - `PotentialInfo`
      - `PotentialInfo.electrons`
      - `PotentialInfo.potential_type`
      - `PotentialInfo.nlcc`
      - `PotentialInfo.xc`
      - `PotentialInfo.electrons`
      - `PotentialInfo.from_str()`
      - `PotentialInfo.nlcc`
      - `PotentialInfo.potential_type`
      - `PotentialInfo.softmatch()`
      - `PotentialInfo.xc`
    - `QS`
    - `Scf`
    - `Section`
      - `Section.add()`
      - `Section.by_path()`
      - `Section.check()`
      - `Section.get()`
      - `Section.get_keyword()`
      - `Section.get_section()`
      - `Section.get_str()`
      - `Section.inc()`
      - `Section.insert()`
      - `Section.safeset()`
      - `Section.set()`
      - `Section.setitem()`
      - `Section.silence()`
      - `Section.unset()`
      - `Section.update()`
      - `Section.verbosity()`
    - `SectionList`
      - `SectionList.append()`
      - `SectionList.extend()`
      - `SectionList.get()`
      - `SectionList.get_str()`
      - `SectionList.verbosity()`
    - `Smear`
    - `Subsys`
    - `VHartreeCube`
    - `V_Hartree_Cube`
    - `XCFunctional`
    - `Xc_Functional`
  - pymatgen.io.cp2k.outputs module
    - `Cp2kOutput`
      - `Cp2kOutput.as_dict()`
      - `Cp2kOutput.band_structure`
      - `Cp2kOutput.calculation_type`
      - `Cp2kOutput.charge`
      - `Cp2kOutput.complete_dos`
      - `Cp2kOutput.completed`
      - `Cp2kOutput.convergence()`
      - `Cp2kOutput.cp2k_version`
      - `Cp2kOutput.is_hubbard`
      - `Cp2kOutput.is_metal`
      - `Cp2kOutput.is_molecule`
      - `Cp2kOutput.multiplicity`
      - `Cp2kOutput.num_warnings`
      - `Cp2kOutput.parse_atomic_kind_info()`
      - `Cp2kOutput.parse_bandstructure()`
      - `Cp2kOutput.parse_cell_params()`
      - `Cp2kOutput.parse_chi_tensor()`
      - `Cp2kOutput.parse_cp2k_params()`
      - `Cp2kOutput.parse_dft_params()`
      - `Cp2kOutput.parse_dos()`
      - `Cp2kOutput.parse_energies()`
      - `Cp2kOutput.parse_files()`
      - `Cp2kOutput.parse_forces()`
      - `Cp2kOutput.parse_global_params()`
      - `Cp2kOutput.parse_gtensor()`
      - `Cp2kOutput.parse_hirshfeld()`
      - `Cp2kOutput.parse_homo_lumo()`
      - `Cp2kOutput.parse_hyperfine()`
      - `Cp2kOutput.parse_initial_structure()`
      - `Cp2kOutput.parse_input()`
      - `Cp2kOutput.parse_ionic_steps()`
      - `Cp2kOutput.parse_mo_eigenvalues()`
      - `Cp2kOutput.parse_mulliken()`
      - `Cp2kOutput.parse_nmr_shift()`
      - `Cp2kOutput.parse_opt_steps()`
      - `Cp2kOutput.parse_overlap_condition()`
      - `Cp2kOutput.parse_plus_u_params()`
      - `Cp2kOutput.parse_qs_params()`
      - `Cp2kOutput.parse_raman()`
      - `Cp2kOutput.parse_scf_opt()`
      - `Cp2kOutput.parse_scf_params()`
      - `Cp2kOutput.parse_stresses()`
      - `Cp2kOutput.parse_structures()`
      - `Cp2kOutput.parse_tddfpt()`
      - `Cp2kOutput.parse_timing()`
      - `Cp2kOutput.parse_total_numbers()`
      - `Cp2kOutput.project_name`
      - `Cp2kOutput.ran_successfully()`
      - `Cp2kOutput.read_pattern()`
      - `Cp2kOutput.read_table_pattern()`
      - `Cp2kOutput.run_type`
      - `Cp2kOutput.spin_polarized`
    - `parse_dos()`
    - `parse_energy_file()`
    - `parse_pdos()`
  - pymatgen.io.cp2k.sets module
    - `CellOptSet`
    - `Cp2kValidationError`
      - `Cp2kValidationError.CP2K_VERSION`
    - `DftSet`
      - `DftSet.activate_epr()`
      - `DftSet.activate_fast_minimization()`
      - `DftSet.activate_hybrid()`
      - `DftSet.activate_hyperfine()`
      - `DftSet.activate_localize()`
      - `DftSet.activate_motion()`
      - `DftSet.activate_nmr()`
      - `DftSet.activate_nonperiodic()`
      - `DftSet.activate_polar()`
      - `DftSet.activate_robust_minimization()`
      - `DftSet.activate_spinspin()`
      - `DftSet.activate_tddfpt()`
      - `DftSet.activate_vdw_potential()`
      - `DftSet.activate_very_strict_minimization()`
      - `DftSet.create_subsys()`
      - `DftSet.get_basis_and_potential()`
      - `DftSet.get_cutoff_from_basis()`
      - `DftSet.get_xc_functionals()`
      - `DftSet.modify_dft_print_iters()`
      - `DftSet.print_bandstructure()`
      - `DftSet.print_dos()`
      - `DftSet.print_e_density()`
      - `DftSet.print_forces()`
      - `DftSet.print_hirshfeld()`
      - `DftSet.print_ldos()`
      - `DftSet.print_mo()`
      - `DftSet.print_mo_cubes()`
      - `DftSet.print_mulliken()`
      - `DftSet.print_pdos()`
      - `DftSet.print_v_hartree()`
      - `DftSet.set_charge()`
      - `DftSet.validate()`
      - `DftSet.write_basis_set_file()`
      - `DftSet.write_potential_file()`
    - `HybridCellOptSet`
    - `HybridRelaxSet`
    - `HybridStaticSet`
    - `RelaxSet`
    - `StaticSet`
  - pymatgen.io.cp2k.utils module
    - `chunk()`
    - `get_truncated_coulomb_cutoff()`
    - `get_unique_site_indices()`
    - `natural_keys()`
    - `postprocessor()`
    - `preprocessor()`
- pymatgen.io.exciting package
  - Submodules
  - pymatgen.io.exciting.inputs module
    - `ExcitingInput`
      - `ExcitingInput.structure`
      - `ExcitingInput.title`
      - `ExcitingInput.lockxyz`
      - `ExcitingInput.bohr2ang`
      - `ExcitingInput.from_file()`
      - `ExcitingInput.from_str()`
      - `ExcitingInput.lockxyz`
      - `ExcitingInput.write_etree()`
      - `ExcitingInput.write_file()`
      - `ExcitingInput.write_string()`
- pymatgen.io.feff package
  - Submodules
  - pymatgen.io.feff.inputs module
    - `Atoms`
      - `Atoms.atoms_string_from_file()`
      - `Atoms.cluster`
      - `Atoms.cluster_from_file()`
      - `Atoms.get_lines()`
      - `Atoms.write_file()`
    - `FeffParseError`
    - `Header`
      - `Header.formula`
      - `Header.from_cif_file()`
      - `Header.from_file()`
      - `Header.from_str()`
      - `Header.header_string_from_file()`
      - `Header.structure_symmetry`
      - `Header.write_file()`
    - `Paths`
      - `Paths.write_file()`
    - `Potential`
      - `Potential.pot_dict_from_str()`
      - `Potential.pot_string_from_file()`
      - `Potential.write_file()`
    - `Tags`
      - `Tags.as_dict()`
      - `Tags.diff()`
      - `Tags.from_dict()`
      - `Tags.from_file()`
      - `Tags.get_str()`
      - `Tags.proc_val()`
      - `Tags.write_file()`
    - `get_absorbing_atom_symbol_index()`
    - `get_atom_map()`
  - pymatgen.io.feff.outputs module
    - `Eels`
      - `Eels.as_dict()`
      - `Eels.atomic_background`
      - `Eels.energies`
      - `Eels.fine_structure`
      - `Eels.from_file()`
      - `Eels.total_spectrum`
    - `LDos`
      - `LDos.charge_transfer_from_file()`
      - `LDos.charge_transfer_to_str()`
      - `LDos.from_file()`
    - `Xmu`
      - `Xmu.as_dict()`
      - `Xmu.calc`
      - `Xmu.chi`
      - `Xmu.e_fermi`
      - `Xmu.edge`
      - `Xmu.energies`
      - `Xmu.from_file()`
      - `Xmu.material_formula`
      - `Xmu.mu`
      - `Xmu.mu0`
      - `Xmu.relative_energies`
      - `Xmu.source`
      - `Xmu.wavenumber`
  - pymatgen.io.feff.sets module
    - `AbstractFeffInputSet`
      - `AbstractFeffInputSet.all_input()`
      - `AbstractFeffInputSet.atoms`
      - `AbstractFeffInputSet.header()`
      - `AbstractFeffInputSet.potential`
      - `AbstractFeffInputSet.tags`
      - `AbstractFeffInputSet.write_input()`
    - `FEFFDictSet`
      - `FEFFDictSet.atoms`
      - `FEFFDictSet.from_directory()`
      - `FEFFDictSet.header()`
      - `FEFFDictSet.potential`
      - `FEFFDictSet.tags`
    - `MPEELSDictSet`
    - `MPELNESSet`
      - `MPELNESSet.CONFIG`
    - `MPEXAFSSet`
      - `MPEXAFSSet.CONFIG`
    - `MPEXELFSSet`
      - `MPEXELFSSet.CONFIG`
    - `MPXANESSet`
      - `MPXANESSet.CONFIG`
- pymatgen.io.jdftx package
  - Submodules
  - pymatgen.io.jdftx.generic_tags module
    - `AbstractNumericTag`
      - `AbstractNumericTag.eq_atol`
      - `AbstractNumericTag.eq_rtol`
      - `AbstractNumericTag.get_invalid_value_error_str()`
      - `AbstractNumericTag.lb`
      - `AbstractNumericTag.lb_incl`
      - `AbstractNumericTag.ub`
      - `AbstractNumericTag.ub_incl`
      - `AbstractNumericTag.val_is_within_bounds()`
      - `AbstractNumericTag.validate_value_bounds()`
    - `AbstractTag`
      - `AbstractTag.allow_list_representation`
      - `AbstractTag.can_repeat`
      - `AbstractTag.defer_until_struc`
      - `AbstractTag.get_dict_representation()`
      - `AbstractTag.get_list_representation()`
      - `AbstractTag.get_token_len()`
      - `AbstractTag.is_equal_to()`
      - `AbstractTag.is_tag_container`
      - `AbstractTag.multiline_tag`
      - `AbstractTag.optional`
      - `AbstractTag.read()`
      - `AbstractTag.validate_value_bounds()`
      - `AbstractTag.validate_value_type()`
      - `AbstractTag.write()`
      - `AbstractTag.write_tagname`
      - `AbstractTag.write_value`
    - `BoolTag`
      - `BoolTag.get_token_len()`
      - `BoolTag.raise_value_error()`
      - `BoolTag.read()`
      - `BoolTag.validate_value_type()`
      - `BoolTag.write()`
    - `BoolTagContainer`
      - `BoolTagContainer.read()`
    - `ClassPrintFormatter`
    - `DumpTagContainer`
      - `DumpTagContainer.read()`
    - `FloatTag`
      - `FloatTag.get_token_len()`
      - `FloatTag.prec`
      - `FloatTag.read()`
      - `FloatTag.validate_value_type()`
      - `FloatTag.write()`
    - `InitMagMomTag`
      - `InitMagMomTag.get_token_len()`
      - `InitMagMomTag.read()`
      - `InitMagMomTag.validate_value_type()`
      - `InitMagMomTag.write()`
    - `IntTag`
      - `IntTag.get_token_len()`
      - `IntTag.read()`
      - `IntTag.validate_value_type()`
      - `IntTag.write()`
    - `MultiformatTag`
      - `MultiformatTag.format_options`
      - `MultiformatTag.get_format_index_for_str_value()`
      - `MultiformatTag.get_token_len()`
      - `MultiformatTag.raise_invalid_format_option_error()`
      - `MultiformatTag.read()`
      - `MultiformatTag.validate_value_type()`
      - `MultiformatTag.write()`
    - `StrTag`
      - `StrTag.get_token_len()`
      - `StrTag.options`
      - `StrTag.read()`
      - `StrTag.validate_value_type()`
      - `StrTag.write()`
    - `TagContainer`
      - `TagContainer.get_dict_representation()`
      - `TagContainer.get_list_representation()`
      - `TagContainer.get_token_len()`
      - `TagContainer.is_tag_container`
      - `TagContainer.linebreak_nth_entry`
      - `TagContainer.read()`
      - `TagContainer.subtags`
      - `TagContainer.validate_value_bounds()`
      - `TagContainer.validate_value_type()`
      - `TagContainer.write()`
  - pymatgen.io.jdftx.inputs module
    - `JDFTXInfile`
      - `JDFTXInfile.append_tag()`
      - `JDFTXInfile.as_dict()`
      - `JDFTXInfile.copy()`
      - `JDFTXInfile.from_dict()`
      - `JDFTXInfile.from_file()`
      - `JDFTXInfile.from_jdftxstructure()`
      - `JDFTXInfile.from_str()`
      - `JDFTXInfile.from_structure()`
      - `JDFTXInfile.get_dict_representation()`
      - `JDFTXInfile.get_differing_tags()`
      - `JDFTXInfile.get_differing_tags_from()`
      - `JDFTXInfile.get_filtered_differing_tags()`
      - `JDFTXInfile.get_list_representation()`
      - `JDFTXInfile.get_text_list()`
      - `JDFTXInfile.is_comparable_to()`
      - `JDFTXInfile.path_parent`
      - `JDFTXInfile.strip_structure_tags()`
      - `JDFTXInfile.structure`
      - `JDFTXInfile.to_jdftxstructure()`
      - `JDFTXInfile.to_pmg_structure()`
      - `JDFTXInfile.validate_boundaries()`
      - `JDFTXInfile.validate_tags()`
      - `JDFTXInfile.write_file()`
    - `JDFTXStructure`
      - `JDFTXStructure.structure`
      - `JDFTXStructure.selective_dynamics`
      - `JDFTXStructure.sort_structure`
      - `JDFTXStructure.write_cart_coords`
      - `JDFTXStructure.velocities`
      - `JDFTXStructure.constraint_types`
      - `JDFTXStructure.constraint_vectors`
      - `JDFTXStructure.hyperplane_group_names`
      - `JDFTXStructure.as_dict()`
      - `JDFTXStructure.constraint_types`
      - `JDFTXStructure.constraint_vectors`
      - `JDFTXStructure.from_dict()`
      - `JDFTXStructure.from_file()`
      - `JDFTXStructure.from_jdftxinfile()`
      - `JDFTXStructure.from_str()`
      - `JDFTXStructure.get_str()`
      - `JDFTXStructure.hyperplane_group_names`
      - `JDFTXStructure.natoms`
      - `JDFTXStructure.selective_dynamics`
      - `JDFTXStructure.sort_structure`
      - `JDFTXStructure.structure`
      - `JDFTXStructure.velocities`
      - `JDFTXStructure.write_cart_coords`
      - `JDFTXStructure.write_file()`
    - `selective_dynamics_site_prop_to_jdftx_interpretable()`
  - pymatgen.io.jdftx.jdftxinfile_default_inputs module
  - pymatgen.io.jdftx.jdftxinfile_master_format module
    - `get_dump_tag_container()`
    - `get_tag_object()`
    - `get_tag_object_on_val()`
  - pymatgen.io.jdftx.jdftxinfile_ref_options module
  - pymatgen.io.jdftx.jdftxoutfileslice module
    - `JDFTXOutfileSlice`
      - `JDFTXOutfileSlice.prefix`
      - `JDFTXOutfileSlice.jstrucs`
      - `JDFTXOutfileSlice.jsettings_fluid`
      - `JDFTXOutfileSlice.jsettings_electronic`
      - `JDFTXOutfileSlice.jsettings_lattice`
      - `JDFTXOutfileSlice.jsettings_ionic`
      - `JDFTXOutfileSlice.xc_func`
      - `JDFTXOutfileSlice.lattice_initial`
      - `JDFTXOutfileSlice.lattice_final`
      - `JDFTXOutfileSlice.lattice`
      - `JDFTXOutfileSlice.a`
      - `JDFTXOutfileSlice.b`
      - `JDFTXOutfileSlice.c`
      - `JDFTXOutfileSlice.fftgrid`
      - `JDFTXOutfileSlice.geom_opt`
      - `JDFTXOutfileSlice.geom_opt_type`
      - `JDFTXOutfileSlice.efermi`
      - `JDFTXOutfileSlice.egap`
      - `JDFTXOutfileSlice.emin`
      - `JDFTXOutfileSlice.emax`
      - `JDFTXOutfileSlice.homo`
      - `JDFTXOutfileSlice.lumo`
      - `JDFTXOutfileSlice.homo_filling`
      - `JDFTXOutfileSlice.lumo_filling`
      - `JDFTXOutfileSlice.is_metal`
      - `JDFTXOutfileSlice.etype`
      - `JDFTXOutfileSlice.broadening_type`
      - `JDFTXOutfileSlice.broadening`
      - `JDFTXOutfileSlice.kgrid`
      - `JDFTXOutfileSlice.truncation_type`
      - `JDFTXOutfileSlice.truncation_radius`
      - `JDFTXOutfileSlice.pwcut`
      - `JDFTXOutfileSlice.rhocut`
      - `JDFTXOutfileSlice.pp_type`
      - `JDFTXOutfileSlice.total_electrons`
      - `JDFTXOutfileSlice.semicore_electrons`
      - `JDFTXOutfileSlice.valence_electrons`
      - `JDFTXOutfileSlice.total_electrons_uncharged`
      - `JDFTXOutfileSlice.semicore_electrons_uncharged`
      - `JDFTXOutfileSlice.valence_electrons_uncharged`
      - `JDFTXOutfileSlice.nbands`
      - `JDFTXOutfileSlice.atom_elements`
      - `JDFTXOutfileSlice.atom_elements_int`
      - `JDFTXOutfileSlice.atom_types`
      - `JDFTXOutfileSlice.spintype`
      - `JDFTXOutfileSlice.nspin`
      - `JDFTXOutfileSlice.nat`
      - `JDFTXOutfileSlice.atom_coords_initial`
      - `JDFTXOutfileSlice.atom_coords_final`
      - `JDFTXOutfileSlice.atom_coords`
      - `JDFTXOutfileSlice.has_solvation`
      - `JDFTXOutfileSlice.fluid`
      - `JDFTXOutfileSlice.is_gc`
      - `JDFTXOutfileSlice.is_bgw`
      - `JDFTXOutfileSlice.has_eigstats`
      - `JDFTXOutfileSlice.has_parsable_pseudo`
      - `JDFTXOutfileSlice.a`
      - `JDFTXOutfileSlice.abs_magneticmoment`
      - `JDFTXOutfileSlice.alpha`
      - `JDFTXOutfileSlice.as_dict()`
      - `JDFTXOutfileSlice.atom_coords`
      - `JDFTXOutfileSlice.atom_coords_final`
      - `JDFTXOutfileSlice.atom_coords_initial`
      - `JDFTXOutfileSlice.atom_elements`
      - `JDFTXOutfileSlice.atom_elements_int`
      - `JDFTXOutfileSlice.atom_types`
      - `JDFTXOutfileSlice.b`
      - `JDFTXOutfileSlice.broadening`
      - `JDFTXOutfileSlice.broadening_type`
      - `JDFTXOutfileSlice.c`
      - `JDFTXOutfileSlice.constant_lattice`
      - `JDFTXOutfileSlice.converged`
      - `JDFTXOutfileSlice.determine_is_metal()`
      - `JDFTXOutfileSlice.e`
      - `JDFTXOutfileSlice.efermi`
      - `JDFTXOutfileSlice.egap`
      - `JDFTXOutfileSlice.elec_alpha`
      - `JDFTXOutfileSlice.elec_e`
      - `JDFTXOutfileSlice.elec_grad_k`
      - `JDFTXOutfileSlice.elec_linmin`
      - `JDFTXOutfileSlice.elec_nstep`
      - `JDFTXOutfileSlice.elecmindata`
      - `JDFTXOutfileSlice.electronic_output`
      - `JDFTXOutfileSlice.emax`
      - `JDFTXOutfileSlice.emin`
      - `JDFTXOutfileSlice.eopt_type`
      - `JDFTXOutfileSlice.etype`
      - `JDFTXOutfileSlice.fftgrid`
      - `JDFTXOutfileSlice.fluid`
      - `JDFTXOutfileSlice.forces`
      - `JDFTXOutfileSlice.geom_opt`
      - `JDFTXOutfileSlice.geom_opt_type`
      - `JDFTXOutfileSlice.grad_k`
      - `JDFTXOutfileSlice.has_eigstats`
      - `JDFTXOutfileSlice.has_parsable_pseudo`
      - `JDFTXOutfileSlice.has_solvation`
      - `JDFTXOutfileSlice.homo`
      - `JDFTXOutfileSlice.homo_filling`
      - `JDFTXOutfileSlice.initial_structure`
      - `JDFTXOutfileSlice.is_bgw`
      - `JDFTXOutfileSlice.is_gc`
      - `JDFTXOutfileSlice.is_metal`
      - `JDFTXOutfileSlice.jsettings_electronic`
      - `JDFTXOutfileSlice.jsettings_fluid`
      - `JDFTXOutfileSlice.jsettings_ionic`
      - `JDFTXOutfileSlice.jsettings_lattice`
      - `JDFTXOutfileSlice.jstrucs`
      - `JDFTXOutfileSlice.kgrid`
      - `JDFTXOutfileSlice.lattice`
      - `JDFTXOutfileSlice.lattice_final`
      - `JDFTXOutfileSlice.lattice_initial`
      - `JDFTXOutfileSlice.linmin`
      - `JDFTXOutfileSlice.lumo`
      - `JDFTXOutfileSlice.lumo_filling`
      - `JDFTXOutfileSlice.mu`
      - `JDFTXOutfileSlice.nat`
      - `JDFTXOutfileSlice.nbands`
      - `JDFTXOutfileSlice.nspin`
      - `JDFTXOutfileSlice.nstep`
      - `JDFTXOutfileSlice.optical_egap`
      - `JDFTXOutfileSlice.parsable_pseudos`
      - `JDFTXOutfileSlice.pp_type`
      - `JDFTXOutfileSlice.prefix`
      - `JDFTXOutfileSlice.pwcut`
      - `JDFTXOutfileSlice.rhocut`
      - `JDFTXOutfileSlice.semicore_electrons`
      - `JDFTXOutfileSlice.semicore_electrons_uncharged`
      - `JDFTXOutfileSlice.spintype`
      - `JDFTXOutfileSlice.strain`
      - `JDFTXOutfileSlice.stress`
      - `JDFTXOutfileSlice.structure`
      - `JDFTXOutfileSlice.t_s`
      - `JDFTXOutfileSlice.to_dict()`
      - `JDFTXOutfileSlice.to_jdftxinfile()`
      - `JDFTXOutfileSlice.tot_magneticmoment`
      - `JDFTXOutfileSlice.total_electrons`
      - `JDFTXOutfileSlice.total_electrons_uncharged`
      - `JDFTXOutfileSlice.trajectory`
      - `JDFTXOutfileSlice.truncation_radius`
      - `JDFTXOutfileSlice.truncation_type`
      - `JDFTXOutfileSlice.valence_electrons`
      - `JDFTXOutfileSlice.valence_electrons_uncharged`
      - `JDFTXOutfileSlice.vibrational_energy_components`
      - `JDFTXOutfileSlice.vibrational_modes`
      - `JDFTXOutfileSlice.write()`
      - `JDFTXOutfileSlice.xc_func`
    - `get_pseudo_read_section_bounds()`
  - pymatgen.io.jdftx.jelstep module
    - `JElStep`
      - `JElStep.opt_type`
      - `JElStep.etype`
      - `JElStep.nstep`
      - `JElStep.e`
      - `JElStep.grad_k`
      - `JElStep.alpha`
      - `JElStep.linmin`
      - `JElStep.t_s`
      - `JElStep.mu`
      - `JElStep.nelectrons`
      - `JElStep.abs_magneticmoment`
      - `JElStep.tot_magneticmoment`
      - `JElStep.subspacerotationadjust`
      - `JElStep.abs_magneticmoment`
      - `JElStep.alpha`
      - `JElStep.as_dict()`
      - `JElStep.converged`
      - `JElStep.converged_reason`
      - `JElStep.e`
      - `JElStep.etype`
      - `JElStep.grad_k`
      - `JElStep.linmin`
      - `JElStep.mu`
      - `JElStep.nelectrons`
      - `JElStep.nstep`
      - `JElStep.opt_type`
      - `JElStep.subspacerotationadjust`
      - `JElStep.t_s`
      - `JElStep.to_dict()`
      - `JElStep.tot_magneticmoment`
    - `JElSteps`
      - `JElSteps.opt_type`
      - `JElSteps.etype`
      - `JElSteps.iter_flag`
      - `JElSteps.converged`
      - `JElSteps.converged_reason`
      - `JElSteps.slices`
      - `JElSteps.e`
      - `JElSteps.grad_k`
      - `JElSteps.alpha`
      - `JElSteps.linmin`
      - `JElSteps.t_s`
      - `JElSteps.mu`
      - `JElSteps.nelectrons`
      - `JElSteps.abs_magneticmoment`
      - `JElSteps.tot_magneticmoment`
      - `JElSteps.subspacerotationadjust`
      - `JElSteps.nstep`
      - `JElSteps.abs_magneticmoment`
      - `JElSteps.alpha`
      - `JElSteps.as_dict()`
      - `JElSteps.converged`
      - `JElSteps.converged_reason`
      - `JElSteps.e`
      - `JElSteps.etype`
      - `JElSteps.grad_k`
      - `JElSteps.iter_flag`
      - `JElSteps.linmin`
      - `JElSteps.mu`
      - `JElSteps.nelectrons`
      - `JElSteps.nstep`
      - `JElSteps.opt_type`
      - `JElSteps.slices`
      - `JElSteps.subspacerotationadjust`
      - `JElSteps.t_s`
      - `JElSteps.to_dict()`
      - `JElSteps.tot_magneticmoment`
  - pymatgen.io.jdftx.jminsettings module
    - `JMinSettings`
      - `JMinSettings.params`
    - `JMinSettingsElectronic`
      - `JMinSettingsElectronic.start_flag`
    - `JMinSettingsFluid`
      - `JMinSettingsFluid.start_flag`
    - `JMinSettingsIonic`
      - `JMinSettingsIonic.start_flag`
    - `JMinSettingsLattice`
      - `JMinSettingsLattice.start_flag`
  - pymatgen.io.jdftx.joutstructure module
    - `JOutStructure`
      - `JOutStructure.opt_type`
      - `JOutStructure.etype`
      - `JOutStructure.eopt_type`
      - `JOutStructure.emin_flag`
      - `JOutStructure.ecomponents`
      - `JOutStructure.elecmindata`
      - `JOutStructure.stress`
      - `JOutStructure.strain`
      - `JOutStructure.nstep`
      - `JOutStructure.e`
      - `JOutStructure.grad_k`
      - `JOutStructure.alpha`
      - `JOutStructure.linmin`
      - `JOutStructure.t_s`
      - `JOutStructure.geom_converged`
      - `JOutStructure.geom_converged_reason`
      - `JOutStructure.line_types`
      - `JOutStructure.selective_dynamics`
      - `JOutStructure.mu`
      - `JOutStructure.nelectrons`
      - `JOutStructure.abs_magneticmoment`
      - `JOutStructure.tot_magneticmoment`
      - `JOutStructure.elec_nstep`
      - `JOutStructure.elec_e`
      - `JOutStructure.elec_grad_k`
      - `JOutStructure.elec_alpha`
      - `JOutStructure.elec_linmin`
      - `JOutStructure.structure`
      - `JOutStructure.is_md`
      - `JOutStructure.abs_magneticmoment`
      - `JOutStructure.alpha`
      - `JOutStructure.as_dict()`
      - `JOutStructure.charges`
      - `JOutStructure.constraint_types`
      - `JOutStructure.constraint_vectors`
      - `JOutStructure.e`
      - `JOutStructure.ecomponents`
      - `JOutStructure.elec_alpha`
      - `JOutStructure.elec_e`
      - `JOutStructure.elec_grad_k`
      - `JOutStructure.elec_linmin`
      - `JOutStructure.elec_nstep`
      - `JOutStructure.elecmindata`
      - `JOutStructure.emin_flag`
      - `JOutStructure.eopt_type`
      - `JOutStructure.etype`
      - `JOutStructure.forces`
      - `JOutStructure.geom_converged`
      - `JOutStructure.geom_converged_reason`
      - `JOutStructure.grad_k`
      - `JOutStructure.group_names`
      - `JOutStructure.is_md`
      - `JOutStructure.kinetic_stress`
      - `JOutStructure.line_types`
      - `JOutStructure.linmin`
      - `JOutStructure.magnetic_moments`
      - `JOutStructure.mu`
      - `JOutStructure.nelectrons`
      - `JOutStructure.nstep`
      - `JOutStructure.opt_type`
      - `JOutStructure.selective_dynamics`
      - `JOutStructure.strain`
      - `JOutStructure.stress`
      - `JOutStructure.structure`
      - `JOutStructure.t_s`
      - `JOutStructure.thermostat_velocity`
      - `JOutStructure.to_dict()`
      - `JOutStructure.tot_magneticmoment`
      - `JOutStructure.velocities`
  - pymatgen.io.jdftx.joutstructures module
    - `JOutStructures`
      - `JOutStructures.out_slice_start_flag`
      - `JOutStructures.opt_type`
      - `JOutStructures.geom_converged`
      - `JOutStructures.geom_converged_reason`
      - `JOutStructures.elec_converged`
      - `JOutStructures.elec_converged_reason`
      - `JOutStructures.slices`
      - `JOutStructures.eopt_type`
      - `JOutStructures.etype`
      - `JOutStructures.emin_flag`
      - `JOutStructures.ecomponents`
      - `JOutStructures.elecmindata`
      - `JOutStructures.stress`
      - `JOutStructures.strain`
      - `JOutStructures.nstep`
      - `JOutStructures.e`
      - `JOutStructures.grad_k`
      - `JOutStructures.alpha`
      - `JOutStructures.linmin`
      - `JOutStructures.abs_magneticmoment`
      - `JOutStructures.tot_magneticmoment`
      - `JOutStructures.mu`
      - `JOutStructures.elec_e`
      - `JOutStructures.elec_nstep`
      - `JOutStructures.elec_grad_k`
      - `JOutStructures.elec_alpha`
      - `JOutStructures.elec_linmin`
      - `JOutStructures.charges`
      - `JOutStructures.magnetic_moments`
      - `JOutStructures.selective_dynamics`
      - `JOutStructures.structure`
      - `JOutStructures.initial_structure`
      - `JOutStructures.abs_magneticmoment`
      - `JOutStructures.alpha`
      - `JOutStructures.as_dict()`
      - `JOutStructures.charges`
      - `JOutStructures.e`
      - `JOutStructures.ecomponents`
      - `JOutStructures.elec_alpha`
      - `JOutStructures.elec_converged`
      - `JOutStructures.elec_converged_reason`
      - `JOutStructures.elec_e`
      - `JOutStructures.elec_grad_k`
      - `JOutStructures.elec_linmin`
      - `JOutStructures.elec_nstep`
      - `JOutStructures.elecmindata`
      - `JOutStructures.emin_flag`
      - `JOutStructures.eopt_type`
      - `JOutStructures.etype`
      - `JOutStructures.forces`
      - `JOutStructures.geom_converged`
      - `JOutStructures.geom_converged_reason`
      - `JOutStructures.grad_k`
      - `JOutStructures.initial_structure`
      - `JOutStructures.linmin`
      - `JOutStructures.magnetic_moments`
      - `JOutStructures.mu`
      - `JOutStructures.nelectrons`
      - `JOutStructures.nstep`
      - `JOutStructures.opt_type`
      - `JOutStructures.out_slice_start_flag`
      - `JOutStructures.selective_dynamics`
      - `JOutStructures.slices`
      - `JOutStructures.strain`
      - `JOutStructures.stress`
      - `JOutStructures.structure`
      - `JOutStructures.t_s`
      - `JOutStructures.to_dict()`
      - `JOutStructures.tot_magneticmoment`
  - pymatgen.io.jdftx.outputs module
    - `JDFTXOutfile`
      - `JDFTXOutfile.slices`
      - `JDFTXOutfile.prefix`
      - `JDFTXOutfile.jstrucs`
      - `JDFTXOutfile.jsettings_fluid`
      - `JDFTXOutfile.jsettings_electronic`
      - `JDFTXOutfile.jsettings_lattice`
      - `JDFTXOutfile.jsettings_ionic`
      - `JDFTXOutfile.xc_func`
      - `JDFTXOutfile.lattice_initial`
      - `JDFTXOutfile.lattice_final`
      - `JDFTXOutfile.lattice`
      - `JDFTXOutfile.a`
      - `JDFTXOutfile.b`
      - `JDFTXOutfile.c`
      - `JDFTXOutfile.fftgrid`
      - `JDFTXOutfile.geom_opt`
      - `JDFTXOutfile.geom_opt_type`
      - `JDFTXOutfile.ecomponents`
      - `JDFTXOutfile.efermi`
      - `JDFTXOutfile.egap`
      - `JDFTXOutfile.emin`
      - `JDFTXOutfile.emax`
      - `JDFTXOutfile.homo`
      - `JDFTXOutfile.lumo`
      - `JDFTXOutfile.homo_filling`
      - `JDFTXOutfile.lumo_filling`
      - `JDFTXOutfile.is_metal`
      - `JDFTXOutfile.converged`
      - `JDFTXOutfile.etype`
      - `JDFTXOutfile.broadening_type`
      - `JDFTXOutfile.broadening`
      - `JDFTXOutfile.kgrid`
      - `JDFTXOutfile.truncation_type`
      - `JDFTXOutfile.truncation_radius`
      - `JDFTXOutfile.pwcut`
      - `JDFTXOutfile.rhocut`
      - `JDFTXOutfile.pp_type`
      - `JDFTXOutfile.total_electrons`
      - `JDFTXOutfile.semicore_electrons`
      - `JDFTXOutfile.valence_electrons`
      - `JDFTXOutfile.total_electrons_uncharged`
      - `JDFTXOutfile.semicore_electrons_uncharged`
      - `JDFTXOutfile.valence_electrons_uncharged`
      - `JDFTXOutfile.nbands`
      - `JDFTXOutfile.atom_elements`
      - `JDFTXOutfile.atom_elements_int`
      - `JDFTXOutfile.atom_types`
      - `JDFTXOutfile.spintype`
      - `JDFTXOutfile.nspin`
      - `JDFTXOutfile.nat`
      - `JDFTXOutfile.atom_coords_initial`
      - `JDFTXOutfile.atom_coords_final`
      - `JDFTXOutfile.atom_coords`
      - `JDFTXOutfile.structure`
      - `JDFTXOutfile.trajectory`
      - `JDFTXOutfile.has_solvation`
      - `JDFTXOutfile.fluid`
      - `JDFTXOutfile.is_gc`
      - `JDFTXOutfile.eopt_type`
      - `JDFTXOutfile.elecmindata`
      - `JDFTXOutfile.stress`
      - `JDFTXOutfile.strain`
      - `JDFTXOutfile.nstep`
      - `JDFTXOutfile.e`
      - `JDFTXOutfile.grad_k`
      - `JDFTXOutfile.alpha`
      - `JDFTXOutfile.linmin`
      - `JDFTXOutfile.abs_magneticmoment`
      - `JDFTXOutfile.tot_magneticmoment`
      - `JDFTXOutfile.mu`
      - `JDFTXOutfile.elec_e`
      - `JDFTXOutfile.elec_nstep`
      - `JDFTXOutfile.elec_grad_k`
      - `JDFTXOutfile.elec_alpha`
      - `JDFTXOutfile.elec_linmin`
      - `JDFTXOutfile.infile`
      - `JDFTXOutfile.a`
      - `JDFTXOutfile.abs_magneticmoment`
      - `JDFTXOutfile.alpha`
      - `JDFTXOutfile.as_dict()`
      - `JDFTXOutfile.atom_coords`
      - `JDFTXOutfile.atom_coords_final`
      - `JDFTXOutfile.atom_coords_initial`
      - `JDFTXOutfile.atom_elements`
      - `JDFTXOutfile.atom_elements_int`
      - `JDFTXOutfile.atom_types`
      - `JDFTXOutfile.b`
      - `JDFTXOutfile.broadening`
      - `JDFTXOutfile.broadening_type`
      - `JDFTXOutfile.c`
      - `JDFTXOutfile.converged`
      - `JDFTXOutfile.e`
      - `JDFTXOutfile.efermi`
      - `JDFTXOutfile.egap`
      - `JDFTXOutfile.elec_alpha`
      - `JDFTXOutfile.elec_e`
      - `JDFTXOutfile.elec_grad_k`
      - `JDFTXOutfile.elec_linmin`
      - `JDFTXOutfile.elec_nstep`
      - `JDFTXOutfile.elecmindata`
      - `JDFTXOutfile.electronic_output`
      - `JDFTXOutfile.emax`
      - `JDFTXOutfile.emin`
      - `JDFTXOutfile.eopt_type`
      - `JDFTXOutfile.etype`
      - `JDFTXOutfile.fftgrid`
      - `JDFTXOutfile.fluid`
      - `JDFTXOutfile.forces`
      - `JDFTXOutfile.from_calc_dir()`
      - `JDFTXOutfile.from_file()`
      - `JDFTXOutfile.geom_opt`
      - `JDFTXOutfile.geom_opt_type`
      - `JDFTXOutfile.grad_k`
      - `JDFTXOutfile.has_solvation`
      - `JDFTXOutfile.homo`
      - `JDFTXOutfile.homo_filling`
      - `JDFTXOutfile.infile`
      - `JDFTXOutfile.is_gc`
      - `JDFTXOutfile.is_metal`
      - `JDFTXOutfile.jsettings_electronic`
      - `JDFTXOutfile.jsettings_fluid`
      - `JDFTXOutfile.jsettings_ionic`
      - `JDFTXOutfile.jsettings_lattice`
      - `JDFTXOutfile.jstrucs`
      - `JDFTXOutfile.kgrid`
      - `JDFTXOutfile.lattice`
      - `JDFTXOutfile.lattice_final`
      - `JDFTXOutfile.lattice_initial`
      - `JDFTXOutfile.linmin`
      - `JDFTXOutfile.lumo`
      - `JDFTXOutfile.lumo_filling`
      - `JDFTXOutfile.mu`
      - `JDFTXOutfile.nat`
      - `JDFTXOutfile.nbands`
      - `JDFTXOutfile.nspin`
      - `JDFTXOutfile.nstep`
      - `JDFTXOutfile.pp_type`
      - `JDFTXOutfile.prefix`
      - `JDFTXOutfile.pwcut`
      - `JDFTXOutfile.rhocut`
      - `JDFTXOutfile.semicore_electrons`
      - `JDFTXOutfile.semicore_electrons_uncharged`
      - `JDFTXOutfile.slices`
      - `JDFTXOutfile.spintype`
      - `JDFTXOutfile.strain`
      - `JDFTXOutfile.stress`
      - `JDFTXOutfile.structure`
      - `JDFTXOutfile.to_dict()`
      - `JDFTXOutfile.to_jdftxinfile()`
      - `JDFTXOutfile.tot_magneticmoment`
      - `JDFTXOutfile.total_electrons`
      - `JDFTXOutfile.total_electrons_uncharged`
      - `JDFTXOutfile.trajectory`
      - `JDFTXOutfile.truncation_radius`
      - `JDFTXOutfile.truncation_type`
      - `JDFTXOutfile.valence_electrons`
      - `JDFTXOutfile.valence_electrons_uncharged`
      - `JDFTXOutfile.vibrational_energy_components`
      - `JDFTXOutfile.vibrational_modes`
      - `JDFTXOutfile.xc_func`
    - `JDFTXOutputs`
      - `JDFTXOutputs.calc_dir`
      - `JDFTXOutputs.store_vars`
      - `JDFTXOutputs.paths`
      - `JDFTXOutputs.outfile`
      - `JDFTXOutputs.bandProjections`
      - `JDFTXOutputs.eigenvals`
      - `JDFTXOutputs.orb_label_list`
      - `JDFTXOutputs.kpts`
      - `JDFTXOutputs.wk_list`
      - `JDFTXOutputs.bandProjections`
      - `JDFTXOutputs.bandstructure`
      - `JDFTXOutputs.calc_dir`
      - `JDFTXOutputs.eigenvals`
      - `JDFTXOutputs.from_calc_dir()`
      - `JDFTXOutputs.kpts`
      - `JDFTXOutputs.orb_label_list`
      - `JDFTXOutputs.outfile`
      - `JDFTXOutputs.outfile_name`
      - `JDFTXOutputs.paths`
      - `JDFTXOutputs.store_vars`
      - `JDFTXOutputs.wk_list`
  - pymatgen.io.jdftx.sets module
    - `JdftxInputSet`
      - `JdftxInputSet.from_file()`
      - `JdftxInputSet.write_input()`
    - `condense_jdftxinputs()`
- pymatgen.io.lammps package
  - Submodules
  - pymatgen.io.lammps.data module
    - `CombinedData`
      - `CombinedData.as_lammpsdata()`
      - `CombinedData.disassemble()`
      - `CombinedData.from_ff_and_topologies()`
      - `CombinedData.from_files()`
      - `CombinedData.from_lammpsdata()`
      - `CombinedData.from_structure()`
      - `CombinedData.get_str()`
      - `CombinedData.parse_xyz()`
      - `CombinedData.structure`
    - `ForceField`
      - `ForceField.masses`
      - `ForceField.force_fieldct`
      - `ForceField.maps`
      - `ForceField.from_dict()`
      - `ForceField.from_file()`
      - `ForceField.to_file()`
    - `LammpsBox`
      - `LammpsBox.get_box_shift()`
      - `LammpsBox.get_str()`
      - `LammpsBox.to_lattice()`
      - `LammpsBox.volume`
    - `LammpsData`
      - `LammpsData.disassemble()`
      - `LammpsData.from_ff_and_topologies()`
      - `LammpsData.from_file()`
      - `LammpsData.from_structure()`
      - `LammpsData.get_str()`
      - `LammpsData.set_charge_atom()`
      - `LammpsData.set_charge_atom_type()`
      - `LammpsData.structure`
      - `LammpsData.write_file()`
    - `Topology`
      - `Topology.from_bonding()`
    - `lattice_2_lmpbox()`
  - pymatgen.io.lammps.generators module
    - `BaseLammpsGenerator`
      - `BaseLammpsGenerator.template`
      - `BaseLammpsGenerator.calc_type`
      - `BaseLammpsGenerator.settings`
      - `BaseLammpsGenerator.keep_stages`
      - `BaseLammpsGenerator.calc_type`
      - `BaseLammpsGenerator.data`
      - `BaseLammpsGenerator.get_input_set()`
      - `BaseLammpsGenerator.inputfile`
      - `BaseLammpsGenerator.keep_stages`
      - `BaseLammpsGenerator.settings`
      - `BaseLammpsGenerator.template`
    - `LammpsMinimization`
      - `LammpsMinimization.atom_style`
      - `LammpsMinimization.boundary`
      - `LammpsMinimization.dimension`
      - `LammpsMinimization.force_field`
      - `LammpsMinimization.read_data`
      - `LammpsMinimization.units`
  - pymatgen.io.lammps.inputs module
    - `LammpsInputFile`
      - `LammpsInputFile.add_commands()`
      - `LammpsInputFile.add_stage()`
      - `LammpsInputFile.append()`
      - `LammpsInputFile.contains_command()`
      - `LammpsInputFile.from_file()`
      - `LammpsInputFile.from_str()`
      - `LammpsInputFile.get_args()`
      - `LammpsInputFile.get_str()`
      - `LammpsInputFile.merge_stages()`
      - `LammpsInputFile.ncomments`
      - `LammpsInputFile.nstages`
      - `LammpsInputFile.remove_command()`
      - `LammpsInputFile.remove_stage()`
      - `LammpsInputFile.rename_stage()`
      - `LammpsInputFile.set_args()`
      - `LammpsInputFile.stages_names`
      - `LammpsInputFile.write_file()`
    - `LammpsRun`
      - `LammpsRun.md()`
      - `LammpsRun.write_inputs()`
    - `LammpsTemplateGen`
      - `LammpsTemplateGen.get_input_set()`
    - `write_lammps_inputs()`
  - pymatgen.io.lammps.outputs module
    - `LammpsDump`
      - `LammpsDump.as_dict()`
      - `LammpsDump.from_dict()`
      - `LammpsDump.from_str()`
    - `parse_lammps_dumps()`
    - `parse_lammps_log()`
  - pymatgen.io.lammps.sets module
    - `LammpsInputSet`
      - `LammpsInputSet.from_directory()`
      - `LammpsInputSet.validate()`
  - pymatgen.io.lammps.utils module
    - `LammpsRunner`
      - `LammpsRunner.run()`
    - `PackmolRunner`
      - `PackmolRunner.convert_obatoms_to_molecule()`
      - `PackmolRunner.restore_site_properties()`
      - `PackmolRunner.run()`
      - `PackmolRunner.write_pdb()`
    - `Polymer`
- pymatgen.io.lobster package
  - Subpackages
    - pymatgen.io.lobster.future package
      - `BWDF`
        - `BWDF.centers`
        - `BWDF.bwdf`
        - `BWDF.bin_width`
        - `BWDF.from_dict()`
        - `BWDF.get_default_filename()`
        - `BWDF.is_cohp`
        - `BWDF.parse_file()`
        - `BWDF.process_data_into_bwdf_centers()`
        - `BWDF.version_processors`
      - `BandOverlaps`
        - `BandOverlaps.band_overlaps`
        - `BandOverlaps.from_dict()`
        - `BandOverlaps.get_default_filename()`
        - `BandOverlaps.has_good_quality_check_occupied_bands()`
        - `BandOverlaps.has_good_quality_max_deviation()`
        - `BandOverlaps.parse_file()`
        - `BandOverlaps.parse_file_v3_2_legacy()`
        - `BandOverlaps.parse_file_v4_0()`
        - `BandOverlaps.version_processors`
      - `CHARGE`
        - `CHARGE.is_lcfo`
        - `CHARGE.centers`
        - `CHARGE.mulliken`
        - `CHARGE.loewdin`
        - `CHARGE.charge_regex`
        - `CHARGE.get_default_filename()`
        - `CHARGE.is_lcfo`
        - `CHARGE.parse_file()`
        - `CHARGE.version_processors`
      - `CHARGE_LCFO`
        - `CHARGE_LCFO.is_lcfo`
        - `CHARGE_LCFO.charge_regex`
        - `CHARGE_LCFO.is_lcfo`
        - `CHARGE_LCFO.version_processors`
      - `COBICAR`
        - `COBICAR.coxxcar_type`
        - `COBICAR.is_lcfo`
        - `COBICAR.coxxcar_type`
        - `COBICAR.get_default_filename()`
        - `COBICAR.is_lcfo`
        - `COBICAR.version_processors`
      - `COBICAR_LCFO`
        - `COBICAR_LCFO.is_lcfo`
        - `COBICAR_LCFO.is_lcfo`
        - `COBICAR_LCFO.version_processors`
      - `COHPCAR`
        - `COHPCAR.coxxcar_type`
        - `COHPCAR.is_lcfo`
        - `COHPCAR.coxxcar_type`
        - `COHPCAR.get_default_filename()`
        - `COHPCAR.is_lcfo`
        - `COHPCAR.version_processors`
      - `COHPCAR_LCFO`
        - `COHPCAR_LCFO.is_lcfo`
        - `COHPCAR_LCFO.is_lcfo`
        - `COHPCAR_LCFO.version_processors`
      - `COOPCAR`
        - `COOPCAR.coxxcar_type`
        - `COOPCAR.coxxcar_type`
        - `COOPCAR.get_default_filename()`
        - `COOPCAR.version_processors`
      - `DOSCAR`
        - `DOSCAR.completedos`
        - `DOSCAR.pdos`
        - `DOSCAR.tdos`
        - `DOSCAR.energies`
        - `DOSCAR.tdensities`
        - `DOSCAR.itdensities`
        - `DOSCAR.is_spin_polarized`
        - `DOSCAR.efermi`
        - `DOSCAR.energies`
        - `DOSCAR.get_default_filename()`
        - `DOSCAR.is_lcfo`
        - `DOSCAR.is_spin_polarized`
        - `DOSCAR.process()`
        - `DOSCAR.version_processors`
      - `DOSCAR_LCFO`
        - `DOSCAR_LCFO.is_lcfo`
        - `DOSCAR_LCFO.is_lcfo`
        - `DOSCAR_LCFO.version_processors`
      - `Fatband`
        - `Fatband.convert_to_numpy_arrays()`
        - `Fatband.from_dict()`
        - `Fatband.get_default_filename()`
        - `Fatband.parse_file()`
        - `Fatband.version_processors`
      - `Fatbands`
        - `Fatbands.efermi`
        - `Fatbands.spins`
        - `Fatbands.kpoints`
        - `Fatbands.filenames`
        - `Fatbands.structure`
        - `Fatbands.reciprocal_lattice`
        - `Fatbands.lobster_version`
        - `Fatbands.fatbands`
        - `Fatbands.as_dict()`
        - `Fatbands.fatbands`
        - `Fatbands.has_spin`
        - `Fatbands.is_spin_polarized`
        - `Fatbands.process()`
      - `GROSSPOP`
        - `GROSSPOP.is_lcfo`
        - `GROSSPOP.populations`
        - `GROSSPOP.spins`
        - `GROSSPOP.get_default_filename()`
        - `GROSSPOP.is_lcfo`
        - `GROSSPOP.parse_file()`
        - `GROSSPOP.version_processors`
      - `GROSSPOP_LCFO`
        - `GROSSPOP_LCFO.is_lcfo`
        - `GROSSPOP_LCFO.populations`
        - `GROSSPOP_LCFO.is_lcfo`
        - `GROSSPOP_LCFO.version_processors`
      - `ICOBILIST`
        - `ICOBILIST.icoxxlist_type`
        - `ICOBILIST.is_lcfo`
        - `ICOBILIST.get_default_filename()`
        - `ICOBILIST.icoxxlist_type`
        - `ICOBILIST.is_lcfo`
        - `ICOBILIST.version_processors`
      - `ICOBILIST_LCFO`
        - `ICOBILIST_LCFO.is_lcfo`
        - `ICOBILIST_LCFO.is_lcfo`
        - `ICOBILIST_LCFO.version_processors`
      - `ICOHPLIST`
        - `ICOHPLIST.icoxxlist_type`
        - `ICOHPLIST.is_lcfo`
        - `ICOHPLIST.get_default_filename()`
        - `ICOHPLIST.icoxxlist_type`
        - `ICOHPLIST.is_lcfo`
        - `ICOHPLIST.version_processors`
      - `ICOHPLIST_LCFO`
        - `ICOHPLIST_LCFO.is_lcfo`
        - `ICOHPLIST_LCFO.is_lcfo`
        - `ICOHPLIST_LCFO.version_processors`
      - `ICOOPLIST`
        - `ICOOPLIST.icoxxlist_type`
        - `ICOOPLIST.get_default_filename()`
        - `ICOOPLIST.icoxxlist_type`
        - `ICOOPLIST.version_processors`
      - `ICOXXLIST`
        - `ICOXXLIST.interactions`
        - `ICOXXLIST.spins`
        - `ICOXXLIST.data`
        - `ICOXXLIST.icoxxlist_type`
        - `ICOXXLIST.is_lcfo`
        - `ICOXXLIST.get_data_by_properties()`
        - `ICOXXLIST.icoxxlist_type`
        - `ICOXXLIST.interactions_regex`
        - `ICOXXLIST.parse_file()`
        - `ICOXXLIST.parse_file_legacy()`
        - `ICOXXLIST.process_data_into_interactions()`
        - `ICOXXLIST.version_processors`
      - `LobsterIn`
        - `LobsterIn.FLOAT_KEYWORDS`
        - `LobsterIn.STRING_KEYWORDS`
        - `LobsterIn.BOOLEAN_KEYWORDS`
        - `LobsterIn.LIST_KEYWORDS`
        - `LobsterIn.AVAILABLE_KEYWORDS`
        - `LobsterIn.AVAILABLE_KEYWORDS`
        - `LobsterIn.BOOLEAN_KEYWORDS`
        - `LobsterIn.FLOAT_KEYWORDS`
        - `LobsterIn.LIST_KEYWORDS`
        - `LobsterIn.STRING_KEYWORDS`
        - `LobsterIn.as_dict()`
        - `LobsterIn.diff()`
        - `LobsterIn.from_dict()`
        - `LobsterIn.from_file()`
        - `LobsterIn.get_all_possible_basis_functions()`
        - `LobsterIn.get_basis()`
        - `LobsterIn.standard_calculations_from_vasp_files()`
        - `LobsterIn.write_INCAR()`
        - `LobsterIn.write_KPOINTS()`
        - `LobsterIn.write_POSCAR_with_standard_primitive()`
        - `LobsterIn.write_lobsterin()`
      - `LobsterMatrices`
        - `LobsterMatrices.matrix_type`
        - `LobsterMatrices.centers`
        - `LobsterMatrices.orbitals`
        - `LobsterMatrices.matrices`
        - `LobsterMatrices.efermi`
        - `LobsterMatrices.as_dict()`
        - `LobsterMatrices.centers`
        - `LobsterMatrices.from_dict()`
        - `LobsterMatrices.get_default_filename()`
        - `LobsterMatrices.get_matrix_type()`
        - `LobsterMatrices.get_onsite_values()`
        - `LobsterMatrices.matrices`
        - `LobsterMatrices.matrix_types`
        - `LobsterMatrices.orbitals`
        - `LobsterMatrices.parse_file()`
        - `LobsterMatrices.version_processors`
      - `LobsterOut`
        - `LobsterOut.basis_functions`
        - `LobsterOut.basis_type`
        - `LobsterOut.charge_spilling`
        - `LobsterOut.dft_program`
        - `LobsterOut.elements`
        - `LobsterOut.has_charge`
        - `LobsterOut.has_cohpcar`
        - `LobsterOut.has_madelung`
        - `LobsterOut.has_coopcar`
        - `LobsterOut.has_cobicar`
        - `LobsterOut.has_doscar`
        - `LobsterOut.has_doscar_lso`
        - `LobsterOut.has_projection`
        - `LobsterOut.has_bandoverlaps`
        - `LobsterOut.has_density_of_energies`
        - `LobsterOut.has_fatbands`
        - `LobsterOut.has_grosspopulation`
        - `LobsterOut.has_polarization`
        - `LobsterOut.info_lines`
        - `LobsterOut.info_orthonormalization`
        - `LobsterOut.is_restart_from_projection`
        - `LobsterOut.lobster_version`
        - `LobsterOut.number_of_spins`
        - `LobsterOut.number_of_threads`
        - `LobsterOut.timing`
        - `LobsterOut.total_spilling`
        - `LobsterOut.warning_lines`
        - `LobsterOut.get_default_filename()`
        - `LobsterOut.get_lobster_version()`
        - `LobsterOut.process()`
        - `LobsterOut.version_processors`
      - `MadelungEnergies`
        - `MadelungEnergies.madelung_energies_mulliken`
        - `MadelungEnergies.madelung_energies_loewdin`
        - `MadelungEnergies.ewald_splitting`
        - `MadelungEnergies.get_default_filename()`
        - `MadelungEnergies.parse_file()`
        - `MadelungEnergies.version_processors`
      - `NcICOBILIST`
        - `NcICOBILIST.interactions`
        - `NcICOBILIST.spins`
        - `NcICOBILIST.data`
        - `NcICOBILIST.get_data_by_properties()`
        - `NcICOBILIST.get_default_filename()`
        - `NcICOBILIST.interactions_regex`
        - `NcICOBILIST.parse_file()`
        - `NcICOBILIST.process_data_into_interactions()`
        - `NcICOBILIST.version_processors`
      - `POLARIZATION`
        - `POLARIZATION.rel_mulliken_pol_vector`
        - `POLARIZATION.rel_loewdin_pol_vector`
        - `POLARIZATION.get_default_filename()`
        - `POLARIZATION.parse_file()`
        - `POLARIZATION.version_processors`
      - `SitePotentials`
        - `SitePotentials.centers`
        - `SitePotentials.site_potentials_mulliken`
        - `SitePotentials.site_potentials_loewdin`
        - `SitePotentials.madelung_energies_mulliken`
        - `SitePotentials.madelung_energies_loewdin`
        - `SitePotentials.ewald_splitting`
        - `SitePotentials.get_default_filename()`
        - `SitePotentials.parse_file()`
        - `SitePotentials.version_processors`
      - `Wavefunction`
        - `Wavefunction.grid`
        - `Wavefunction.points`
        - `Wavefunction.reals`
        - `Wavefunction.imaginaries`
        - `Wavefunction.distances`
        - `Wavefunction.structure`
        - `Wavefunction.from_dict()`
        - `Wavefunction.get_volumetricdata_density()`
        - `Wavefunction.get_volumetricdata_imaginary()`
        - `Wavefunction.get_volumetricdata_real()`
        - `Wavefunction.parse_file()`
        - `Wavefunction.set_volumetric_data()`
        - `Wavefunction.version_processors`
        - `Wavefunction.write_file()`
      - Subpackages
        - pymatgen.io.lobster.future.outputs package
          - `BWDF`
            - `BWDF.centers`
            - `BWDF.bwdf`
            - `BWDF.bin_width`
            - `BWDF.from_dict()`
            - `BWDF.get_default_filename()`
            - `BWDF.is_cohp`
            - `BWDF.parse_file()`
            - `BWDF.process_data_into_bwdf_centers()`
            - `BWDF.version_processors`
          - `BWDFCOHP`
            - `BWDFCOHP.get_default_filename()`
            - `BWDFCOHP.version_processors`
          - `BandOverlaps`
            - `BandOverlaps.band_overlaps`
            - `BandOverlaps.from_dict()`
            - `BandOverlaps.get_default_filename()`
            - `BandOverlaps.has_good_quality_check_occupied_bands()`
            - `BandOverlaps.has_good_quality_max_deviation()`
            - `BandOverlaps.parse_file()`
            - `BandOverlaps.parse_file_v3_2_legacy()`
            - `BandOverlaps.parse_file_v4_0()`
            - `BandOverlaps.version_processors`
          - `CHARGE`
            - `CHARGE.is_lcfo`
            - `CHARGE.centers`
            - `CHARGE.mulliken`
            - `CHARGE.loewdin`
            - `CHARGE.charge_regex`
            - `CHARGE.get_default_filename()`
            - `CHARGE.is_lcfo`
            - `CHARGE.parse_file()`
            - `CHARGE.version_processors`
          - `CHARGE_LCFO`
            - `CHARGE_LCFO.is_lcfo`
            - `CHARGE_LCFO.charge_regex`
            - `CHARGE_LCFO.is_lcfo`
            - `CHARGE_LCFO.version_processors`
          - `COBICAR`
            - `COBICAR.coxxcar_type`
            - `COBICAR.is_lcfo`
            - `COBICAR.coxxcar_type`
            - `COBICAR.get_default_filename()`
            - `COBICAR.is_lcfo`
            - `COBICAR.version_processors`
          - `COBICAR_LCFO`
            - `COBICAR_LCFO.is_lcfo`
            - `COBICAR_LCFO.is_lcfo`
            - `COBICAR_LCFO.version_processors`
          - `COHPCAR`
            - `COHPCAR.coxxcar_type`
            - `COHPCAR.is_lcfo`
            - `COHPCAR.coxxcar_type`
            - `COHPCAR.get_default_filename()`
            - `COHPCAR.is_lcfo`
            - `COHPCAR.version_processors`
          - `COHPCAR_LCFO`
            - `COHPCAR_LCFO.is_lcfo`
            - `COHPCAR_LCFO.is_lcfo`
            - `COHPCAR_LCFO.version_processors`
          - `COOPCAR`
            - `COOPCAR.coxxcar_type`
            - `COOPCAR.coxxcar_type`
            - `COOPCAR.get_default_filename()`
            - `COOPCAR.version_processors`
          - `COXXCAR`
            - `COXXCAR.filename`
            - `COXXCAR.num_bonds`
            - `COXXCAR.num_data`
            - `COXXCAR.efermi`
            - `COXXCAR.spins`
            - `COXXCAR.interactions`
            - `COXXCAR.data`
            - `COXXCAR.coxxcar_type`
            - `COXXCAR.energies`
            - `COXXCAR.get_data_by_properties()`
            - `COXXCAR.get_data_indices_by_properties()`
            - `COXXCAR.interaction_indices_to_data_indices_mapping()`
            - `COXXCAR.interactions_regex`
            - `COXXCAR.parse_bonds()`
            - `COXXCAR.parse_data()`
            - `COXXCAR.parse_file()`
            - `COXXCAR.parse_header()`
            - `COXXCAR.process_data_into_interactions()`
            - `COXXCAR.version_processors`
          - `DOSCAR`
            - `DOSCAR.completedos`
            - `DOSCAR.pdos`
            - `DOSCAR.tdos`
            - `DOSCAR.energies`
            - `DOSCAR.tdensities`
            - `DOSCAR.itdensities`
            - `DOSCAR.is_spin_polarized`
            - `DOSCAR.efermi`
            - `DOSCAR.energies`
            - `DOSCAR.get_default_filename()`
            - `DOSCAR.integrated_total_dos`
            - `DOSCAR.is_lcfo`
            - `DOSCAR.is_spin_polarized`
            - `DOSCAR.process()`
            - `DOSCAR.projected_dos`
            - `DOSCAR.total_dos`
            - `DOSCAR.version_processors`
          - `DOSCAR_LCFO`
            - `DOSCAR_LCFO.is_lcfo`
            - `DOSCAR_LCFO.is_lcfo`
            - `DOSCAR_LCFO.version_processors`
          - `Fatband`
            - `Fatband.convert_to_numpy_arrays()`
            - `Fatband.from_dict()`
            - `Fatband.get_default_filename()`
            - `Fatband.parse_file()`
            - `Fatband.version_processors`
          - `Fatbands`
            - `Fatbands.efermi`
            - `Fatbands.spins`
            - `Fatbands.kpoints`
            - `Fatbands.filenames`
            - `Fatbands.structure`
            - `Fatbands.reciprocal_lattice`
            - `Fatbands.lobster_version`
            - `Fatbands.fatbands`
            - `Fatbands.as_dict()`
            - `Fatbands.fatbands`
            - `Fatbands.has_spin`
            - `Fatbands.is_spin_polarized`
            - `Fatbands.process()`
          - `GROSSPOP`
            - `GROSSPOP.is_lcfo`
            - `GROSSPOP.populations`
            - `GROSSPOP.spins`
            - `GROSSPOP.get_default_filename()`
            - `GROSSPOP.is_lcfo`
            - `GROSSPOP.parse_file()`
            - `GROSSPOP.version_processors`
          - `GROSSPOP_LCFO`
            - `GROSSPOP_LCFO.is_lcfo`
            - `GROSSPOP_LCFO.populations`
            - `GROSSPOP_LCFO.is_lcfo`
            - `GROSSPOP_LCFO.version_processors`
          - `ICOBILIST`
            - `ICOBILIST.icoxxlist_type`
            - `ICOBILIST.is_lcfo`
            - `ICOBILIST.get_default_filename()`
            - `ICOBILIST.icoxxlist_type`
            - `ICOBILIST.is_lcfo`
            - `ICOBILIST.version_processors`
          - `ICOBILIST_LCFO`
            - `ICOBILIST_LCFO.is_lcfo`
            - `ICOBILIST_LCFO.is_lcfo`
            - `ICOBILIST_LCFO.version_processors`
          - `ICOHPLIST`
            - `ICOHPLIST.icoxxlist_type`
            - `ICOHPLIST.is_lcfo`
            - `ICOHPLIST.get_default_filename()`
            - `ICOHPLIST.icoxxlist_type`
            - `ICOHPLIST.is_lcfo`
            - `ICOHPLIST.version_processors`
          - `ICOHPLIST_LCFO`
            - `ICOHPLIST_LCFO.is_lcfo`
            - `ICOHPLIST_LCFO.is_lcfo`
            - `ICOHPLIST_LCFO.version_processors`
          - `ICOOPLIST`
            - `ICOOPLIST.icoxxlist_type`
            - `ICOOPLIST.get_default_filename()`
            - `ICOOPLIST.icoxxlist_type`
            - `ICOOPLIST.version_processors`
          - `ICOXXLIST`
            - `ICOXXLIST.interactions`
            - `ICOXXLIST.spins`
            - `ICOXXLIST.data`
            - `ICOXXLIST.icoxxlist_type`
            - `ICOXXLIST.is_lcfo`
            - `ICOXXLIST.get_data_by_properties()`
            - `ICOXXLIST.icoxxlist_type`
            - `ICOXXLIST.interactions_regex`
            - `ICOXXLIST.parse_file()`
            - `ICOXXLIST.parse_file_legacy()`
            - `ICOXXLIST.process_data_into_interactions()`
            - `ICOXXLIST.version_processors`
          - `LobsterMatrices`
            - `LobsterMatrices.matrix_type`
            - `LobsterMatrices.centers`
            - `LobsterMatrices.orbitals`
            - `LobsterMatrices.matrices`
            - `LobsterMatrices.efermi`
            - `LobsterMatrices.as_dict()`
            - `LobsterMatrices.centers`
            - `LobsterMatrices.from_dict()`
            - `LobsterMatrices.get_default_filename()`
            - `LobsterMatrices.get_matrix_type()`
            - `LobsterMatrices.get_onsite_values()`
            - `LobsterMatrices.matrices`
            - `LobsterMatrices.matrix_types`
            - `LobsterMatrices.orbitals`
            - `LobsterMatrices.parse_file()`
            - `LobsterMatrices.version_processors`
          - `LobsterOut`
            - `LobsterOut.basis_functions`
            - `LobsterOut.basis_type`
            - `LobsterOut.charge_spilling`
            - `LobsterOut.dft_program`
            - `LobsterOut.elements`
            - `LobsterOut.has_charge`
            - `LobsterOut.has_cohpcar`
            - `LobsterOut.has_madelung`
            - `LobsterOut.has_coopcar`
            - `LobsterOut.has_cobicar`
            - `LobsterOut.has_doscar`
            - `LobsterOut.has_doscar_lso`
            - `LobsterOut.has_projection`
            - `LobsterOut.has_bandoverlaps`
            - `LobsterOut.has_density_of_energies`
            - `LobsterOut.has_fatbands`
            - `LobsterOut.has_grosspopulation`
            - `LobsterOut.has_polarization`
            - `LobsterOut.info_lines`
            - `LobsterOut.info_orthonormalization`
            - `LobsterOut.is_restart_from_projection`
            - `LobsterOut.lobster_version`
            - `LobsterOut.number_of_spins`
            - `LobsterOut.number_of_threads`
            - `LobsterOut.timing`
            - `LobsterOut.total_spilling`
            - `LobsterOut.warning_lines`
            - `LobsterOut.get_default_filename()`
            - `LobsterOut.get_lobster_version()`
            - `LobsterOut.process()`
            - `LobsterOut.version_processors`
          - `MadelungEnergies`
            - `MadelungEnergies.madelung_energies_mulliken`
            - `MadelungEnergies.madelung_energies_loewdin`
            - `MadelungEnergies.ewald_splitting`
            - `MadelungEnergies.get_default_filename()`
            - `MadelungEnergies.parse_file()`
            - `MadelungEnergies.version_processors`
          - `NcICOBILIST`
            - `NcICOBILIST.interactions`
            - `NcICOBILIST.spins`
            - `NcICOBILIST.data`
            - `NcICOBILIST.get_data_by_properties()`
            - `NcICOBILIST.get_default_filename()`
            - `NcICOBILIST.interactions_regex`
            - `NcICOBILIST.parse_file()`
            - `NcICOBILIST.process_data_into_interactions()`
            - `NcICOBILIST.version_processors`
          - `POLARIZATION`
            - `POLARIZATION.rel_mulliken_pol_vector`
            - `POLARIZATION.rel_loewdin_pol_vector`
            - `POLARIZATION.get_default_filename()`
            - `POLARIZATION.parse_file()`
            - `POLARIZATION.version_processors`
          - `SitePotentials`
            - `SitePotentials.centers`
            - `SitePotentials.site_potentials_mulliken`
            - `SitePotentials.site_potentials_loewdin`
            - `SitePotentials.madelung_energies_mulliken`
            - `SitePotentials.madelung_energies_loewdin`
            - `SitePotentials.ewald_splitting`
            - `SitePotentials.get_default_filename()`
            - `SitePotentials.parse_file()`
            - `SitePotentials.version_processors`
          - `Wavefunction`
            - `Wavefunction.grid`
            - `Wavefunction.points`
            - `Wavefunction.reals`
            - `Wavefunction.imaginaries`
            - `Wavefunction.distances`
            - `Wavefunction.structure`
            - `Wavefunction.from_dict()`
            - `Wavefunction.get_volumetricdata_density()`
            - `Wavefunction.get_volumetricdata_imaginary()`
            - `Wavefunction.get_volumetricdata_real()`
            - `Wavefunction.parse_file()`
            - `Wavefunction.set_volumetric_data()`
            - `Wavefunction.version_processors`
            - `Wavefunction.write_file()`
          - Submodules
          - pymatgen.io.lobster.future.outputs.bands module
            - `BandOverlaps`
            - `Fatband`
            - `Fatbands`
          - pymatgen.io.lobster.future.outputs.coxxcar module
            - `COBICAR`
            - `COBICAR_LCFO`
            - `COHPCAR`
            - `COHPCAR_LCFO`
            - `COOPCAR`
            - `COXXCAR`
          - pymatgen.io.lobster.future.outputs.doscar module
            - `DOSCAR`
            - `DOSCAR_LCFO`
          - pymatgen.io.lobster.future.outputs.icoxxlist module
            - `ICOBILIST`
            - `ICOBILIST_LCFO`
            - `ICOHPLIST`
            - `ICOHPLIST_LCFO`
            - `ICOOPLIST`
            - `ICOXXLIST`
            - `NcICOBILIST`
          - pymatgen.io.lobster.future.outputs.lobsterout module
            - `LobsterOut`
          - pymatgen.io.lobster.future.outputs.misc module
            - `BWDF`
            - `BWDFCOHP`
            - `LobsterMatrices`
            - `MadelungEnergies`
            - `POLARIZATION`
            - `SitePotentials`
            - `Wavefunction`
            - `get_orb_from_str()`
          - pymatgen.io.lobster.future.outputs.populations module
            - `CHARGE`
            - `CHARGE_LCFO`
            - `GROSSPOP`
            - `GROSSPOP_LCFO`
      - Submodules
      - pymatgen.io.lobster.future.constants module
        - `LOBSTER_VERSION`
      - pymatgen.io.lobster.future.core module
        - `LobsterFile`
          - `LobsterFile.filename`
          - `LobsterFile.lobster_version`
          - `LobsterFile.version_processors`
          - `LobsterFile.spins`
          - `LobsterFile.as_dict()`
          - `LobsterFile.check_version()`
          - `LobsterFile.from_dict()`
          - `LobsterFile.get_default_filename()`
          - `LobsterFile.get_file_version()`
          - `LobsterFile.has_spin`
          - `LobsterFile.is_spin_polarized`
          - `LobsterFile.iterate_lines()`
          - `LobsterFile.lines`
          - `LobsterFile.process()`
          - `LobsterFile.spins`
          - `LobsterFile.version_processors`
        - `LobsterInteractionsHolder`
          - `LobsterInteractionsHolder.interactions`
          - `LobsterInteractionsHolder.data`
          - `LobsterInteractionsHolder.from_dict()`
          - `LobsterInteractionsHolder.get_interaction_indices_by_properties()`
          - `LobsterInteractionsHolder.get_interactions_by_properties()`
          - `LobsterInteractionsHolder.get_label_from_interaction()`
          - `LobsterInteractionsHolder.interactions`
          - `LobsterInteractionsHolder.process_data_into_interactions()`
          - `LobsterInteractionsHolder.version_processors`
      - pymatgen.io.lobster.future.inputs module
        - `LobsterIn`
          - `LobsterIn.FLOAT_KEYWORDS`
          - `LobsterIn.STRING_KEYWORDS`
          - `LobsterIn.BOOLEAN_KEYWORDS`
          - `LobsterIn.LIST_KEYWORDS`
          - `LobsterIn.AVAILABLE_KEYWORDS`
          - `LobsterIn.AVAILABLE_KEYWORDS`
          - `LobsterIn.BOOLEAN_KEYWORDS`
          - `LobsterIn.FLOAT_KEYWORDS`
          - `LobsterIn.LIST_KEYWORDS`
          - `LobsterIn.STRING_KEYWORDS`
          - `LobsterIn.as_dict()`
          - `LobsterIn.diff()`
          - `LobsterIn.from_dict()`
          - `LobsterIn.from_file()`
          - `LobsterIn.get_all_possible_basis_functions()`
          - `LobsterIn.get_basis()`
          - `LobsterIn.standard_calculations_from_vasp_files()`
          - `LobsterIn.write_INCAR()`
          - `LobsterIn.write_KPOINTS()`
          - `LobsterIn.write_POSCAR_with_standard_primitive()`
          - `LobsterIn.write_lobsterin()`
        - `get_all_possible_basis_combinations()`
      - pymatgen.io.lobster.future.lobsterenv module
        - `LobsterNeighbors`
      - pymatgen.io.lobster.future.types module
        - `LobsterBandOverlaps`
          - `LobsterBandOverlaps.k_points`
          - `LobsterBandOverlaps.matrices`
          - `LobsterBandOverlaps.max_deviations`
          - `LobsterBandOverlaps.k_points`
          - `LobsterBandOverlaps.matrices`
          - `LobsterBandOverlaps.max_deviations`
        - `LobsterFatband`
          - `LobsterFatband.center`
          - `LobsterFatband.orbital`
          - `LobsterFatband.energies`
          - `LobsterFatband.projections`
          - `LobsterFatband.center`
          - `LobsterFatband.energies`
          - `LobsterFatband.orbital`
          - `LobsterFatband.projections`
        - `LobsterFatbands`
          - `LobsterFatbands.k_points`
          - `LobsterFatbands.bands`
          - `LobsterFatbands.bands`
          - `LobsterFatbands.k_points`
        - `LobsterInteraction`
          - `LobsterInteraction.index`
          - `LobsterInteraction.centers`
          - `LobsterInteraction.cells`
          - `LobsterInteraction.orbitals`
          - `LobsterInteraction.length`
          - `LobsterInteraction.cells`
          - `LobsterInteraction.centers`
          - `LobsterInteraction.index`
          - `LobsterInteraction.length`
          - `LobsterInteraction.orbitals`
        - `LobsterInteractionData`
          - `LobsterInteractionData.coxx`
          - `LobsterInteractionData.icoxx`
          - `LobsterInteractionData.cells`
          - `LobsterInteractionData.centers`
          - `LobsterInteractionData.coxx`
          - `LobsterInteractionData.icoxx`
          - `LobsterInteractionData.index`
          - `LobsterInteractionData.length`
          - `LobsterInteractionData.orbitals`
      - pymatgen.io.lobster.future.utils module
        - `convert_spin_keys()`
        - `natural_sort()`
        - `parse_orbital_from_text()`
        - `restore_spin_keys()`
      - pymatgen.io.lobster.future.versioning module
        - `version_processor()`
  - Submodules
  - pymatgen.io.lobster.inputs module
    - `Lobsterin`
      - `Lobsterin.AVAILABLE_KEYWORDS`
      - `Lobsterin.BOOLEAN_KEYWORDS`
      - `Lobsterin.FLOAT_KEYWORDS`
      - `Lobsterin.LIST_KEYWORDS`
      - `Lobsterin.STRING_KEYWORDS`
      - `Lobsterin.as_dict()`
      - `Lobsterin.diff()`
      - `Lobsterin.from_dict()`
      - `Lobsterin.from_file()`
      - `Lobsterin.get_all_possible_basis_functions()`
      - `Lobsterin.get_basis()`
      - `Lobsterin.standard_calculations_from_vasp_files()`
      - `Lobsterin.write_INCAR()`
      - `Lobsterin.write_KPOINTS()`
      - `Lobsterin.write_POSCAR_with_standard_primitive()`
      - `Lobsterin.write_lobsterin()`
    - `get_all_possible_basis_combinations()`
  - pymatgen.io.lobster.lobsterenv module
    - `LobsterNeighbors`
  - pymatgen.io.lobster.outputs module
    - `Bandoverlaps`
      - `Bandoverlaps.band_overlaps_dict`
      - `Bandoverlaps.max_deviation`
      - `Bandoverlaps.bandoverlapsdict`
      - `Bandoverlaps.has_good_quality_check_occupied_bands()`
      - `Bandoverlaps.has_good_quality_maxDeviation()`
    - `Bwdf`
      - `Bwdf.centers`
      - `Bwdf.bwdf`
      - `Bwdf.bin_width`
    - `Charge`
      - `Charge.atomlist`
      - `Charge.is_lcfo`
      - `Charge.types`
      - `Charge.mulliken`
      - `Charge.loewdin`
      - `Charge.num_atoms`
      - `Charge.Loewdin`
      - `Charge.Mulliken`
      - `Charge.get_structure_with_charges()`
    - `Cohpcar`
      - `Cohpcar.cohp_data`
      - `Cohpcar.efermi`
      - `Cohpcar.energies`
      - `Cohpcar.is_spin_polarized`
      - `Cohpcar.orb_res_cohp`
    - `Doscar`
      - `Doscar.completedos`
      - `Doscar.pdos`
      - `Doscar.tdos`
      - `Doscar.energies`
      - `Doscar.tdensities`
      - `Doscar.itdensities`
      - `Doscar.is_spin_polarized`
      - `Doscar.completedos`
      - `Doscar.energies`
      - `Doscar.is_spin_polarized`
      - `Doscar.itdensities`
      - `Doscar.pdos`
      - `Doscar.tdensities`
      - `Doscar.tdos`
    - `Fatband`
      - `Fatband.efermi`
      - `Fatband.eigenvals`
      - `Fatband.is_spin_polarized`
      - `Fatband.kpoints_array`
      - `Fatband.label_dict`
      - `Fatband.lattice`
      - `Fatband.nbands`
      - `Fatband.p_eigenvals`
      - `Fatband.structure`
      - `Fatband.get_bandstructure()`
    - `Grosspop`
      - `Grosspop.list_dict_grosspop`
      - `Grosspop.get_structure_with_total_grosspop()`
    - `Icohplist`
      - `Icohplist.are_coops`
      - `Icohplist.is_lcfo`
      - `Icohplist.is_spin_polarized`
      - `Icohplist.Icohplist`
      - `Icohplist.IcohpCollection`
      - `Icohplist.icohpcollection`
      - `Icohplist.icohplist`
    - `LobsterMatrices`
    - `Lobsterout`
      - `Lobsterout.basis_functions`
      - `Lobsterout.basis_type`
      - `Lobsterout.charge_spilling`
      - `Lobsterout.dft_program`
      - `Lobsterout.elements`
      - `Lobsterout.has_charge`
      - `Lobsterout.has_cohpcar`
      - `Lobsterout.has_madelung`
      - `Lobsterout.has_coopcar`
      - `Lobsterout.has_cobicar`
      - `Lobsterout.has_doscar`
      - `Lobsterout.has_doscar_lso`
      - `Lobsterout.has_projection`
      - `Lobsterout.has_bandoverlaps`
      - `Lobsterout.has_density_of_energies`
      - `Lobsterout.has_fatbands`
      - `Lobsterout.has_grosspopulation`
      - `Lobsterout.has_polarization`
      - `Lobsterout.info_lines`
      - `Lobsterout.info_orthonormalization`
      - `Lobsterout.is_restart_from_projection`
      - `Lobsterout.lobster_version`
      - `Lobsterout.number_of_spins`
      - `Lobsterout.number_of_threads`
      - `Lobsterout.timing`
      - `Lobsterout.total_spilling`
      - `Lobsterout.warning_lines`
      - `Lobsterout.as_dict()`
      - `Lobsterout.get_doc()`
    - `MadelungEnergies`
      - `MadelungEnergies.madelungenergies_mulliken`
      - `MadelungEnergies.madelungenergies_loewdin`
      - `MadelungEnergies.ewald_splitting`
      - `MadelungEnergies.madelungenergies_Loewdin`
      - `MadelungEnergies.madelungenergies_Mulliken`
    - `NciCobiList`
      - `NciCobiList.is_spin_polarized`
      - `NciCobiList.NciCobiList`
      - `NciCobiList.ncicobi_list`
    - `Polarization`
      - `Polarization.rel_mulliken_pol_vector`
      - `Polarization.rel_loewdin_pol_vector`
    - `SitePotential`
      - `SitePotential.atomlist`
      - `SitePotential.types`
      - `SitePotential.num_atoms`
      - `SitePotential.sitepotentials_mulliken`
      - `SitePotential.sitepotentials_loewdin`
      - `SitePotential.madelungenergies_mulliken`
      - `SitePotential.madelungenergies_loewdin`
      - `SitePotential.ewald_splitting`
      - `SitePotential.get_structure_with_site_potentials()`
      - `SitePotential.madelungenergies_Loewdin`
      - `SitePotential.madelungenergies_Mulliken`
      - `SitePotential.sitepotentials_Loewdin`
      - `SitePotential.sitepotentials_Mulliken`
    - `Wavefunction`
      - `Wavefunction.grid`
      - `Wavefunction.points`
      - `Wavefunction.real`
      - `Wavefunction.imaginary`
      - `Wavefunction.distance`
      - `Wavefunction.get_volumetricdata_density()`
      - `Wavefunction.get_volumetricdata_imaginary()`
      - `Wavefunction.get_volumetricdata_real()`
      - `Wavefunction.set_volumetric_data()`
      - `Wavefunction.write_file()`
    - `get_orb_from_str()`
  - pymatgen.io.lobster.sets module
    - `LobsterSet`
      - `LobsterSet.CONFIG`
      - `LobsterSet.address_basis_file`
      - `LobsterSet.incar_updates`
      - `LobsterSet.ismear`
      - `LobsterSet.isym`
      - `LobsterSet.kpoints_updates`
      - `LobsterSet.reciprocal_density`
      - `LobsterSet.user_potcar_functional`
      - `LobsterSet.user_supplied_basis`
- pymatgen.io.pwmat package
  - Submodules
  - pymatgen.io.pwmat.inputs module
    - `ACExtractor`
      - `ACExtractor.get_coords()`
      - `ACExtractor.get_lattice()`
      - `ACExtractor.get_magmoms()`
      - `ACExtractor.get_n_atoms()`
      - `ACExtractor.get_types()`
    - `ACExtractorBase`
      - `ACExtractorBase.get_coords()`
      - `ACExtractorBase.get_lattice()`
      - `ACExtractorBase.get_magmoms()`
      - `ACExtractorBase.get_n_atoms()`
      - `ACExtractorBase.get_types()`
    - `ACstrExtractor`
      - `ACstrExtractor.get_atom_energies()`
      - `ACstrExtractor.get_atom_forces()`
      - `ACstrExtractor.get_coords()`
      - `ACstrExtractor.get_e_tot()`
      - `ACstrExtractor.get_lattice()`
      - `ACstrExtractor.get_magmoms()`
      - `ACstrExtractor.get_n_atoms()`
      - `ACstrExtractor.get_types()`
      - `ACstrExtractor.get_virial()`
    - `AtomConfig`
      - `AtomConfig.as_dict()`
      - `AtomConfig.from_dict()`
      - `AtomConfig.from_file()`
      - `AtomConfig.from_str()`
      - `AtomConfig.get_str()`
      - `AtomConfig.write_file()`
    - `GenKpt`
      - `GenKpt.from_structure()`
      - `GenKpt.get_str()`
      - `GenKpt.write_file()`
    - `HighSymmetryPoint`
      - `HighSymmetryPoint.from_structure()`
      - `HighSymmetryPoint.get_str()`
      - `HighSymmetryPoint.write_file()`
    - `LineLocator`
      - `LineLocator.locate_all_lines()`
    - `ListLocator`
      - `ListLocator.locate_all_lines()`
  - pymatgen.io.pwmat.outputs module
    - `DosSpin`
      - `DosSpin.dos`
      - `DosSpin.get_partial_dos()`
      - `DosSpin.labels`
    - `Movement`
      - `Movement.atom_configs`
      - `Movement.atom_forces`
      - `Movement.e_atoms`
      - `Movement.e_tots`
      - `Movement.virials`
    - `OutFermi`
      - `OutFermi.e_fermi`
    - `Report`
      - `Report.eigenvalues`
      - `Report.hsps`
      - `Report.kpoints`
      - `Report.kpoints_weight`
      - `Report.n_bands`
      - `Report.n_kpoints`
      - `Report.spin`
- pymatgen.io.qchem package
  - Submodules
  - pymatgen.io.qchem.inputs module
    - `QCInput`
      - `QCInput.almo_template()`
      - `QCInput.cdft_template()`
      - `QCInput.find_sections()`
      - `QCInput.from_file()`
      - `QCInput.from_multi_jobs_file()`
      - `QCInput.from_str()`
      - `QCInput.geom_opt_template()`
      - `QCInput.get_str()`
      - `QCInput.molecule_template()`
      - `QCInput.multi_job_string()`
      - `QCInput.nbo_template()`
      - `QCInput.opt_template()`
      - `QCInput.pcm_nonels_template()`
      - `QCInput.pcm_template()`
      - `QCInput.plots_template()`
      - `QCInput.read_almo()`
      - `QCInput.read_cdft()`
      - `QCInput.read_geom_opt()`
      - `QCInput.read_molecule()`
      - `QCInput.read_nbo()`
      - `QCInput.read_opt()`
      - `QCInput.read_pcm()`
      - `QCInput.read_pcm_nonels()`
      - `QCInput.read_plots()`
      - `QCInput.read_rem()`
      - `QCInput.read_scan()`
      - `QCInput.read_smx()`
      - `QCInput.read_solvent()`
      - `QCInput.read_svp()`
      - `QCInput.read_vdw()`
      - `QCInput.rem_template()`
      - `QCInput.scan_template()`
      - `QCInput.smx_template()`
      - `QCInput.solvent_template()`
      - `QCInput.svp_template()`
      - `QCInput.van_der_waals_template()`
      - `QCInput.write_multi_job_file()`
  - pymatgen.io.qchem.outputs module
    - `QCOutput`
      - `QCOutput.as_dict()`
      - `QCOutput.multiple_outputs_from_file()`
    - `check_for_structure_changes()`
    - `get_percentage()`
    - `gradient_parser()`
    - `hessian_parser()`
    - `jump_to_header()`
    - `nbo_parser()`
    - `orbital_coeffs_parser()`
    - `parse_hybridization_character()`
    - `parse_hyperbonds()`
    - `parse_natural_populations()`
    - `parse_perturbation_energy()`
    - `z_int()`
  - pymatgen.io.qchem.sets module
    - `ForceSet`
    - `FreqSet`
    - `OptSet`
    - `PESScanSet`
    - `QChemDictSet`
      - `QChemDictSet.write()`
    - `SinglePointSet`
    - `TransitionStateSet`
  - pymatgen.io.qchem.utils module
    - `lower_and_check_unique()`
    - `process_parsed_coords()`
    - `process_parsed_fock_matrix()`
    - `process_parsed_hess()`
    - `read_matrix_pattern()`
    - `read_pattern()`
    - `read_table_pattern()`
- pymatgen.io.vasp package
  - Submodules
  - pymatgen.io.vasp.help module
    - `VaspDoc`
      - `VaspDoc.get_help()`
      - `VaspDoc.get_incar_tags()`
      - `VaspDoc.print_help()`
      - `VaspDoc.print_jupyter_help()`
  - pymatgen.io.vasp.inputs module
    - `BadIncarWarning`
    - `BadPoscarWarning`
    - `Incar`
      - `Incar.INCAR_PARAMS`
      - `Incar.as_dict()`
      - `Incar.check_params()`
      - `Incar.copy()`
      - `Incar.diff()`
      - `Incar.from_dict()`
      - `Incar.from_file()`
      - `Incar.from_str()`
      - `Incar.get()`
      - `Incar.get_str()`
      - `Incar.json_file`
      - `Incar.proc_val()`
      - `Incar.write_file()`
    - `Kpoints`
      - `Kpoints.as_dict()`
      - `Kpoints.automatic()`
      - `Kpoints.automatic_density()`
      - `Kpoints.automatic_density_by_lengths()`
      - `Kpoints.automatic_density_by_vol()`
      - `Kpoints.automatic_gamma_density()`
      - `Kpoints.automatic_linemode()`
      - `Kpoints.copy()`
      - `Kpoints.from_dict()`
      - `Kpoints.from_file()`
      - `Kpoints.from_str()`
      - `Kpoints.gamma_automatic()`
      - `Kpoints.kpts`
      - `Kpoints.monkhorst_automatic()`
      - `Kpoints.style`
      - `Kpoints.supported_modes`
      - `Kpoints.write_file()`
    - `KpointsSupportedModes`
      - `KpointsSupportedModes.Automatic`
      - `KpointsSupportedModes.Cartesian`
      - `KpointsSupportedModes.Gamma`
      - `KpointsSupportedModes.Line_mode`
      - `KpointsSupportedModes.Monkhorst`
      - `KpointsSupportedModes.Reciprocal`
      - `KpointsSupportedModes.from_str()`
    - `Orbital`
      - `Orbital.E`
      - `Orbital.j`
      - `Orbital.l`
      - `Orbital.n`
      - `Orbital.occ`
    - `OrbitalDescription`
      - `OrbitalDescription.E`
      - `OrbitalDescription.Rcut`
      - `OrbitalDescription.Rcut2`
      - `OrbitalDescription.Type`
      - `OrbitalDescription.Type2`
      - `OrbitalDescription.l`
    - `PmgVaspPspDirError`
    - `Poscar`
      - `Poscar.structure`
      - `Poscar.comment`
      - `Poscar.true_names`
      - `Poscar.selective_dynamics`
      - `Poscar.velocities`
      - `Poscar.predictor_corrector`
      - `Poscar.predictor_corrector_preamble`
      - `Poscar.lattice_velocities`
      - `Poscar.temperature`
      - `Poscar.as_dict()`
      - `Poscar.comment`
      - `Poscar.from_dict()`
      - `Poscar.from_file()`
      - `Poscar.from_str()`
      - `Poscar.get_str()`
      - `Poscar.get_string()`
      - `Poscar.lattice_velocities`
      - `Poscar.natoms`
      - `Poscar.predictor_corrector`
      - `Poscar.predictor_corrector_preamble`
      - `Poscar.selective_dynamics`
      - `Poscar.set_temperature()`
      - `Poscar.site_symbols`
      - `Poscar.temperature`
      - `Poscar.true_names`
      - `Poscar.velocities`
      - `Poscar.write_file()`
    - `Potcar`
      - `Potcar.FUNCTIONAL_CHOICES`
      - `Potcar.as_dict()`
      - `Potcar.from_dict()`
      - `Potcar.from_file()`
      - `Potcar.from_spec()`
      - `Potcar.from_str()`
      - `Potcar.set_symbols()`
      - `Potcar.spec`
      - `Potcar.symbols`
      - `Potcar.write_file()`
      - `Potcar.write_potcar_spec()`
    - `PotcarSingle`
      - `PotcarSingle.data`
      - `PotcarSingle.keywords`
      - `PotcarSingle.atomic_no`
      - `PotcarSingle.compare_potcar_stats()`
      - `PotcarSingle.copy()`
      - `PotcarSingle.electron_configuration`
      - `PotcarSingle.element`
      - `PotcarSingle.from_file()`
      - `PotcarSingle.from_symbol_and_functional()`
      - `PotcarSingle.functional`
      - `PotcarSingle.functional_class`
      - `PotcarSingle.functional_dir`
      - `PotcarSingle.functional_tags`
      - `PotcarSingle.get_electron_configuration()`
      - `PotcarSingle.hash_sha256_from_file`
      - `PotcarSingle.identify_potcar()`
      - `PotcarSingle.identify_potcar_hash_based()`
      - `PotcarSingle.is_valid`
      - `PotcarSingle.md5_computed_file_hash`
      - `PotcarSingle.md5_header_hash`
      - `PotcarSingle.nelectrons`
      - `PotcarSingle.parse_functions`
      - `PotcarSingle.potential_type`
      - `PotcarSingle.sha256_computed_file_hash`
      - `PotcarSingle.spec()`
      - `PotcarSingle.symbol`
      - `PotcarSingle.verify_potcar()`
      - `PotcarSingle.write_file()`
    - `UnknownPotcarWarning`
    - `VaspInput`
      - `VaspInput.as_dict()`
      - `VaspInput.copy()`
      - `VaspInput.from_dict()`
      - `VaspInput.from_directory()`
      - `VaspInput.incar`
      - `VaspInput.kpoints`
      - `VaspInput.poscar`
      - `VaspInput.potcar`
      - `VaspInput.run_vasp()`
      - `VaspInput.write_input()`
  - pymatgen.io.vasp.optics module
    - `DielectricFunctionCalculator`
      - `DielectricFunctionCalculator.cder`
      - `DielectricFunctionCalculator.cder_imag`
      - `DielectricFunctionCalculator.cder_real`
      - `DielectricFunctionCalculator.cshift`
      - `DielectricFunctionCalculator.deltae`
      - `DielectricFunctionCalculator.efermi`
      - `DielectricFunctionCalculator.eigs`
      - `DielectricFunctionCalculator.from_directory()`
      - `DielectricFunctionCalculator.from_vasp_objects()`
      - `DielectricFunctionCalculator.get_epsilon()`
      - `DielectricFunctionCalculator.ismear`
      - `DielectricFunctionCalculator.ispin`
      - `DielectricFunctionCalculator.kweights`
      - `DielectricFunctionCalculator.nedos`
      - `DielectricFunctionCalculator.plot_weighted_transition_data()`
      - `DielectricFunctionCalculator.sigma`
      - `DielectricFunctionCalculator.volume`
    - `delta_func()`
    - `delta_methfessel_paxton()`
    - `epsilon_imag()`
    - `get_delta()`
    - `get_step()`
    - `kramers_kronig()`
    - `step_func()`
    - `step_methfessel_paxton()`
  - pymatgen.io.vasp.outputs module
    - `BSVasprun`
      - `BSVasprun.as_dict()`
    - `BandgapProps`
      - `BandgapProps.cbm`
      - `BandgapProps.cbm_k`
      - `BandgapProps.direct_gap_eigenvalues`
      - `BandgapProps.direct_gap_k`
      - `BandgapProps.efermi`
      - `BandgapProps.vbm`
      - `BandgapProps.vbm_k`
    - `Chgcar`
      - `Chgcar.from_file()`
      - `Chgcar.name`
      - `Chgcar.net_magnetization`
    - `Dynmat`
      - `Dynmat.data`
      - `Dynmat.data`
      - `Dynmat.get_phonon_frequencies()`
      - `Dynmat.masses`
      - `Dynmat.natoms`
      - `Dynmat.ndisps`
      - `Dynmat.nspecs`
    - `Eigenval`
      - `Eigenval.filename`
      - `Eigenval.occu_tol`
      - `Eigenval.ispin`
      - `Eigenval.nelect`
      - `Eigenval.nkpt`
      - `Eigenval.nbands`
      - `Eigenval.kpoints`
      - `Eigenval.kpoints_weights`
      - `Eigenval.eigenvalues`
      - `Eigenval.eigenvalue_band_properties`
    - `Elfcar`
      - `Elfcar.from_file()`
      - `Elfcar.get_alpha()`
    - `KpointOptProps`
      - `KpointOptProps.actual_kpoints`
      - `KpointOptProps.actual_kpoints_weights`
      - `KpointOptProps.dos_has_errors`
      - `KpointOptProps.efermi`
      - `KpointOptProps.eigenvalues`
      - `KpointOptProps.idos`
      - `KpointOptProps.kpoints`
      - `KpointOptProps.pdos`
      - `KpointOptProps.projected_eigenvalues`
      - `KpointOptProps.projected_magnetisation`
      - `KpointOptProps.projected_magnetization`
      - `KpointOptProps.tdos`
    - `Locpot`
      - `Locpot.from_file()`
    - `Oszicar`
      - `Oszicar.electronic_steps`
      - `Oszicar.ionic_steps`
      - `Oszicar.all_energies`
      - `Oszicar.as_dict()`
      - `Oszicar.final_energy`
    - `Outcar`
      - `Outcar.magnetization`
      - `Outcar.chemical_shielding`
      - `Outcar.unsym_cs_tensor`
      - `Outcar.cs_g0_contribution`
      - `Outcar.cs_core_contribution`
      - `Outcar.efg`
      - `Outcar.charge`
      - `Outcar.is_stopped`
      - `Outcar.run_stats`
      - `Outcar.elastic_tensor`
      - `Outcar.drift`
      - `Outcar.ngf`
      - `Outcar.sampling_radii`
      - `Outcar.electrostatic_potential`
      - `Outcar.final_energy_contribs`
      - `Outcar.efermi`
      - `Outcar.filename`
      - `Outcar.final_energy`
      - `Outcar.final_energy_wo_entrp`
      - `Outcar.final_fr_energy`
      - `Outcar.has_onsite_density_matrices`
      - `Outcar.lcalcpol`
      - `Outcar.lepsilon`
      - `Outcar.nelect`
      - `Outcar.spin`
      - `Outcar.total_mag`
      - `Outcar.as_dict()`
      - `Outcar.data`
      - `Outcar.electrostatic_potential`
      - `Outcar.filename`
      - `Outcar.has_onsite_density_matrices`
      - `Outcar.is_stopped`
      - `Outcar.ngf`
      - `Outcar.nmr_cs`
      - `Outcar.nmr_efg`
      - `Outcar.read_avg_core_poten()`
      - `Outcar.read_chemical_shielding()`
      - `Outcar.read_core_state_eigen()`
      - `Outcar.read_corrections()`
      - `Outcar.read_cs_core_contribution()`
      - `Outcar.read_cs_g0_contribution()`
      - `Outcar.read_cs_raw_symmetrized_tensors()`
      - `Outcar.read_elastic_tensor()`
      - `Outcar.read_electrostatic_potential()`
      - `Outcar.read_fermi_contact_shift()`
      - `Outcar.read_freq_dielectric()`
      - `Outcar.read_igpar()`
      - `Outcar.read_internal_strain_tensor()`
      - `Outcar.read_lcalcpol()`
      - `Outcar.read_lepsilon()`
      - `Outcar.read_lepsilon_ionic()`
      - `Outcar.read_neb()`
      - `Outcar.read_nmr_efg()`
      - `Outcar.read_nmr_efg_tensor()`
      - `Outcar.read_onsite_density_matrices()`
      - `Outcar.read_pattern()`
      - `Outcar.read_piezo_tensor()`
      - `Outcar.read_pseudo_zval()`
      - `Outcar.read_table_pattern()`
      - `Outcar.sampling_radii`
    - `Procar`
      - `Procar.data`
      - `Procar.weights`
      - `Procar.phase_factors`
      - `Procar.nbands`
      - `Procar.nkpoints`
      - `Procar.nions`
      - `Procar.nspins`
      - `Procar.is_soc`
      - `Procar.kpoints`
      - `Procar.occupancies`
      - `Procar.eigenvalues`
      - `Procar.xyz_data`
      - `Procar.get_occupation()`
      - `Procar.get_projection_on_elements()`
      - `Procar.is_soc`
      - `Procar.nions`
      - `Procar.nspins`
      - `Procar.read()`
    - `UnconvergedVASPWarning`
    - `VaspParseError`
    - `Vaspout()`
    - `Vasprun`
      - `Vasprun.ionic_steps`
      - `Vasprun.tdos`
      - `Vasprun.idos`
      - `Vasprun.pdos`
      - `Vasprun.efermi`
      - `Vasprun.eigenvalues`
      - `Vasprun.projected_eigenvalues`
      - `Vasprun.projected_magnetization`
      - `Vasprun.dielectric_data`
      - `Vasprun.nionic_steps`
      - `Vasprun.force_constants`
      - `Vasprun.normalmode_eigenvals`
      - `Vasprun.normalmode_eigenvecs`
      - `Vasprun.md_data`
      - `Vasprun.incar`
      - `Vasprun.parameters`
      - `Vasprun.kpoints`
      - `Vasprun.actual_kpoints`
      - `Vasprun.actual_kpoints_weights`
      - `Vasprun.atomic_symbols`
      - `Vasprun.potcar_symbols`
      - `Vasprun.kpoints_opt_props`
      - `Vasprun.as_dict()`
      - `Vasprun.calculate_efermi()`
      - `Vasprun.complete_dos`
      - `Vasprun.complete_dos_normalized`
      - `Vasprun.converged`
      - `Vasprun.converged_electronic`
      - `Vasprun.converged_ionic`
      - `Vasprun.dielectric`
      - `Vasprun.eigenvalue_band_properties`
      - `Vasprun.epsilon_ionic`
      - `Vasprun.epsilonassets`
      - `Vasprun.epsilonassets_wolfe`
      - `Vasprun.final_energy`
      - `Vasprun.get_band_structure()`
      - `Vasprun.get_computed_entry()`
      - `Vasprun.get_potcars()`
      - `Vasprun.get_trajectory()`
      - `Vasprun.hubbards`
      - `Vasprun.is_hubbard`
      - `Vasprun.is_spin`
      - `Vasprun.md_n_steps`
      - `Vasprun.nionic_steps`
      - `Vasprun.optical_absorption_coeff`
      - `Vasprun.projected_magnetisation`
      - `Vasprun.run_type`
      - `Vasprun.structures`
      - `Vasprun.update_charge_from_potcar()`
      - `Vasprun.update_potcar_spec()`
    - `VolumetricData`
      - `VolumetricData.parse_file()`
      - `VolumetricData.write_file()`
    - `WSWQ`
      - `WSWQ.nspin`
      - `WSWQ.nkpoints`
      - `WSWQ.nbands`
      - `WSWQ.me_real`
      - `WSWQ.me_imag`
      - `WSWQ.data`
      - `WSWQ.from_file()`
      - `WSWQ.me_imag`
      - `WSWQ.me_real`
      - `WSWQ.nbands`
      - `WSWQ.nkpoints`
      - `WSWQ.nspin`
    - `Wavecar`
      - `Wavecar.vasp_type`
      - `Wavecar.nk`
      - `Wavecar.nb`
      - `Wavecar.encut`
      - `Wavecar.efermi`
      - `Wavecar.a`
      - `Wavecar.b`
      - `Wavecar.vol`
      - `Wavecar.kpoints`
      - `Wavecar.band_energy`
      - `Wavecar.Gpoints`
      - `Wavecar.coeffs`
      - `Wavecar.band_energy`
      - `Wavecar.coeffs`
      - `Wavecar.evaluate_wavefunc()`
      - `Wavecar.fft_mesh()`
      - `Wavecar.get_parchg()`
      - `Wavecar.write_unks()`
    - `Waveder`
      - `Waveder.cder_real`
      - `Waveder.cder_imag`
      - `Waveder.cder`
      - `Waveder.cder_imag`
      - `Waveder.cder_real`
      - `Waveder.from_binary()`
      - `Waveder.from_formatted()`
      - `Waveder.get_orbital_derivative_between_states()`
      - `Waveder.nbands`
      - `Waveder.nkpoints`
      - `Waveder.nspin`
    - `Xdatcar`
      - `Xdatcar.structures`
      - `Xdatcar.comment`
      - `Xdatcar.concatenate()`
      - `Xdatcar.get_str()`
      - `Xdatcar.natoms`
      - `Xdatcar.site_symbols`
      - `Xdatcar.write_file()`
    - `get_adjusted_fermi_level()`
    - `get_band_structure_from_vasp_multiple_branches()`
  - pymatgen.io.vasp.sets module
    - `BadInputSetWarning`
    - `CINEBSet`
    - `DictSet`
    - `MITMDSet`
      - `MITMDSet.CONFIG`
      - `MITMDSet.end_temp`
      - `MITMDSet.incar_updates`
      - `MITMDSet.kpoints_updates`
      - `MITMDSet.nsteps`
      - `MITMDSet.spin_polarized`
      - `MITMDSet.start_temp`
      - `MITMDSet.structure`
      - `MITMDSet.time_step`
    - `MITNEBSet`
    - `MITRelaxSet`
      - `MITRelaxSet.CONFIG`
    - `MP24RelaxSet`
      - `MP24RelaxSet.CONFIG`
      - `MP24RelaxSet.auto_ismear`
      - `MP24RelaxSet.auto_kspacing`
      - `MP24RelaxSet.dispersion`
      - `MP24RelaxSet.inherit_incar`
      - `MP24RelaxSet.kspacing_update`
      - `MP24RelaxSet.xc_functional`
    - `MP24StaticSet`
      - `MP24StaticSet.auto_kspacing`
      - `MP24StaticSet.incar_updates`
      - `MP24StaticSet.inherit_incar`
      - `MP24StaticSet.lcalcpol`
      - `MP24StaticSet.lepsilon`
    - `MPAbsorptionSet`
      - `MPAbsorptionSet.CONFIG`
      - `MPAbsorptionSet.SUPPORTED_MODES`
      - `MPAbsorptionSet.copy_wavecar`
      - `MPAbsorptionSet.force_gamma`
      - `MPAbsorptionSet.incar_updates`
      - `MPAbsorptionSet.inherit_incar`
      - `MPAbsorptionSet.kpoints_updates`
      - `MPAbsorptionSet.mode`
      - `MPAbsorptionSet.nbands`
      - `MPAbsorptionSet.nbands_factor`
      - `MPAbsorptionSet.nedos`
      - `MPAbsorptionSet.nkred`
      - `MPAbsorptionSet.reciprocal_density`
    - `MPHSEBSSet`
      - `MPHSEBSSet.CONFIG`
      - `MPHSEBSSet.added_kpoints`
      - `MPHSEBSSet.copy_chgcar`
      - `MPHSEBSSet.dedos`
      - `MPHSEBSSet.incar_updates`
      - `MPHSEBSSet.kpoints_line_density`
      - `MPHSEBSSet.kpoints_updates`
      - `MPHSEBSSet.mode`
      - `MPHSEBSSet.nbands_factor`
      - `MPHSEBSSet.optics`
      - `MPHSEBSSet.reciprocal_density`
      - `MPHSEBSSet.zero_weighted_reciprocal_density`
    - `MPHSERelaxSet`
      - `MPHSERelaxSet.CONFIG`
      - `MPHSERelaxSet.incar_updates`
      - `MPHSERelaxSet.vdw`
    - `MPMDSet`
      - `MPMDSet.CONFIG`
      - `MPMDSet.end_temp`
      - `MPMDSet.incar_updates`
      - `MPMDSet.kpoints_updates`
      - `MPMDSet.nsteps`
      - `MPMDSet.spin_polarized`
      - `MPMDSet.start_temp`
      - `MPMDSet.time_step`
    - `MPMetalRelaxSet`
      - `MPMetalRelaxSet.CONFIG`
      - `MPMetalRelaxSet.incar_updates`
      - `MPMetalRelaxSet.kpoints_updates`
    - `MPNMRSet`
      - `MPNMRSet.CONFIG`
      - `MPNMRSet.incar_updates`
      - `MPNMRSet.inherit_incar`
      - `MPNMRSet.isotopes`
      - `MPNMRSet.kpoints_updates`
      - `MPNMRSet.mode`
      - `MPNMRSet.reciprocal_density`
      - `MPNMRSet.small_gap_multiply`
    - `MPNonSCFSet`
      - `MPNonSCFSet.CONFIG`
      - `MPNonSCFSet.copy_chgcar`
      - `MPNonSCFSet.dedos`
      - `MPNonSCFSet.incar_updates`
      - `MPNonSCFSet.inherit_incar`
      - `MPNonSCFSet.kpoints_line_density`
      - `MPNonSCFSet.kpoints_updates`
      - `MPNonSCFSet.mode`
      - `MPNonSCFSet.nbands_factor`
      - `MPNonSCFSet.nedos`
      - `MPNonSCFSet.optics`
      - `MPNonSCFSet.reciprocal_density`
      - `MPNonSCFSet.small_gap_multiply`
    - `MPRelaxSet`
      - `MPRelaxSet.CONFIG`
    - `MPSOCSet`
      - `MPSOCSet.CONFIG`
      - `MPSOCSet.copy_chgcar`
      - `MPSOCSet.incar_updates`
      - `MPSOCSet.inherit_incar`
      - `MPSOCSet.kpoints_updates`
      - `MPSOCSet.lcalcpol`
      - `MPSOCSet.lepsilon`
      - `MPSOCSet.magmom`
      - `MPSOCSet.nbands_factor`
      - `MPSOCSet.reciprocal_density`
      - `MPSOCSet.saxis`
      - `MPSOCSet.small_gap_multiply`
      - `MPSOCSet.structure`
    - `MPScanRelaxSet`
      - `MPScanRelaxSet.CONFIG`
      - `MPScanRelaxSet.auto_ismear`
      - `MPScanRelaxSet.auto_kspacing`
      - `MPScanRelaxSet.bandgap`
      - `MPScanRelaxSet.user_potcar_functional`
    - `MPScanStaticSet`
      - `MPScanStaticSet.auto_kspacing`
      - `MPScanStaticSet.incar_updates`
      - `MPScanStaticSet.inherit_incar`
      - `MPScanStaticSet.lcalcpol`
      - `MPScanStaticSet.lepsilon`
    - `MPStaticSet`
      - `MPStaticSet.CONFIG`
      - `MPStaticSet.incar_updates`
      - `MPStaticSet.inherit_incar`
      - `MPStaticSet.kpoints_updates`
      - `MPStaticSet.lcalcpol`
      - `MPStaticSet.lepsilon`
      - `MPStaticSet.reciprocal_density`
      - `MPStaticSet.small_gap_multiply`
    - `MVLElasticSet`
      - `MVLElasticSet.CONFIG`
      - `MVLElasticSet.incar_updates`
      - `MVLElasticSet.potim`
    - `MVLGBSet`
      - `MVLGBSet.CONFIG`
      - `MVLGBSet.incar_updates`
      - `MVLGBSet.is_metal`
      - `MVLGBSet.k_product`
      - `MVLGBSet.kpoints_updates`
      - `MVLGBSet.slab_mode`
    - `MVLGWSet`
      - `MVLGWSet.CONFIG`
      - `MVLGWSet.SUPPORTED_MODES`
      - `MVLGWSet.copy_wavecar`
      - `MVLGWSet.force_gamma`
      - `MVLGWSet.from_prev_calc()`
      - `MVLGWSet.incar_updates`
      - `MVLGWSet.inherit_incar`
      - `MVLGWSet.kpoints_updates`
      - `MVLGWSet.mode`
      - `MVLGWSet.nbands`
      - `MVLGWSet.nbands_factor`
      - `MVLGWSet.ncores`
      - `MVLGWSet.reciprocal_density`
    - `MVLNPTMDSet`
      - `MVLNPTMDSet.CONFIG`
      - `MVLNPTMDSet.end_temp`
      - `MVLNPTMDSet.incar_updates`
      - `MVLNPTMDSet.kpoints_updates`
      - `MVLNPTMDSet.nsteps`
      - `MVLNPTMDSet.spin_polarized`
      - `MVLNPTMDSet.start_temp`
      - `MVLNPTMDSet.time_step`
    - `MVLRelax52Set`
      - `MVLRelax52Set.CONFIG`
      - `MVLRelax52Set.user_potcar_functional`
    - `MVLScanRelaxSet`
      - `MVLScanRelaxSet.CONFIG`
      - `MVLScanRelaxSet.incar_updates`
      - `MVLScanRelaxSet.user_potcar_functional`
    - `MVLSlabSet`
      - `MVLSlabSet.CONFIG`
      - `MVLSlabSet.as_dict()`
      - `MVLSlabSet.auto_dipole`
      - `MVLSlabSet.bulk`
      - `MVLSlabSet.incar_updates`
      - `MVLSlabSet.k_product`
      - `MVLSlabSet.kpoints_updates`
      - `MVLSlabSet.set_mix`
    - `MatPESStaticSet`
      - `MatPESStaticSet.CONFIG`
      - `MatPESStaticSet.inherit_incar`
      - `MatPESStaticSet.prev_incar`
      - `MatPESStaticSet.xc_functional`
    - `NEBSet`
      - `NEBSet.poscar`
      - `NEBSet.poscars`
      - `NEBSet.write_input()`
    - `VaspInputGenerator`
    - `VaspInputSet`
      - `VaspInputSet.as_dict()`
      - `VaspInputSet.auto_ismear`
      - `VaspInputSet.auto_ispin`
      - `VaspInputSet.auto_kspacing`
      - `VaspInputSet.auto_lreal`
      - `VaspInputSet.auto_metal_kpoints`
      - `VaspInputSet.bandgap`
      - `VaspInputSet.bandgap_tol`
      - `VaspInputSet.calculate_ng()`
      - `VaspInputSet.config_dict`
      - `VaspInputSet.constrain_total_magmom`
      - `VaspInputSet.estimate_nbands()`
      - `VaspInputSet.files_to_transfer`
      - `VaspInputSet.force_gamma`
      - `VaspInputSet.from_directory()`
      - `VaspInputSet.from_prev_calc()`
      - `VaspInputSet.get_input_set()`
      - `VaspInputSet.get_vasp_input()`
      - `VaspInputSet.incar`
      - `VaspInputSet.incar_updates`
      - `VaspInputSet.inherit_incar`
      - `VaspInputSet.international_monoclinic`
      - `VaspInputSet.kpoints`
      - `VaspInputSet.kpoints_updates`
      - `VaspInputSet.nelect`
      - `VaspInputSet.override_from_prev_calc()`
      - `VaspInputSet.poscar`
      - `VaspInputSet.potcar`
      - `VaspInputSet.potcar_functional`
      - `VaspInputSet.potcar_symbols`
      - `VaspInputSet.prev_incar`
      - `VaspInputSet.prev_kpoints`
      - `VaspInputSet.reduce_structure`
      - `VaspInputSet.sort_structure`
      - `VaspInputSet.standardize`
      - `VaspInputSet.structure`
      - `VaspInputSet.sym_prec`
      - `VaspInputSet.use_structure_charge`
      - `VaspInputSet.user_incar_settings`
      - `VaspInputSet.user_kpoints_settings`
      - `VaspInputSet.user_potcar_functional`
      - `VaspInputSet.user_potcar_settings`
      - `VaspInputSet.validate_magmom`
      - `VaspInputSet.vdw`
      - `VaspInputSet.write_input()`
    - `auto_kspacing()`
    - `batch_write_input()`
    - `get_structure_from_prev_run()`
    - `get_valid_magmom_struct()`
    - `get_vasprun_outcar()`
    - `next_num_with_prime_factors()`
    - `primes_less_than()`
    - `standardize_structure()`
- pymatgen.io.xtb package
  - Submodules
  - pymatgen.io.xtb.inputs module
    - `CRESTInput`
      - `CRESTInput.constrains_template()`
      - `CRESTInput.write_input_files()`
  - pymatgen.io.xtb.outputs module
    - `CRESTOutput`

## Submodules

## pymatgen.io.adf module

IO for ADF files.

class AdfInput(task)

  Bases: `object`

  A basic ADF input file writer.

  Initialization method.

  Parameters:

    task (AdfTask) – An ADF task.

  write_file(molecule, inp_file)

    Write an ADF input file.

    Parameters:

      - molecule (Molecule) – The molecule for this task.

      - inpfile (str) – The name where the input file will be saved.

exception AdfInputError

  Bases: `Exception`

  The default error class for ADF.

class AdfKey(name, options=None, subkeys=None)

  Bases: `MSONable`

  The basic input unit for ADF. A key is a string of characters that does not contain a delimiter (blank, comma or equal sign). A key may have multiple subkeys and a set of options.

  Initialization method.

  Parameters:

    - name (str) – The name of this key.

    - options – Sized The options for this key. Each element can be a primitive object or a tuple/list with two elements: the first is the name and the second is a primitive object.

    - subkeys (Sized) – The subkeys for this key.

  Raises:

    ValueError – If elements in `subkeys` are not `AdfKey` objects.

  add_option(option)

    Add a new option to this key.

    Parameters:

      option – Sized or str or int or float A new option to add. This must have the same format with existing options.

    Raises:

      TypeError – If the format of the given `option` is different.

  add_subkey(subkey)

    Add a new subkey to this key.

    Parameters:

      subkey (AdfKey) – A new subkey.

    Notes

    Duplicate check will not be performed if this is an ‘Atoms’ block.

  as_dict()

    A JSON-serializable dict representation of self.

  block_keys = ('SCF', 'GEOMETRY', 'XC', 'UNITS', 'ATOMS', 'CHARGE', 'BASIS', 'SYMMETRY', 'RELATIVISTIC', 'OCCUPATIONS', 'SAVE', 'A1FIT', 'INTEGRATION', 'UNRESTRICTED', 'ZLMFIT', 'TITLE', 'EXACTDENSITY', 'TOTALENERGY', 'ANALYTICALFREQ')
  classmethod from_dict(dct: dict) → Self

    Construct a MSONable AdfKey object from the JSON dict.

    Parameters:

      dct (dict) – A dict of saved attributes.

    Returns:

      An AdfKey object recovered from the JSON dict.

    Return type:

      AdfKey

  classmethod from_str(string: str) → Self

    Construct an AdfKey object from the string.

    Parameters:

      string – str

    Returns:

      An AdfKey object recovered from the string.

    Raises:

      ValueError – Currently nested subkeys are not supported. If `subend` was found a ValueError would be raised.

    Notes

    Only the first block key will be returned.

  has_option(option: str) → bool
    Parameters:

      option (str) – The option.

    Returns:

      True if this AdfKey has the given option.

    Return type:

      bool

  has_subkey(subkey: str | AdfKey) → bool
    Parameters:

      subkey (str | AdfKey) – A key name or AdfKey object.

    Returns:

      True if this key contains the given subkey.

    Return type:

      bool

  is_block_key() → bool

    Return True if this key is a block key.

  property key: str

    The name of this key. If this is a block key, the name will be converted to upper cases.

  remove_option(option: str | int) → None

    Remove an option.

    Parameters:

      option (str | int) – The name or index of the option to remove.

    Raises:

      TypeError – If the option has a wrong type.

  remove_subkey(subkey)

    Remove the given subkey, if existed, from this AdfKey.

    Parameters:

      subkey (str or AdfKey) – The subkey to remove.

  sub_keys = ('AtomDepQuality',)

class AdfOutput(filename)

  Bases: `object`

  A basic ADF output file parser.

  is_failed

    Whether the ADF job is failed.

    Type:

      bool

  is_internal_crash

    Whether the job crashed. Please read ‘TAPE13’ of the ADF manual for more detail.

    Type:

      bool

  error

    The error description.

    Type:

      str

  run_type

    The RunType of this ADF job. Possible options are: ‘SinglePoint’, ‘GeometryOptimization’, ‘AnalyticalFreq’ and ‘NUmericalFreq’.

    Type:

      str

  final_energy

    The final molecule energy (a.u).

    Type:

      float

  final_structure

    The final structure of the molecule.

    Type:

      GMolecule

  energies

    The energy of each cycle.

    Type:

      Sized

  structures

    The structure of each cycle If geometry optimization is performed.

    Type:

      Sized

  frequencies

    The frequencies of the molecule.

    Type:

      array_like

  normal_modes

    The normal modes of the molecule.

    Type:

      array_like

  freq_type

    Either ‘Analytical’ or ‘Numerical’.

    Type:

      syr

  Initialization method.

  Parameters:

    filename (str) – The ADF output file to parse.

exception AdfOutputError

  Bases: `Exception`

  The default error class for errors raised by `AdfOutput`.

class AdfTask(operation='energy', basis_set=None, xc=None, title='ADF_RUN', units=None, geo_subkeys=None, scf=None, other_directives=None)

  Bases: `MSONable`

  Basic task for ADF. All settings in this class are independent of molecules.

  Notes

  Unlike other quantum chemistry packages (NWChem, Gaussian, …), ADF does not support calculating force/gradient.

  Initialization method.

  Parameters:

    - operation (str) – The target operation.

    - basis_set (AdfKey) – The basis set definitions for this task. Defaults to ‘DZ/Large’.

    - xc (AdfKey) – The exchange-correlation functionals. Defaults to PBE.

    - title (str) – The title of this ADF task.

    - units (AdfKey) – The units. Defaults to Angstroms/Degree.

    - geo_subkeys (Sized) – The subkeys for the block key ‘GEOMETRY’.

    - scf (AdfKey) – The scf options.

    - other_directives (Sized) – User-defined directives.

  as_dict()

    A JSON-serializable dict representation of self.

  classmethod from_dict(dct: dict) → Self

    Construct a MSONable AdfTask object from the JSON dict.

    Parameters:

      dct – A dict of saved attributes.

    Returns:

      An AdfTask object recovered from the JSON dict `d`.

  static get_default_basis_set()

    Get Default basis set.

  static get_default_geo()

    Get ADFKey using default geometry.

  static get_default_scf()

    Get ADF using default SCF.

  static get_default_units()

    Get Default units.

  static get_default_xc()

    Get ADFKey using default XC.

  operations: ClassVar[dict[str, str]] = {'energy': 'Evaluate the single point energy.', 'freq': 'Same as frequencies.', 'frequencies': 'Compute second derivatives and print out an analysis of molecular vibrations.', 'numerical_frequencies': 'Compute molecular frequencies using numerical method.', 'optimize': 'Minimize the energy by varying the molecular structure.'}

## pymatgen.io.ase module

This module provides conversion between the Atomic Simulation Environment (ASE) Atoms object and pymatgen Structure objects.

class AseAtomsAdaptor

  Bases: `object`

  Adaptor serves as a bridge between ASE Atoms and pymatgen objects.

  static get_atoms(structure: SiteCollection, msonable: Literal[True] = True, **kwargs: Any) → MSONAtoms
  static get_atoms(structure: SiteCollection, msonable: Literal[False], **kwargs: Any) → Atoms
  static get_atoms(structure: SiteCollection, msonable: bool = True, **kwargs: Any) → MSONAtoms | Atoms

    Get ASE Atoms object from pymatgen structure or molecule.

    Parameters:

      - structure (SiteCollection) – pymatgen Structure or Molecule

      - msonable (bool) – Whether to return an MSONAtoms object, which is MSONable.

      - **kwargs – passed to the ASE Atoms constructor

    Returns:

      ASE Atoms object

    Return type:

      Atoms

  static get_molecule(atoms: Atoms, cls: type[IMoleculeT] = <class 'pymatgen.core.structure.Molecule'>, **cls_kwargs) → IMoleculeT

    Get pymatgen molecule from ASE Atoms.

    Parameters:

      - atoms (Atom) – ASE Atoms object

      - cls – The molecule class to instantiate (defaults to pymatgen Molecule)

      - **cls_kwargs – Any additional kwargs to pass to the cls constructor

    Returns:

      Equivalent pymatgen (I)Molecule

    Return type:

      MolT

  static get_structure(atoms: Atoms, cls: type[StructOrMolT] = <class 'pymatgen.core.structure.Structure'>, **cls_kwargs) → StructOrMolT

    Get pymatgen structure from ASE Atoms.

    Parameters:

      - atoms (Atoms) – ASE Atoms object

      - cls – The structure class to instantiate (defaults to pymatgen Structure)

      - **cls_kwargs – Any additional kwargs to pass to the cls constructor

    Returns:

      Equivalent pymatgen (I)Structure/(I)Molecule

    Return type:

      (I)Structure/(I)Molecule

class Atoms(*args, **kwargs)

  Bases: `object`

class MSONAtoms(*args, **kwargs)

  Bases: `Atoms`, `MSONable`

  A custom subclass of ASE Atoms that is MSONable, including .as_dict() and .from_dict() methods.

  Initialize the MSONAtoms object.

  Parameters:

    - *args – Arguments to pass to the ASE Atoms constructor.

    - **kwargs – Keyword arguments to pass to the ASE Atoms constructor.

  as_dict() → dict[str, Any]

    A JSON serializable dict representation of an object.

  classmethod from_dict(dct: dict[str, Any]) → Self
    Parameters:

      d – Dict representation.

    Returns:

      MSONable class.

## pymatgen.io.atat module

Classes for reading/writing mcsqs files following the rndstr.in format.

class Mcsqs(structure: Structure | IStructure)

  Bases: `object`

  Handle input/output for the crystal definition format used by mcsqs and other ATAT codes.

  Parameters:

    Structure – input Structure.

  static structure_from_str(data)

    Parses a rndstr.in, lat.in or bestsqs.out file into pymatgen’s Structure format.

    Parameters:

      data – contents of a rndstr.in, lat.in or bestsqs.out file

    Returns:

      Structure object

  to_str()
    Returns:

      a structure in mcsqs rndstr.in format.

    Return type:

      str

## pymatgen.io.babel module

OpenBabel interface module, which opens up access to the hundreds of file formats supported by OpenBabel. Requires openbabel with python bindings to be installed. Please consult the openbabel docs https://openbabel.org.

class BabelMolAdaptor(mol: Molecule | openbabel.OBMol | pybel.Molecule)

  Bases: `object`

  Adaptor serves as a bridge between OpenBabel’s Molecule and pymatgen’s Molecule.

  Initialize with pymatgen Molecule or OpenBabel’s OBMol.

  Parameters:

    mol – pymatgen’s Molecule/IMolecule or OpenBabel OBMol

  add_hydrogen() → None

    Add hydrogens (make all hydrogen explicit).

  confab_conformers(forcefield: str = 'mmff94', freeze_atoms: list[int] | None = None, rmsd_cutoff: float = 0.5, energy_cutoff: float = 50.0, conf_cutoff: int = 100000, verbose: bool = False) → list[Molecule]

    Conformer generation based on Confab to generate all diverse low-energy conformers for molecules. This is different from rotor_conformer or gen3d_conformer as it aims to not simply to find a low energy conformation but to generate several different conformations.

    Parameters:

      - forcefield (str) – Default is mmff94. Options are ‘gaff’, ‘ghemical’, ‘mmff94’, ‘mmff94s’, and ‘uff’.

      - freeze_atoms ([int]) – index of atoms to be freezed when performing conformer search, default is None.

      - rmsd_cutoff (float) – rmsd_cufoff, default is 0.5 Angstrom.

      - energy_cutoff (float) – energy_cutoff, default is 50.0 kcal/mol.

      - conf_cutoff (int) – max number of conformers to test, default is 1 million.

      - verbose (bool) – whether to display information on torsions found, default is False.

    Returns:

      Molecule objects for generated conformers.

    Return type:

      list[Molecule]

  classmethod from_file(filename: str, file_format: str = 'xyz', return_all_molecules: bool = False) → Self | list[Self]

    Uses OpenBabel to read a molecule from a file in all supported formats.

    Parameters:

      - filename – Filename of input file

      - file_format – String specifying any OpenBabel supported formats.

      - return_all_molecules – If `True`, will return a list of `BabelMolAdaptor` instances, one for each molecule found in the file. If `False`, will return only the first molecule.

    Returns:

      BabelMolAdaptor object or list thereof

  classmethod from_molecule_graph(mol: MoleculeGraph) → Self

    Read a molecule from a pymatgen MoleculeGraph object.

    Parameters:

      mol – pymatgen MoleculeGraph object.

    Returns:

      BabelMolAdaptor object

  classmethod from_str(string_data: str, file_format: str = 'xyz') → Self

    Uses OpenBabel to read a molecule from a string in all supported formats.

    Parameters:

      - string_data – String containing molecule data.

      - file_format – String specifying any OpenBabel supported formats.

    Returns:

      BabelMolAdaptor object

  gen3d_conformer() → None

    A combined method to first generate 3D structures from 0D or 2D structures and then find the minimum energy conformer:

    1. Use OBBuilder to create a 3D structure using rules and ring templates

    2. Do 250 steps of a steepest descent geometry optimization with the MMFF94 forcefield

    3. Do 200 iterations of a Weighted Rotor conformational search (optimizing each conformer with 25 steps of a steepest descent)

    4. Do 250 steps of a conjugate gradient geometry optimization.

    Warning from openbabel docs: For many applications where 100s if not 1000s of molecules need to be processed, gen3d is rather SLOW. Sometimes this function can cause a segmentation fault. A future version of Open Babel will provide options for slow/medium/fast 3D structure generation which will involve different compromises between speed and finding the global energy minimum.

  localopt(forcefield: str = 'mmff94', steps: int = 500) → None

    A wrapper to pybel’s localopt method to optimize a Molecule.

    Parameters:

      - forcefield – Default is mmff94. Options are ‘gaff’, ‘ghemical’, ‘mmff94’, ‘mmff94s’, and ‘uff’.

      - steps – Default is 500.

  make3d(forcefield: str = 'mmff94', steps: int = 50) → None

    A wrapper to pybel’s make3D method generate a 3D structure from a 2D or 0D structure. The 3D structure is made very quickly using a combination of rules (e.g. sp3 atoms should have four bonds arranged in a tetrahedron) and ring templates (e.g. cyclohexane is shaped like a chair). Once 3D coordinates are generated, hydrogens are added and a quick local optimization is carried out as default.

    The generated 3D structure can have clashes or have high energy structures due to some strain. Please consider to use the conformer search or geometry optimization to further optimize the structure.

    Parameters:

      - forcefield – Default is mmff94. Options are ‘gaff’, ‘ghemical’, ‘mmff94’, ‘mmff94s’, and ‘uff’.

      - steps – Default is 50.

  property openbabel_mol

    OpenBabel’s OBMol.

  property pybel_mol: Molecule

    Pybel’s Molecule object.

  property pymatgen_mol: Molecule

    Pymatgen Molecule object.

  remove_bond(idx1: int, idx2: int) → None

    Remove a bond from an openbabel molecule.

    Parameters:

      - idx1 – The atom index of one of the atoms participating the in bond

      - idx2 – The atom index of the other atom participating in the bond

  rotor_conformer(*rotor_args, algo: str = 'WeightedRotorSearch', forcefield: str = 'mmff94') → None

    Conformer search based on several Rotor Search algorithms of openbabel. If the input molecule is not 3D, make3d will be called (generate 3D structure, add hydrogen, a quick localopt). All hydrogen atoms need to be made explicit.

    Parameters:

      - rotor_args – pass args to Rotor Search in openbabel. for “WeightedRotorSearch”: (conformers, geomSteps, sampleRingBonds-default False) for “SystematicRotorSearch”: (geomSteps-default 2500, sampleRingBonds-default False) for “RandomRotorSearch”: (conformers, geomSteps-default 2500, sampleRingBonds-default False)

      - algo (str) – Default is “WeightedRotorSearch”. Options are “SystematicRotorSearch”, “RandomRotorSearch”, and “WeightedRotorSearch”.

      - forcefield (str) – Default is mmff94. Options are ‘gaff’, ‘ghemical’, ‘mmff94’, ‘mmff94s’, and ‘uff’.

  write_file(filename: str, file_format: str = 'xyz') → None

    Uses OpenBabel to output all supported formats.

    Parameters:

      - filename – Filename of file to output

      - file_format – String specifying any OpenBabel supported formats.

## pymatgen.io.cif module

Classes for Cif input and output from Structures.

class CifBlock(data: dict, loops: list[list[str]], header: str)

  Bases: `object`

  Object for storing CIF data. All data is stored in a single dictionary. Data inside loops are stored in lists in the data dictionary, and information on which keys are grouped together are stored in the loops attribute.

  Parameters:

    - data – dict of data to go into the CIF. Values should be convertible to string, or lists of these if the key is in a loop

    - loops – list of lists of keys, grouped by which loop they should appear in

    - header – name of the block (appears after the data_ on the first line).

  classmethod from_str(string: str) → Self

    Read CifBlock from string.

    Parameters:

      string – String representation.

    Returns:

      CifBlock

  max_len = 70

class CifFile(data: dict[str, CifBlock], orig_string: str | None = None, comment: str | None = None)

  Bases: `object`

  Read and parse CifBlocks from a .cif file or string.

  Parameters:

    - data (dict) – Of CifBlock objects.

    - orig_string (str) – The original CIF.

    - comment (str) – Comment.

  comment: str
  classmethod from_file(filename: PathLike) → Self

    Read CifFile from a filename.

    Parameters:

      filename – Filename

    Returns:

      CifFile

  classmethod from_str(string: str) → Self

    Read CifFile from a string.

    Parameters:

      string – String representation.

    Returns:

      CifFile

class CifParser(filename: PathLike | StringIO, occupancy_tolerance: float = 1.0, site_tolerance: float = 0.0001, frac_tolerance: float = 0.0001, check_cif: bool = True, comp_tol: float = 0.01)

  Bases: `object`

  CIF file parser. Attempt to fix CIFs that are out-of-spec, but will issue warnings if corrections applied. These are also stored in the CifParser’s warnings attribute. CIF file parser. Attempt to fix CIFs that are out-of-spec, but will issue warnings if corrections applied. These are also stored in the CifParser’s errors attribute.

  Parameters:

    - filename (PathLike) – CIF file, gzipped or bzipped CIF files are fine too.

    - occupancy_tolerance (float) – If total occupancy of a site is between 1 and occupancy_tolerance, it will be scaled down to 1.

    - site_tolerance (float) – This tolerance is used to determine if two sites are at the same position, in which case they will be combined to a single disordered site. Defaults to 1e-4.

    - frac_tolerance (float) – This tolerance is used to determine is a coordinate should be rounded to an ideal value. e.g. 0.6667 is rounded to 2/3. This is desired if symmetry operations are going to be applied. However, for very large CIF files, this may need to be set to 0.

    - check_cif (bool) – Whether to check that stoichiometry reported in CIF matches that of resulting Structure, and whether elements are missing. Defaults to True.

    - comp_tol (float) – Tolerance for how closely stoichiometries of CIF file and pymatgen should match. Defaults to 0.01. Context: Experimental CIF files often don’t report hydrogens positions due to being hard-to-locate with X-rays. pymatgen warns if the stoichiometry of the CIF file and the Structure don’t match to within comp_tol.

  as_dict() → dict

    MSONable dict.

  check(structure: Structure) → str | None

    Check whether a Structure created from CIF passes sanity checks.

    Checks:

      - Composition from CIF is valid

      - CIF composition contains only valid elements

      - CIF and structure contain the same elements (often hydrogens

          are omitted from CIFs, as their positions cannot be determined from X-ray diffraction, needs more difficult neutron diffraction)

      - CIF and structure have same relative stoichiometry. Thus

          if CIF reports stoichiometry LiFeO, and the structure has composition (LiFeO)4, this check passes.

    Parameters:

      structure (Structure) – Structure created from CIF.

    Returns:

      If any check fails, return a human-readable str for the

        reason (e.g., which elements are missing). None if all checks pass.

    Return type:

      str | None

  classmethod from_str(cif_string: str, *, occupancy_tolerance: float = 1.0, site_tolerance: float = 0.0001, frac_tolerance: float = 0.0001, check_cif: bool = True, comp_tol: float = 0.01) → Self

    Create a CifParser from a string.

    Parameters:

      cif_string (str) – String representation of a CIF.

    Returns:

      CifParser

  get_bibtex_string() → str

    Get BibTeX reference from CIF file.

    Returns:

      BibTeX string.

  get_lattice(data: CifBlock, length_strings=('a', 'b', 'c'), angle_strings=('alpha', 'beta', 'gamma'), lattice_type=None) → Lattice | None

    Generate the lattice from the provided lattice parameters. In the absence of all six lattice parameters, the crystal system and necessary parameters are parsed.

  static get_lattice_no_exception(data: CifBlock, length_strings: tuple[str, str, str] = ('a', 'b', 'c'), angle_strings: tuple[str, str, str] = ('alpha', 'beta', 'gamma'), lattice_type: str | None = None) → Lattice

    Convert a CifBlock to a pymatgen Lattice.

    Parameters:

      - data – a dictionary of the CIF file

      - length_strings – The strings that are used to identify the length parameters in the CIF file.

      - angle_strings – The strings that are used to identify the angles in the CIF file.

      - lattice_type (str) – The type of lattice.

    Returns:

      Lattice object

  get_magsymops(data: CifBlock) → list[MagSymmOp]

    Equivalent to get_symops except for magnetic symmetry groups. Separate function since additional operation for time reversal symmetry (which changes magnetic moments on sites) needs to be returned.

  get_structures(*args, **kwargs) → list[Structure]

    Deprecated, use parse_structures instead. Only difference between these two methods is the default primitive=False in parse_structures. So parse_structures(primitive=True) is equivalent to the default behaviour of get_structures().

  get_symops(data: CifBlock) → list[SymmOp]

    Get the symmetry operations, in order to generate symmetry equivalent positions. If no symops are present, the space group symbol is parsed, and symops are generated.

  property has_errors: bool

    Whether there are errors/warnings detected in CIF parsing.

  parse_structures(primitive: bool | None = None, symmetrized: bool = False, check_occu: bool = True, on_error: Literal['ignore', 'warn', 'raise'] = 'warn') → list[Structure]

    Return list of structures in CIF file.

    Parameters:

      - primitive (bool) – Whether to return primitive unit cells. Defaults to False. With magnetic CIF files, will return primitive magnetic cell which may be larger than nuclear primitive cell.

      - symmetrized (bool) – Whether to return a SymmetrizedStructure which will include the equivalent indices and symmetry operations used to create the Structure as provided by the CIF (if explicit symmetry operations are included in the CIF) or generated from information in the CIF (if only space group labels are provided). Note that currently Wyckoff labels and space group labels or numbers are not included in the generated SymmetrizedStructure, these will be notated as “Not Parsed” or -1 respectively.

      - check_occu (bool) – Whether to check site for unphysical occupancy > 1. Useful for experimental results in which occupancy was allowed to refine to unphysical values. Warning: unphysical occupancies are incompatible with many pymatgen features. Defaults to True.

      - on_error ("ignore" | "warn" | "raise") – What to do in case of KeyError or ValueError while parsing CIF file. Defaults to “warn”.

    Returns:

      All structures in CIF file.

    Return type:

      list[Structure]

class CifWriter(struct: Structure | IStructure, symprec: float | None = None, write_magmoms: bool = False, significant_figures: int = 8, angle_tolerance: float = 5, refine_struct: bool = True, write_site_properties: bool = False)

  Bases: `object`

  A wrapper around CifFile to write CIF files from pymatgen Structure.

  Parameters:

    - struct (Structure) – structure to write.

    - symprec (float) – If not none, finds the symmetry of the structure and writes the CIF with symmetry information. Passes symprec to the SpacegroupAnalyzer. See also refine_struct.

    - write_magmoms (bool) – If True, will write magCIF file. Incompatible with symprec

    - significant_figures (int) – Specifies precision for formatting of floats. Defaults to 8.

    - angle_tolerance (float) – Angle tolerance for symmetry finding. Passes angle_tolerance to the SpacegroupAnalyzer. Used only if symprec is not None.

    - refine_struct – Used only if symprec is not None. If True, get_refined_structure is invoked to convert input structure from primitive to conventional.

    - write_site_properties (bool) – Whether to write the Structure.site_properties to the CIF as _atom_site_{property name}. Defaults to False.

  property cif_file: CifFile

    CifFile associated with the CifWriter.

  write_file(filename: PathLike, mode: Literal['wt', 'at'] = 'wt') → None

    Write the CIF file.

str2float(text: str) → float

  Remove uncertainty brackets from strings and return the float.

## pymatgen.io.common module

Module for defining common data used and produced by atomistic simulation packages.

class PMGDir(dirname: PathLike)

  Bases: `Mapping`

  User-friendly class to access all files in a directory as pymatgen objects in a dict. For now, only VASP files are implemented but there is no reason why this cannot be extended to other types of files. Note that the files are lazily parsed to minimize initialization costs since not all files will be needed by all users.

  Example:

  ``python pmg_dict = PMGDir(".") print(pmg_dict["INCAR"]["NELM"]) print(pmg_dict["vasprun.xml"].parameters) ``

  Parameters:

    dirname – The directory containing the VASP calculation as a string or Path.

  FILE_MAPPINGS: ClassVar[dict[str, str]] = {'CHGCAR': 'pymatgen.io.vasp.Chgcar', 'CONTCAR': 'pymatgen.io.vasp.Poscar', 'DYNMAT': 'pymatgen.io.vasp.Dynmat', 'EIGENVAL': 'pymatgen.io.vasp.Eigenval', 'ELFCAR': 'pymatgen.io.vasp.Elfcar', 'IBZKPT': 'pymatgen.io.vasp.Kpoints', 'INCAR': 'pymatgen.io.vasp.Incar', 'KPOINTS': 'pymatgen.io.vasp.Kpoints', 'LOCPOT': 'pymatgen.io.vasp.Locpot', 'OSZICAR': 'pymatgen.io.vasp.Oszicar', 'OUTCAR': 'pymatgen.io.vasp.Outcar', 'POSCAR': 'pymatgen.io.vasp.Poscar', 'POTCAR': 'pymatgen.io.vasp.Potcar', 'PROCAR': 'pymatgen.io.vasp.Procar', 'WAVECAR': 'pymatgen.io.vasp.Wavecar', 'WAVEDER': 'pymatgen.io.vasp.Waveder', 'WSWQ': 'pymatgen.io.vasp.WSWQ', 'XDATCAR': 'pymatgen.io.vasp.Xdatcar', 'vasprun': 'pymatgen.io.vasp.Vasprun'}
  get_files_by_name(name: str) → dict[str, Any]

    Returns all files with a given name. E.g., if you want all the OUTCAR files, set name=”OUTCAR”.

    Returns:

      object from PMGDir[filename]}

    Return type:

      {filename

  reset() → None

    Reset all loaded files and recheck the directory for files. Use this when the contents of the directory has changed.

class VolumetricData(structure: Structure | IStructure, data: dict[str, NDArray], distance_matrix: dict | None = None, data_aug: dict[str, NDArray] | None = None)

  Bases: `MSONable`

  A representation of volumetric data commonly used in atomistic simulation outputs, such as LOCPOT/CHGCAR files from VASP or cube files from other codes.

  structure

    The crystal structure associated with the volumetric data. Represents the lattice and atomic coordinates using the Structure class.

    Type:

      Structure

  is_spin_polarized

    Indicates if the simulation is spin-polarized. True for spin-polarized data (contains both total and spin-difference densities), False otherwise.

    Type:

      bool

  dim

    The dimensions of the 3D volumetric grid along each axis in the format (nx, ny, nz), where nx, ny, and nz represent the number of grid points in the x, y, and z directions, respectively.

    Type:

      tuple[int, int, int]

  data

    A dictionary containing the volumetric data. Keys include: - “total”: A 3D NumPy array representing the total spin density. - “diff” (optional): A 3D NumPy array representing the spin-difference

    > density (spin up - spin down). Typically present in spin-polarized calculations.

    Type:

      dict[str, np.ndarray]

  ngridpts

    The total number of grid points in the volumetric data, calculated as nx * ny * nz using the grid dimensions.

    Type:

      int

  Typically, this constructor is not used directly and the static from_file constructor is used. This constructor is designed to allow summation and other operations between VolumetricData objects.

  Parameters:

    - structure (Structure) – associated with the volumetric data

    - data (dict[str, NDArray]) – Actual volumetric data.

    - distance_matrix (NDArray) – A pre-computed distance matrix if available. Useful so pass distance_matrices between sums, short-circuiting an otherwise expensive operation.

    - data_aug (NDArray) – Any extra information associated with volumetric data (typically augmentation charges)

  copy() → Self

    Make a copy of VolumetricData object.

  data: dict[str, NDArray]
  classmethod from_cube(filename: PathLike) → Self

    Initialize the cube object and store the data as pymatgen objects.

    Parameters:

      filename (str) – of the cube to read

  classmethod from_hdf5(filename: PathLike, **kwargs) → Self

    Reads VolumetricData from HDF5 file.

    Parameters:

      filename – Filename

    Returns:

      VolumetricData

  get_average_along_axis(ind: int) → NDArray

    Get the averaged total of the volumetric data a certain axis direction. For example, useful for visualizing Hartree Potentials from a LOCPOT file.

    Parameters:

      ind (int) – Index of axis.

    Returns:

      Average total along axis

  get_axis_grid(ind: int) → list[float]

    Get the grid for a particular axis.

    Parameters:

      ind (int) – Axis index.

  get_integrated_diff(ind: int, radius: float, nbins: int = 1) → NDArray

    Get integrated difference of atom index ind up to radius. This can be an extremely computationally intensive process, depending on how many grid points are in the VolumetricData.

    Parameters:

      - ind (int) – Index of atom.

      - radius (float) – Radius of integration.

      - nbins (int) – Number of bins. Defaults to 1. This allows one to obtain the charge integration up to a list of the cumulative charge integration values for radii for [radius/nbins, 2 * radius/nbins, ….].

    Returns:

      Differential integrated charge as a np array of [[radius, value], …]. Format is for ease of plotting. e.g. plt.plot(data[:,0], data[:,1])

  is_soc: bool
  is_spin_polarized: bool
  linear_add(other, scale_factor: float = 1.0) → Self

    Method to do a linear sum of volumetric objects. Used by + and - operators as well. Returns a VolumetricData object containing the linear sum.

    Parameters:

      - other (VolumetricData) – Another VolumetricData object

      - scale_factor (float) – Factor to scale the other data by.

    Returns:

      VolumetricData corresponding to self + scale_factor * other.

  linear_slice(p1: ArrayLike, p2: ArrayLike, n=100)

    Get a linear slice of the volumetric data with n data points from point p1 to point p2, in the form of a list.

    Parameters:

      - p1 (list) – 3-element list containing fractional coordinates of the first point.

      - p2 (list) – 3-element list containing fractional coordinates of the second point.

      - n (int) – Number of data points to collect, defaults to 100.

    Returns:

      List of n data points (mostly interpolated) representing a linear slice of the data from point p1 to point p2.

  scale(factor: float) → None

    Scale the data in place by a factor.

  property spin_data: dict[Spin, NDArray]

    data}. Essentially, this provides the actual Spin.up and Spin.down data instead of the total and diff. Note that by definition, a non-spin-polarized run would have Spin.up data == Spin.down data.

    Type:

      The data decomposed into actual spin data as {spin

  to_cube(filename: PathLike, comment: str = '') → None

    Write the total volumetric data to a cube file format, which consists of two comment lines, a header section defining the structure IN BOHR, and the data.

    Parameters:

      - filename (str) – Name of the cube file to be written.

      - comment (str) – If provided, this will be added to the second comment line

  to_hdf5(filename: PathLike) → None

    Write the VolumetricData to a HDF5 format, which is a highly optimized format for reading storing large data. The mapping of the VolumetricData to this file format is as follows:

    VolumetricData.data -> f[“vdata”] VolumetricData.structure ->

    > f[“Z”]: Sequence of atomic numbers f[“fcoords”]: Fractional coords f[“lattice”]: Lattice in the pymatgen.core.Lattice matrix

    > > format

    > f.attrs[“structure_json”]: String of JSON representation

    Parameters:

      filename (str) – Filename to output to.

  value_at(x: float, y: float, z: float) → float

    Get a data value from self.data at a given point (x, y, z) in terms of fractional lattice parameters. Will be interpolated using a RegularGridInterpolator on self.data if (x, y, z) is not in the original set of data points.

    Parameters:

      - x (float) – Fraction of lattice vector a.

      - y (float) – Fraction of lattice vector b.

      - z (float) – Fraction of lattice vector c.

    Returns:

      Value from self.data (potentially interpolated) corresponding to the point (x, y, z).

## pymatgen.io.core module

This module defines the abstract interface for reading and writing calculation inputs in pymatgen. The interface comprises a 3-tiered hierarchy of classes.

1. An InputFile object represents the contents of a single input file, e.g. the INCAR. This class standardizes file read and write operations.

2. An InputSet is a dict-like container that maps filenames (keys) to file contents (either strings or InputFile objects). This class provides a standard write_input() method.

3. InputGenerator classes implement a get_input_set method that, when provided with a structure, return an InputSet object with all parameters set correctly. Calculation input files can be written to disk with the write_inputs method.

If you want to implement a new InputGenerator, please take note of the following:

1. You must implement a get_input_set method that returns an InputSet

2. All customization of calculation parameters should be done in the __init__ method of the InputGenerator. The idea is that the generator contains the “recipe”, but nothing that is specific to a particular system. get_input_set takes system-specific information (such as structure) and applies the recipe.

3. All InputGenerator must save all supplied args and kwargs as instance variables. e.g. self.my_arg = my_arg and self.kwargs = kwargs in the __init__. This ensures the as_dict and from_dict work correctly.

class InputFile

  Bases: `MSONable`

  Abstract base class to represent a single input file. Note that use of this class is optional; it is possible create an InputSet that does not rely on underlying InputFile objects.

  All InputFile classes must implement a get_str method, which is called by write_file.

  If InputFile classes implement an __init__ method, they must assign all arguments to __init__ as attributes.

  classmethod from_file(path: PathLike) → None

    Creates an InputFile object from a file.

    Parameters:

      path – Filename to read, including path.

    Returns:

      InputFile

  abstractmethod classmethod from_str(contents: str) → None

    Create an InputFile object from a string.

    Parameters:

      contents – The contents of the file as a single string

    Returns:

      InputFile

  abstractmethod get_str() → str

    Return a string representation of an entire input file.

  write_file(filename: PathLike) → None

    Write the input file.

    Parameters:

      filename – The filename to output to, including path.

class InputGenerator

  Bases: `MSONable`

  InputGenerator classes serve as generators for Input objects. They contain settings or sets of instructions for how to create Input from a set of coordinates or a previous calculation directory.

  abstractmethod get_input_set(*args, **kwargs)

    Generate an InputSet object. Typically the first argument to this method will be a Structure or other form of atomic coordinates.

class InputSet(inputs: dict[PathLike, str | InputFile] | None = None, **kwargs)

  Bases: `MSONable`, `MutableMapping`

  Abstract base class for all InputSet classes. InputSet are dict-like containers for all calculation input data.

  Since InputSet inherits dict, it can be instantiated in the same manner, or a custom __init__ can be provided. Either way, self should be populated with keys that are filenames to be written, and values that are InputFile objects or strings representing the entire contents of the file.

  All InputSet must implement from_directory. Implementing the validate method is optional.

  Instantiate an InputSet.

  Parameters:

    - inputs – The core mapping of filename: file contents that defines the InputSet data. This should be a dict where keys are filenames and values are InputFile objects or strings representing the entire contents of the file. If a value is not an InputFile object nor a str, but has a __str__ method, this str representation of the object will be written to the corresponding file. This mapping will become the .inputs attribute of the InputSet.

    - **kwargs – Any kwargs passed will be set as class attributes e.g. InputSet(inputs={}, foo=’bar’) will make InputSet.foo == ‘bar’.

  classmethod from_directory(directory: PathLike) → None

    Construct an InputSet from a directory of one or more files.

    Parameters:

      directory – Directory to read input files from

  validate() → bool

    A place to implement basic checks to verify the validity of an input set. Can be as simple or as complex as desired.

    Will raise a NotImplementedError unless overloaded by the inheriting class.

  write_input(directory: PathLike, make_dir: bool = True, overwrite: bool = True, zip_inputs: bool = False) → None

    Write inputs to one or more files.

    Parameters:

      - directory – Directory to write input files to

      - make_dir – Whether to create the directory if it does not already exist.

      - overwrite – Whether to overwrite an input file if it already exists.

      - generate_inputs (Additional kwargs are passed to)

      - zip_inputs – If True, inputs will be zipped into a file with the same name as the InputSet (e.g., InputSet.zip)

exception ParseError

  Bases: `SyntaxError`

  Indicate a problem was encountered during parsing due to unexpected formatting.

## pymatgen.io.cssr module

This module provides input and output from the CSSR file format.

class Cssr(structure: Structure | IStructure)

  Bases: `object`

  Basic object for working with Cssr file. Right now, only conversion from a Structure to a Cssr file is supported.

  Parameters:

    structure (Structure | IStructure) – A structure to create the Cssr object.

  classmethod from_file(filename: str | Path) → Self

    Reads a CSSR file to a Cssr object.

    Parameters:

      filename (str) – Filename to read from.

    Returns:

      Cssr object.

  classmethod from_str(string: str) → Self

    Reads a string representation to a Cssr object.

    Parameters:

      string (str) – A string representation of a CSSR.

    Returns:

      Cssr object.

  write_file(filename)

    Write out a CSSR file.

    Parameters:

      filename (str) – Filename to write to.

## pymatgen.io.fiesta module

This module implements input and output for Fiesta (http://perso.neel.cnrs.fr/xavier.blase/fiesta/index.html).

- Nwchem2Fiesta: create the input files needed for a Fiesta run

- FiestaRun: run gw_fiesta and bse_fiesta

- Localized BasisSetReader

class BSEOutput(filename)

  Bases: `object`

  A bse output file parser. The start…

  All energies are in eV.

  Parameters:

    filename – Filename to read.

class BasisSetReader(filename)

  Bases: `object`

  A basis set reader. Basis set are stored in data as a dict: :key l_zeta_ng for each nl orbitals which contain list of tuple (alpha, coef) for each of the ng gaussians in l_zeta orbital.

  Parameters:

    filename – Filename to read.

  infos_on_basis_set()
  set_n_nlmo()

    The number of nlm orbitals for the basis set.

class FiestaInput(mol, correlation_grid: dict[str, str] | None = None, exc_dft_option: dict[str, str] | None = None, cohsex_options: dict[str, str] | None = None, gw_options: dict[str, str] | None = None, bse_tddft_options: dict[str, str] | None = None)

  Bases: `MSONable`

  Input File for Fiesta called “cell.in” by default (mandatory in Fiesta for now).

  Parameters:

    - mol – pymatgen mol

    - correlation_grid – dict

    - Exc_DFT_option – dict

    - COHSEX_options – dict

    - GW_options – dict

    - BSE_TDDFT_options – dict.

  as_dict()

    MSONable dict.

  dump_bse_data_in_gw_run(BSE_dump=True)

    Set the “do_bse” variable to 1 or 0 in cell.in.

    Parameters:

      BSE_dump (bool) – Defaults to True.

  dump_tddft_data_in_gw_run(tddft_dump: bool = True)

    Set the do_tddft variable to 1 or 0 in cell.in.

    Parameters:

      tddft_dump (bool) – Defaults to True.

  classmethod from_dict(dct: dict) → Self
    Parameters:

      dct (dict) – Dict representation.

    Returns:

      FiestaInput

  classmethod from_file(filename: str | Path) → FiestaInput

    Read an Fiesta input from a file. Currently tested to work with files generated from this class itself.

    Parameters:

      filename – Filename to parse.

    Returns:

      FiestaInput object

  classmethod from_str(string_input: str) → FiestaInput

    Read an FiestaInput from a string. Currently tested to work with files generated from this class itself.

    Parameters:

      string_input – string_input to parse.

    Returns:

      FiestaInput object

  property infos_on_system

    Infos on initial parameters as in the log file of Fiesta.

  static make_full_bse_densities_folder(folder)

    Mkdir “FULL_BSE_Densities” folder (needed for bse run) in the desired folder.

  property molecule

    Molecule associated with this FiestaInput.

  set_auxiliary_basis_set(folder, auxiliary_folder, auxiliary_basis_set_type='aug_cc_pvtz')

    copy in the desired folder the needed auxiliary basis set “X2.ion” where X is a specie.

    Parameters:

      - auxiliary_folder – folder where the auxiliary basis sets are stored

      - auxiliary_basis_set_type – type of basis set (string to be found in the extension of the file name; must be in lower case). ex: C2.ion_aug_cc_pvtz_RI_Weigend find “aug_cc_pvtz”.

  set_bse_options(n_excitations=10, nit_bse=200)

    Set parameters in cell.in for a BSE computation.

    Parameters:

      - nv_bse – number of valence bands

      - nc_bse – number of conduction bands

      - n_excitations – number of excitations

      - nit_bse – number of iterations.

  set_gw_options(nv_band=10, nc_band=10, n_iteration=5, n_grid=6, dE_grid=0.5)

    Set parameters in cell.in for a GW computation.

    Parameters:

      - nv__band – number of valence bands to correct with GW

      - nc_band – number of conduction bands to correct with GW

      - n_iteration – number of iteration

      - dE_grid (n_grid and) – number of points and spacing in eV for correlation grid.

  write_file(filename: str | Path) → None

    Write FiestaInput to a file.

    Parameters:

      filename – Filename.

class FiestaOutput(filename)

  Bases: `object`

  A Fiesta output file parser.

  All energies are in eV.

  Parameters:

    filename – Filename to read.

class FiestaRun(folder: str | None = None, grid: tuple[int, int, int] = (2, 2, 2), log_file: str = 'log')

  Bases: `MSONable`

  To run FIESTA inside python:

    if grid is [x,x] then bse runs if grid is [x,x,y] the fiesta(gw) runs otherwise it breaks.

  Parameters:

    - folder – Folder to look for runs.

    - grid

    - log_file – logfile of Fiesta.

  as_dict()

    MSONable dict.

  bse_run()

    Perform BSE run.

  classmethod from_dict(dct: dict) → Self
    Parameters:

      dct (dict) – Dict representation.

    Returns:

      FiestaRun

  run()

    Perform FIESTA (gw) run.

class Nwchem2Fiesta(folder, filename='nwchem', log_file='log_n2f')

  Bases: `MSONable`

  To run NWCHEM2FIESTA inside python:

  If nwchem.nw is the input, nwchem.out the output, and structure.movecs the “movecs” file, the syntax to run NWCHEM2FIESTA is: NWCHEM2FIESTA nwchem.nw nwchem.nwout structure.movecs > log_n2f

  Parameters:

    - folder – where are stored the nwchem

    - filename – name of nwchem files read by NWCHEM2FIESTA (filename.nw, filename.nwout and filename.movecs)

    - logfile – logfile of NWCHEM2FIESTA.

  as_dict()

    MSONable dict.

  classmethod from_dict(dct: dict) → Self
    Parameters:

      dct (dict) – Dict representation.

    Returns:

      Nwchem2Fiesta

  run()

    Perform actual NWCHEM2FIESTA run.

## pymatgen.io.gaussian module

This module implements input and output processing from Gaussian.

class GaussianInput(mol, charge=None, spin_multiplicity=None, title=None, functional='HF', basis_set='6-31G(d)', route_parameters=None, input_parameters=None, link0_parameters=None, dieze_tag='#P', gen_basis=None)

  Bases: `object`

  A Gaussian input file.

  Parameters:

    - mol – Input molecule. It can either be a Molecule object, a string giving the geometry in a format supported by Gaussian, or `None`. If the molecule is `None`, you will need to use read it in from a checkpoint. Consider adding `CHK` to the `link0_parameters`.

    - charge – Charge of the molecule. If None, charge on molecule is used. Defaults to None. This allows the input file to be set a charge independently from the molecule itself. If `mol` is not a Molecule object, then you must specify a charge.

    - spin_multiplicity –

      Spin multiplicity of molecule. Defaults to None, which means that the spin multiplicity is set to 1 if the molecule has no unpaired electrons and to 2 if there are unpaired electrons. If `mol` is not a Molecule object, then you

      > must specify the multiplicity

    - title – Title for run. Defaults to formula of molecule if None.

    - functional – Functional for run.

    - basis_set – Basis set for run.

    - route_parameters – Additional route parameters as a dict. For example, {‘SP’:””, “SCF”:”Tight”}

    - input_parameters – Additional input parameters for run as a dict. Used for example, in PCM calculations. e.g. {“EPS”:12}

    - link0_parameters – Link0 parameters as a dict. e.g. {“%mem”: “1000MW”}

    - dieze_tag – # preceding the route line. E.g. “#p”

    - gen_basis – allows a user-specified basis set to be used in a Gaussian calculation. If this is not None, the attribute `basis_set` will be set to “Gen”.

  as_dict()

    MSONable dict.

  classmethod from_dict(dct: dict) → Self
    Parameters:

      dct – dict.

    Returns:

      GaussianInput

  classmethod from_file(filename: str | Path) → Self

    Creates GaussianInput from a file.

    Parameters:

      filename – Gaussian input filename

    Returns:

      GaussianInput object

  classmethod from_str(contents: str) → Self

    Creates GaussianInput from a string.

    Parameters:

      contents – String representing an Gaussian input file.

    Returns:

      GaussianInput object

  get_cart_coords() → str

    Return the Cartesian coordinates of the molecule.

  get_zmatrix()

    Get a z-matrix representation of the molecule.

  property molecule

    Molecule associated with this GaussianInput.

  to_str(cart_coords=False)

    Return GaussianInput string.

    Parameters:

      cart_coords (bool) – If True, return Cartesian coordinates instead of z-matrix. Defaults to False.

  write_file(filename, cart_coords=False)

    Write the input string into a file.

    Option: see __str__ method

class GaussianOutput(filename: PathLike)

  Bases: `object`

  Parser for Gaussian output files.

  Note: Still in early beta.

  structures

    All structures from the calculation in the standard orientation. If the symmetry is not considered, the standard orientation is not printed out and the input orientation is used instead. Check the standard_orientation attribute.

    Type:

      list[Structure]

  structures_input_orientation

    All structures from the calculation in the input orientation or the Z-matrix orientation (if an opt=z-matrix was requested).

    Type:

      list

  opt_structures

    All optimized structures from the calculation in the standard orientation, if the attribute ‘standard_orientation’ is True, otherwise in the input or the Z-matrix orientation.

    Type:

      list

  energies

    All energies from the calculation.

    Type:

      list

  eigenvalues

    List of eigenvalues for the last geometry.

    Type:

      list

  MO_coefficients

    Matrix of MO coefficients for the last geometry.

    Type:

      list

  cart_forces

    All Cartesian forces from the calculation.

    Type:

      list

  frequencies

    A list for each freq calculation and for each mode of a dict with {

    > > “frequency”: freq in cm-1, “symmetry”: symmetry tag “r_mass”: Reduce mass, “f_constant”: force constant, “IR_intensity”: IR Intensity, “mode”: normal mode

    > }

    The normal mode is a 1D vector of dx, dy dz of each atom.

    Type:

      list

  hessian

    Matrix of second derivatives of the energy with respect to cartesian coordinates in the input orientation frame. Need #P in the route section in order to be in the output.

    Type:

      ndarray

  properly_terminated

    True if run has properly terminated.

    Type:

      bool

  is_pcm

    True if run is a PCM run.

    Type:

      bool

  is_spin

    True if it is an unrestricted run.

    Type:

      bool

  stationary_type

    If it is a relaxation run, indicates whether it is a minimum (Minimum) or a saddle point (“Saddle”).

    Type:

      str

  corrections

    Thermochemical corrections if this run is a Freq run as a dict. Keys are “Zero-point”, “Thermal”, “Enthalpy” and “Gibbs Free Energy”.

    Type:

      dict

  functional

    Functional used in the run.

    Type:

      str

  basis_set

    Basis set used in the run.

    Type:

      str

  route

    Additional route parameters as a dict. For example, {‘SP’:””, “SCF”:”Tight”}.

    Type:

      dict

  dieze_tag

    # preceding the route line, e.g. “#P”.

    Type:

      str

  link0

    Link0 parameters as a dict. e.g. {“%mem”: “1000MW”}.

    Type:

      dict

  charge

    Charge for structure.

    Type:

      int

  spin_multiplicity

    Spin multiplicity for structure.

    Type:

      int

  num_basis_func

    Number of basis functions in the run.

    Type:

      int

  electrons

    Number of alpha and beta electrons as (N alpha, N beta).

    Type:

      tuple

  pcm

    PCM parameters and output if available.

    Type:

      dict

  errors

    Error if not properly terminated (list to be completed in error_defs).

    Type:

      list

  Mulliken_charges

    Mulliken atomic charges.

    Type:

      list

  eigenvectors

    Matrix of shape (num_basis_func, num_basis_func). Each column is an eigenvectors and contains AO coefficients of an MO. eigenvectors[Spin] = mat(num_basis_func, num_basis_func).

    Type:

      dict

  molecular_orbital

    MO development coefficients on AO in a more convenient array dict for each atom and basis set label. mo[Spin][OM j][atom i] = {AO_k: coeff, AO_k: coeff … }.

    Type:

      dict

  atom_basis_labels

    Labels of AO for each atoms. These labels are those used in the output of molecular orbital coefficients (POP=Full) and in the molecular_orbital array dict. atom_basis_labels[iatom] = [AO_k, AO_k, …].

    Type:

      list

  resumes

    List of gaussian data resume given at the end of the output file before the quotation. The resumes are given as string.

    Type:

      list

  title

    Title of the gaussian run.

    Type:

      str

  standard_orientation

    If True, the geometries stored in the structures are in the standard orientation. Else, the geometries are in the input orientation.

    Type:

      bool

  bond_orders

    Dict of bond order values read in the output file such as: {(0, 1): 0.8709, (1, 6): 1.234, …}. The keys are the atom indexes and the values are the Wiberg bond indexes that are printed using pop=NBOREAD and $nbo bndidx $end.

    Type:

      dict

  to_input()

    Return a GaussianInput object using the last geometry and the same calculation parameters.

  read_scan()

    Read a potential energy surface from a gaussian scan calculation.

  get_scan_plot()

    Get a matplotlib plot of the potential energy surface

  save_scan_plot()

    Save a matplotlib plot of the potential energy surface to a file

  Parameters:

    filename – Filename of Gaussian output file.

  as_dict()

    JSON-serializable dict representation.

  property final_energy

    Final energy in Gaussian output.

  property final_structure

    Final structure in Gaussian output.

  get_scan_plot(coords=None)

    Get a matplotlib plot of the potential energy surface.

    Parameters:

      coords – internal coordinate name to use as abscissa.

  get_spectre_plot(sigma=0.05, step=0.01)

    Get a matplotlib plot of the UV-visible xas. Transitions are plotted as vertical lines and as a sum of normal functions with sigma with. The broadening is applied in energy and the xas is plotted as a function of the wavelength.

    Parameters:

      - sigma – Full width at half maximum in eV for normal functions.

      - step – bin interval in eV

    Returns:

      {“energies”: values, “lambda”: values, “xas”: values}

        where values are lists of abscissa (energies, lambda) and the sum of gaussian functions (xas).

      A matplotlib plot.

    Return type:

      A dict

  read_excitation_energies()

    Read a excitation energies after a TD-DFT calculation.

    Returns:

      A list of tuple for each transition such as

        [(energie (eV), lambda (nm), oscillatory strength), … ]

    Return type:

      A list

  read_scan()

    Read a potential energy surface from a gaussian scan calculation.

    Returns:

      {“energies”: […], “coords”: {“d1”: […], “A2”, […], … }} “energies” are the energies of all points of the potential energy surface. “coords” are the internal coordinates used to compute the potential energy surface and the internal coordinates optimized, labelled by their name as defined in the calculation.

    Return type:

      dict[str, list]

  save_scan_plot(filename='scan.pdf', img_format='pdf', coords=None)

    Save matplotlib plot of the potential energy surface to a file.

    Parameters:

      - filename – Filename to write to.

      - img_format – Image format to use. Defaults to EPS.

      - coords – internal coordinate name to use as abcissa.

  save_spectre_plot(filename='spectre.pdf', img_format='pdf', sigma=0.05, step=0.01)

    Save matplotlib plot of the spectre to a file.

    Parameters:

      - filename – Filename to write to.

      - img_format – Image format to use. Defaults to EPS.

      - sigma – Full width at half maximum in eV for normal functions.

      - step – bin interval in eV

  to_input(mol=None, charge=None, spin_multiplicity=None, title=None, functional=None, basis_set=None, route_parameters=None, input_parameters=None, link0_parameters=None, dieze_tag=None, cart_coords=False)

    Create a new input object using by default the last geometry read in the output file and with the same calculation parameters. Arguments are the same as GaussianInput class.

    Returns:

      the gaussian input object

    Return type:

      GaussianInput

read_route_line(route)

  read route line in gaussian input/output and return functional basis_set and a dictionary of other route parameters.

  Parameters:

    route (str) – the route line

  Returns:

    the method (HF, PBE …) basis_set (str) : the basis set route (dict) : dictionary of parameters

  Return type:

    functional (str)

## pymatgen.io.icet module

class IcetSQS(structure: Structure | IStructure, scaling: int, instances: int | None, cluster_cutoffs: dict[int, float], sqs_method: str | None = None, sqs_kwargs: dict | None = None)

  Bases: `object`

  Interface to the Icet library of SQS structure generation tools.

  https://icet.materialsmodeling.org

  Instantiate an IcetSQS interface.

  Parameters:

    - structure (Structure) – disordered structure to compute SQS

    - scaling (int) – SQS supercell contains scaling * len(structure) sites

    - instances (int) – number of parallel SQS jobs to run

    - cluster_cutoffs (dict) – dict of cluster size (pairs, triplets, …) and the size of the cluster

  Kwargs:
    sqs_method (str or None): if a str, one of (“enumeration”, “monte_carlo”)

      If None, default to “enumeration” for a supercell of < 24 sites, and “monte carlo” otherwise.

    sqs_kwargs (dict): kwargs to pass to the icet SQS generators.

      See self.sqs_kwarg_names for possible options.

  enumerate_sqs_structures(cluster_space: _ClusterSpace | None = None) → list

    Generate an SQS by enumeration of all possible arrangements.

    Adapted from icet.tools.structure_generation.generate_sqs_by_enumeration to accommodate multiprocessing.

    Parameters:

      cluster_space (ClusterSpace) – ClusterSpace of the SQS search.

    Returns:

      dicts of the form: {

        > “structure”: SQS structure, “objective_function”: SQS objective function,

        }

    Return type:

      list

  get_icet_sqs_obj(material: Atoms | Structure, cluster_space: _ClusterSpace | None = None) → float

    Get the SQS objective function.

    Parameters:

      - material (pymatgen.Structure | ase.Atoms) – structure to compute SQS objective function for.

      - cluster_space (ClusterSpace) – ClusterSpace of the SQS search.

    Returns:

      the SQS objective function

    Return type:

      float

  monte_carlo_sqs_structures() → list

    Run self.instances Monte Carlo SQS search with Icet.

  run() → Sqs

    Run the SQS search with icet.

    Returns:

      pymatgen Sqs object

  sqs_kwarg_names: ClassVar[dict[str, tuple[str, ...]]] = {'enumeration': ('include_smaller_cells', 'pbc', 'optimality_weight', 'tol'), 'monte_carlo': ('include_smaller_cells', 'pbc', 'T_start', 'T_stop', 'n_steps', 'optimality_weight', 'random_seed', 'tol')}
  sqs_methods: tuple[str, ...] = ('enumeration', 'monte_carlo')

## pymatgen.io.jarvis module

This module provides conversion between the JARVIS Atoms object and pymatgen Structure objects.

class JarvisAtomsAdaptor

  Bases: `object`

  Adaptor serves as a bridge between JARVIS Atoms and pymatgen objects.

  static get_atoms(structure)

    Get JARVIS Atoms object from pymatgen structure.

    Parameters:

      structure – pymatgen Structure

    Returns:

      JARVIS Atoms object

  static get_structure(atoms)

    Get pymatgen structure from JARVIS Atoms.

    Parameters:

      atoms – JARVIS Atoms object

    Returns:

      Equivalent pymatgen Structure

## pymatgen.io.lmto module

Module for implementing a CTRL file object class for the Stuttgart LMTO-ASA code. It will primarily be used to generate a pymatgen Structure object in the pymatgen.electronic_structure.cohp.py module.

class LMTOCopl(filename='COPL', to_eV=False)

  Bases: `object`

  Read COPL files, which contain COHP data.

  cohp_data

    Contains the COHP data of the form: {bond: {“COHP”: {Spin.up: cohps, Spin.down:cohps},

    > “ICOHP”: {Spin.up: icohps, Spin.down: icohps}, “length”: bond length}

    Type:

      dict

  efermi

    The Fermi energy in Ry or eV.

    Type:

      float

  energies

    Sequence of energies in Ry or eV.

    Type:

      list

  is_spin_polarized

    True if the calculation is spin-polarized.

    Type:

      bool

  Parameters:

    - filename – filename of the COPL file. Defaults to “COPL”.

    - to_eV – LMTO-ASA gives energies in Ry. To convert energies into eV, set to True. Defaults to False for energies in Ry.

class LMTOCtrl(structure: Structure | IStructure, header: str | None = None, version: str = 'LMASA-47')

  Bases: `object`

  Parse CTRL files from the Stuttgart LMTO-ASA code. Currently, only HEADER, VERS and the structure can be used.

  Parameters:

    - structure (Structure) – pymatgen object.

    - header (str) – The header for the CTRL file. Defaults to None.

    - version (str) – The LMTO version that is used for the VERS category. Defaults to version (4.7).

  as_dict()

    Get the CTRL as a dictionary. “SITE” and “CLASS” are of the form {‘CATEGORY’: {‘TOKEN’: value}}, the rest is of the form ‘TOKEN’/’CATEGORY’: value. It gets the conventional standard structure because primitive cells use the conventional a-lattice parameter as the scaling factor and not the a-lattice parameter of the primitive cell.

  classmethod from_dict(dct: dict) → Self

    Creates a CTRL file object from a dictionary. The dictionary must contain the items “ALAT”, PLAT” and “SITE”.

    Valid dictionary items are:

      ALAT: the a-lattice parameter PLAT: (3x3) array for the lattice vectors SITE: list of dictionaries: {‘ATOM’: class label, ‘POS’: (3x1) array of fractional coordinates} CLASS (optional): list of unique atom labels as str SPCGRP (optional): space group symbol (str) or number (int) HEADER (optional): HEADER text as a str VERS (optional): LMTO version as a str

    Parameters:

      dct – The CTRL file as a dictionary.

    Returns:

      An LMTOCtrl object.

  classmethod from_file(filename: str | Path = 'CTRL', **kwargs) → Self

    Creates a CTRL file object from an existing file.

    Parameters:

      filename – The name of the CTRL file. Defaults to ‘CTRL’.

    Returns:

      An LMTOCtrl object.

  classmethod from_str(data: str, sigfigs: int = 8) → Self

    Creates a CTRL file object from a string. This will mostly be used to read an LMTOCtrl object from a CTRL file. Empty spheres are ignored.

    Parameters:

      data (str) – String representation of the CTRL file.

    Returns:

      An LMTOCtrl object.

  get_str(sigfigs=8) → str

    Generate the string representation of the CTRL file. This is the minimal CTRL file necessary to execute lmhart.run.

  write_file(filename='CTRL', **kwargs)

    Write a CTRL file with structure, HEADER, and VERS that can be used as input for lmhart.run.

## pymatgen.io.multiwfn module

This module implements input/output processing from Multiwfn.

Currently, the focus of this module is on processing Quantum Theory of Atoms in Molecules (QTAIM) outputs from Multiwfn. Additional features may be added over time as needed/desired.

add_atoms(molecule: Molecule, organized_cps: dict[str, dict[Any, dict[str, Any]]], bond_atom_criterion: Literal['qtaim', 'distance', 'combined'] = 'combined', dist_threshold_bond: float = 1.0, dist_threshold_ring_cage: float = 3.0, distance_margin: float = 0.5) → dict[str, dict[str, dict[str, Any]]]

  Modify bond, ring, and cage CPs to include information about surrounding critical points. Bonds will include information about the atoms that make up the bond. Rings will include the names of neighboring bonds and the indices of the atoms involved, and cages will include information on neighboring rings, bonds, and the atoms involved.

  Parameters:

    - molecule (Molecule) – structure corresponding to this Multiwfn calculation

    - organized_cps (Dict[str, Dict[Any, Dict[str, Any]]]) – Keys are CP categories (“atom”, “bond”, “ring”, and “cage”). Values are themselves dictionaries, where the keys are CP names (or atom indices) and the values are CP descriptors

    - bond_atom_criterion (Literal["qtaim", "distance", "combined"]) – If this is “qtaim”, the inherent bonding definition obtained from QTAIM/Multiwfn will be used to link bond CPs to atoms involved in those bonds. If it is “distance”, a distance-based metric will be used instead, where the atoms closest to the bond CP will be assumed to be bonded. If this is “combined”, then the QTAIM/Multiwfn definition will be used where available, and a distance metric will be used for all bond CPs lacking a definition from QTAIM/Multiwfn. NOTE: to use “qtaim” or “combined” as bond_atom_criterion, you must have used map_atoms_cps to link atom numbers from Multiwfn to atom indices in molecule.

    - dist_threshold_bond (float) – If the nearest atoms to a bond CP are further from the bond CP than this threshold (default 1.0 Angstrom), then a warning will be raised.

    - dist_threshold_ring_cage (float) – If the nearest bond CPs to a ring CP or the nearest ring CPs to a cage CP are further than this threshold (default 3.0 Angstrom), then a warning will be raised.

    - distance_margin (float) – Rings must be made up of at least three bonds, and cages must be made up of at least three rings. We therefore define rings by the three closest bond CPs and cages by the three closest ring CPs. We associate additional bond/ring CPs with ring/cage CPs if they are no further than the third-closest bond/ring CP, plus this margin. Default is 0.5 Angstrom

  Returns:

    CP dict with additional information added.

  Return type:

    modified_organized_cps (Dict[str, Dict[str, Dict[str, Any]]])

extract_info_from_cp_text(lines_split: list[list[str]], cp_type: Literal['atom', 'bond', 'ring', 'cage'], conditionals: dict[str, list[str]]) → tuple[str, dict[str, Any]]

  Extract specific information from a Multiwfn QTAIM output.

  Parameters:

    - lines_split (List[List[str]]) – List of lines from a (pre-processed) CP file, containing only information regarding one critical point, split by whitespace

    - cp_type – Type of critical point. Currently, can be “atom”, “bond”, “ring”, or “cage”

    - conditionals (Dict[str, List[str]]) – Parameters to extract with strings to search for to see if the data is present

  Returns:

    dictionary of critical point information

  Return type:

    cp_dict

get_qtaim_descs(file: PathLike) → dict[str, dict[str, Any]]

  Parse CPprop file from multiwfn by parsing each individual critical-point section.

  Parameters:

    file (PathLike) – path to CPprop file

  Returns:

    Output dictionary of QTAIM descriptors

  Return type:

    descriptors (Dict[str, Dict[str, Any]])

map_atoms_cps(molecule: Molecule, atom_cp_dict: dict[str, dict[str, Any]], max_distance: float = 0.5) → tuple[dict[int, dict[str, Any]], list[int]]

  Connect atom CPs to atoms by their positions.

  Parameters:

    - molecule (Molecule) – structure corresponding to this Multiwfn calculation

    - atom_cp_dict (Dict[str, Dict[str, Any]]) – Dictionary where keys are critical point names and values are descriptors, including element symbol and position

    - max_distance (float) – Maximum distance (in Angstrom) that a critical point can be away from an atom center and be associated with that atom. Default is 0.5 Angstrom

  Returns:

    Dictionary mapping atomic indices to atom critical point

      descriptors

    missing_atoms (List[int]): list of dft atoms that do not have a cp found in qtaim

  Return type:

    index_to_cp_desc (Dict[int, Dict[str, Any]])

match_atom_cp(molecule: Molecule, index: int, atom_cp_dict: dict[str, dict[str, Any]], max_distance: float = 0.5) → tuple[str | None, dict]

  From a dictionary with an atom’s position and element symbol, find the corresponding cp in the atom CP dictionary

  Parameters:

    - molecule (Molecule) – structure corresponding to this Multiwfn calculation

    - index (int) – index of the atom to be matched

    - atom_cp_dict (Dict[str, Dict[str, Any]]) – Dictionary where keys are critical point names and values are descriptors, including element symbol and position

    - max_distance (float) – Maximum distance (in Angstrom) that a critical point can be away from an atom center and be associated with that atom. Default is 0.5 Angstrom

  Returns:

    Key of atom_cp_dict; the name of the atom critical point corresponding to this atom. If

      no match is found, this will be None

    cp_dict (Dict): Dictionary of CP descriptors matching this atom

  Return type:

    cp_name (str | None)

parse_cp(lines: list[str]) → tuple[str | None, dict[str, Any]]

  Parse information from a single QTAIM critical point.

  Parameters:

    lines (List[str]) – list of lines from a (preparsed) CP file, containing only information regarding one critical point

  Returns:

    dictionary of critical point information

  Return type:

    cp_dict

process_multiwfn_qtaim(molecule: Molecule, file: PathLike, bond_atom_criterion: Literal['qtaim', 'distance'] = 'distance', max_distance_atom: float = 0.5, dist_threshold_bond: float = 1.0, dist_threshold_ring_cage: float = 3.0, distance_margin: float = 0.5) → dict[str, dict[Any, dict[str, Any]]]

  Process quantum theory of atoms in molecules (QTAIM) outputs from Multiwfn.

  Parameters:

    - molecule (Molecule) – structure corresponding to this Multiwfn calculation

    - file (PathLike) – path to CPprop file containing QTAIM information

    - bond_atom_criterion (Literal["qtaim", "distance"]) – If “qtaim”, the inherent bonding definition obtained from QTAIM/Multiwfn will be used to link bond CPs to atoms involved in those bonds; if “distance”, a distance-based metric will be used instead, where the atoms closest to the bond CP will be assumed to be bonded.

    - max_distance (float) – Maximum distance (in Angstrom) that an atom critical point can be away from an atom center and be associated with that atom. Default is 0.5 Angstrom

    - dist_threshold_bond (float) – If the nearest atoms to a bond CP are further from the bond CP than this threshold (default 1.0 Angstrom), then a warning will be raised.

    - dist_threshold_ring_cage (float) – If the nearest bond CPs to a ring CP or the nearest ring CPs to a cage CP are further than this threshold (default 3.0 Angstrom), then a warning will be raised.

    - distance_margin (float) – Rings must be made up of at least three bonds, and cages must be made up of at least three rings. We therefore define rings by the three closest bond CPs and cages by the three closest ring CPs. We associate additional bond/ring CPs with ring/cage CPs if they are no further than the third-closest bond/ring CP, plus this margin. Default is 0.5 Angstrom

  Returns:

    QTAIM descriptors, organized by type (“atom”, “bond”,

      ”ring”, “cage”), with additional metadata added to bond, ring, and cage CPs

  Return type:

    with_atoms (Dict[str, Dict[str, Dict[str, Any]]])

separate_cps_by_type(qtaim_descs: dict[Any, dict[str, Any]]) → dict[str, dict[Any, dict[str, Any]]]

  Separates QTAIM descriptors by type (atom, bond, ring, or cage)

  Parameters:

    qtaim_descs (Dict[str, Dict[str, Any]]) – Dictionary where keys are CP names and values are dictionaries of descriptors obtained from get_qtaim_descs and parse_cp

  Returns:

    Dictionary of organized QTAIM critical points and their

      descriptors. Keys are “atom”, “bond”, “ring”, and “cage”, and values are dicts {<CP name>: <QTAIM descriptors>}

  Return type:

    organized_descs (Dict[str, Dict[str, Dict[str, Any]]])

## pymatgen.io.nwchem module

## pymatgen.io.openff module

Utility functions for classical MD subpackage.

add_conformer(openff_mol: tk.Molecule, geometry: Molecule | None) → tuple[tk.Molecule, dict[int, int]]

  Add conformers to an OpenFF Molecule based on the provided geometry.

  If a geometry is provided, infers an OpenFF Molecule from it, finds an atom mapping between the inferred molecule and the input molecule, and adds the conformer coordinates to the input molecule. If no geometry is provided, generates a single conformer.

  Parameters:

    - openff_mol (tk.Molecule) – The OpenFF Molecule to add conformers to.

    - geometry (Union[pymatgen.core.Molecule, None]) – The geometry to use for adding conformers.

  Returns:

    A tuple containing the updated OpenFF

      Molecule with added conformers and a dictionary representing the atom mapping.

  Return type:

    Tuple[tk.Molecule, Dict[int, int]]

assign_partial_charges(openff_mol: tk.Molecule, atom_map: dict[int, int], charge_method: str, partial_charges: None | list[float]) → tk.Molecule

  Assign partial charges to an OpenFF Molecule.

  If partial charges are provided, assigns them to the molecule based on the atom mapping. If the molecule has only one atom, assigns the total charge as the partial charge. Otherwise, assigns partial charges using the specified charge method.

  Parameters:

    - openff_mol (tk.Molecule) – The OpenFF Molecule to assign partial charges to.

    - atom_map (Dict[int, int]) – A dictionary representing the atom mapping.

    - charge_method (str) – The charge method to use if partial charges are not provided.

    - partial_charges (Union[None, List[float]]) – A list of partial charges to assign or None to use the charge method.

  Returns:

    The OpenFF Molecule with assigned partial charges.

  Return type:

    tk.Molecule

create_openff_mol(smile: str, geometry: Molecule | str | Path | None = None, charge_scaling: float = 1, partial_charges: list[float] | None = None, backup_charge_method: str = 'am1bcc') → tk.Molecule

  Create an OpenFF Molecule from a SMILES string and optional geometry.

  Constructs an OpenFF Molecule from the provided SMILES string, adds conformers based on the provided geometry (if any), assigns partial charges using the specified method or provided partial charges, and applies charge scaling.

  Parameters:

    - smile (str) – The SMILES string of the molecule.

    - geometry (Union[pymatgen.core.Molecule, str, Path, None], optional) – The geometry to use for adding conformers. Can be a Pymatgen Molecule, file path, or None.

    - charge_scaling (float, optional) – The scaling factor for partial charges. Default is 1.

    - partial_charges (Union[List[float], None], optional) – A list of partial charges to assign, or None to use the charge method.

    - backup_charge_method (str, optional) – The backup charge method to use if partial charges are not provided. Default is “am1bcc”.

  Returns:

    The created OpenFF Molecule.

  Return type:

    tk.Molecule

get_atom_map(inferred_mol: tk.Molecule, openff_mol: tk.Molecule) → tuple[bool, dict[int, int]]

  Compute an atom mapping between two OpenFF Molecules.

  Attempts to find an isomorphism between the molecules, considering various matching criteria such as formal charges, stereochemistry, and bond orders. Returns the atom mapping if an isomorphism is found, otherwise returns an empty mapping.

  Parameters:

    - inferred_mol (tk.Molecule) – The first OpenFF Molecule.

    - openff_mol (tk.Molecule) – The second OpenFF Molecule.

  Returns:

    A tuple containing a boolean indicating if an

      isomorphism was found and a dictionary representing the atom mapping.

  Return type:

    Tuple[bool, Dict[int, int]]

infer_openff_mol(mol_geometry: Molecule) → tk.Molecule

  Infer an OpenFF Molecule from a Pymatgen Molecule.

  Constructs a MoleculeGraph from the Pymatgen Molecule using the OpenBabelNN local environment strategy and extends metal edges. Converts the resulting MoleculeGraph to an OpenFF Molecule using mol_graph_to_openff_mol.

  Parameters:

    mol_geometry (pymatgen.core.Molecule) – The Pymatgen Molecule to infer from.

  Returns:

    The inferred OpenFF Molecule.

  Return type:

    tk.Molecule

mol_graph_from_openff_mol(molecule: tk.Molecule) → MoleculeGraph

  This is designed to closely mirror the graph structure generated by tk.Molecule.to_networkx.

  Parameters:

    molecule (tk.Molecule) – The OpenFF Molecule to convert.

  Returns:

    The converted MoleculeGraph.

  Return type:

    MoleculeGraph

mol_graph_to_openff_mol(mol_graph: MoleculeGraph) → tk.Molecule

  Convert a Pymatgen MoleculeGraph to an OpenFF Molecule.

  Parameters:

    mol_graph (MoleculeGraph) – The Pymatgen MoleculeGraph to be converted.

  Returns:

    The converted OpenFF Molecule.

  Return type:

    tk.Molecule

## pymatgen.io.optimade module

This module provides conversion between structure entries following the OPTIMADE (https://optimade.org) standard and pymatgen Structure objects.

The code is adapted from the optimade.adapters.structures.pymatgen module in optimade-python-tools (https://github.com/Materials-Consortia/optimade-python-tools), and aims to work without requiring the explicit installation of the optimade-python-tools.

class OptimadeStructureAdapter

  Bases: `object`

  Adapter serves as a bridge between OPTIMADE structures and pymatgen objects.

  static get_optimade_structure(structure: Structure | IStructure, **kwargs) → dict[str, str | dict[str, Any]]

    Get a dictionary in the OPTIMADE Structure format from a pymatgen structure or molecule.

    Parameters:

      - structure (Structure) – pymatgen Structure

      - **kwargs – passed to the ASE Atoms constructor

    Returns:

      A dictionary serialization of the structure in the OPTIMADE format.

  static get_structure(resource: dict) → Structure

    Get pymatgen structure from an OPTIMADE structure resource.

    Parameters:

      resource – OPTIMADE structure resource as a dictionary, JSON string, or the corresponding attributes dictionary (i.e., resource[“attributes”]).

    Returns:

      Equivalent pymatgen Structure

    Return type:

      Structure

## pymatgen.io.packmol module

This module provides a pymatgen I/O interface to PACKMOL.

- PackmolSet provides a “run” method to run PACKMOL locally.

- PackmolBoxGen provides “get_input_set” for packing molecules into a box,

which returns a PackmolSet object.

For the run() method to work, you need to install the PACKMOL package. See https://m3g.iqm.unicamp.br/packmol for download and setup instructions. After installation, you may need to add the path of the PACKMOL executable to the PATH environment variable.

Note that PACKMOL versions prior to 20.3.0 do not support paths with spaces.

class PackmolBoxGen(tolerance: float = 2.0, seed: int = 1, control_params: dict | None = None, inputfile: PathLike = 'packmol.inp', outputfile: PathLike = 'packmol_out.xyz', stdoutfile: PathLike = 'packmol.stdout')

  Bases: `InputGenerator`

  Generator for a Packmol InputSet that packs one or more molecules into a rectangular simulation box.

  Instantiate a PackmolBoxGen class. The init method defines simulations parameters like filenames, random seed, tolerance, etc.

  Parameters:

    - tolerance (float) – Tolerance for packmol, in Å.

    - seed (int) – Random seed for packmol. Use 1 (default) for deterministic output, or -1 to generate a new random seed from the current time.

    - control_params (dict) – Additional parameters to be added to the input file.

    - inputfile (PathLike) – Path to the input file. Default to “packmol.inp”.

    - outputfile (PathLike) – Path to the output file. Default to “packmol_out.xyz”.

    - stdoutfile (PathLike) – Path to the file where stdout will be recorded. Default to “packmol.stdout”.

  get_input_set(molecules: list[dict], box: list[float] | None = None) → PackmolSet

    Generate a Packmol InputSet for a set of molecules.

    Parameters:

      - molecules (list[dict]) –

        Information about molecules to pack into the box. Each dict requires three keys + 2 optional keys:

        > 1. ”name” - the structure name.

        > 2. ”number” - the number of that molecule to pack into the box.

        > 3. ”coords” - Coordinates in the form of either a Molecule

        >      object or a path to a file.

        > 4. ”constraints” - (optional) the list of constraints for this

        >      group of molecules.

        > 5. ”atoms_constraints” - (optional) the list of constraints for

        >      specific atoms of this group of molecules. Each item in the list is a dictionary with keys ‘indices’ and ‘constraints’. The ‘indices’ key contains the atom indices (0-based) of the atoms to which the list of ‘constraints’ applies.

        Example

        {

          “name”: “water”, “number”: 500, “coords”: “/path/to/input/file.xyz”,

        }

      - box (list[float]) – Box dimensions xlo, ylo, zlo, xhi, yhi, zhi, in Å. If set to None (default), pymatgen will estimate the required box size based on the volumes of the provided molecules.

    Returns:

      PackmolSet

class PackmolSet(inputs: dict[PathLike, str | InputFile] | None = None, **kwargs)

  Bases: `InputSet`

  InputSet for the PACKMOL software. This class defines several attributes related to.

  Instantiate an InputSet.

  Parameters:

    - inputs – The core mapping of filename: file contents that defines the InputSet data. This should be a dict where keys are filenames and values are InputFile objects or strings representing the entire contents of the file. If a value is not an InputFile object nor a str, but has a __str__ method, this str representation of the object will be written to the corresponding file. This mapping will become the .inputs attribute of the InputSet.

    - **kwargs – Any kwargs passed will be set as class attributes e.g. InputSet(inputs={}, foo=’bar’) will make InputSet.foo == ‘bar’.

  classmethod from_directory(directory: PathLike) → None

    Construct an InputSet from a directory of one or more files.

    Parameters:

      directory (PathLike) – Directory to read input files from.

  run(path: PathLike, timeout: float = 30) → None

    Run PACKMOL and write out the packed structure.

    Parameters:

      - path (PathLike) – The path in which packmol input files are located.

      - timeout (float) – Timeout in seconds.

    Raises:

      - ValueError – if packmol does not succeed in packing the box.

      - TimeoutExpiredError – if packmol does not finish within the timeout.

## pymatgen.io.phonopy module

Module for interfacing with phonopy, see https://atztogo.github.io/phonopy/.

eigvec_to_eigdispl(eig_vec, q, frac_coords, mass)

  Converts a single eigenvector to an eigendisplacement in the primitive cell according to the formula:

  > exp(2*pi*i*(frac_coords dot q) / sqrt(mass) * v

  Compared to the modulation option in phonopy, here all the additional multiplicative and phase factors are set to 1.

  Parameters:

    - v – the vector that should be converted. A 3D complex numpy array.

    - q – the q point in fractional coordinates

    - frac_coords – the fractional coordinates of the atom

    - mass – the mass of the atom

get_complete_ph_dos(partial_dos_path, phonopy_yaml_path)

  Create a pymatgen CompletePhononDos from a partial_dos.dat and phonopy.yaml files. The second is produced when generating a Dos and is needed to extract the structure.

  Parameters:

    - partial_dos_path – path to the partial_dos.dat file.

    - phonopy_yaml_path – path to the phonopy.yaml file.

get_displaced_structures(pmg_structure, atom_disp=0.01, supercell_matrix=None, yaml_fname=None, **kwargs)

  Generate a set of symmetrically inequivalent displaced structures for phonon calculations.

  Parameters:

    - pmg_structure (Structure) – A pymatgen structure object.

    - atom_disp (float) – Atomic displacement. Default is 0.01 $\AA$.

    - supercell_matrix (3x3 array) – Scaling matrix for supercell.

    - yaml_fname (str) – If not None, it represents the full path to the outputting displacement YAML file, e.g. disp.yaml.

    - **kwargs – Parameters used in Phonopy.generate_displacement method.

  Returns:

    A list of symmetrically inequivalent structures with displacements, in which the first element is the perfect supercell structure.

get_gruneisen_ph_bs_symm_line(gruneisen_path, structure=None, structure_path=None, labels_dict=None, fit=False)

  Create a pymatgen GruneisenPhononBandStructure from a band.yaml file. The labels will be extracted from the dictionary, if present. If the ‘eigenvector’ key is found the eigendisplacements will be calculated according to the formula: \exp(2*pi*i*(frac_coords \dot q) / sqrt(mass) * v

  > and added to the object.

  Parameters:

    - gruneisen_path – path to the band.yaml file

    - structure – pymaten Structure object

    - structure_path – path to a structure file (e.g., POSCAR)

    - labels_dict – dict that links a qpoint in frac coords to a label.

    - fit – Substitute Grueneisen parameters close to the gamma point with points obtained from a fit to a spline if the derivate from a smooth curve (i.e. if the slope changes by more than 200% in the range of 10% around the gamma point). These derivations occur because of very small frequencies (and therefore numerical inaccuracies) close to gamma.

get_gruneisenparameter(gruneisen_path, structure=None, structure_path=None) → GruneisenParameter

  Get Gruneisen object from gruneisen.yaml file, as obtained from phonopy (Frequencies in THz!). The order is structure > structure path > structure from gruneisen dict. Newer versions of phonopy include the structure in the YAML file, the structure/structure_path is kept for compatibility.

  Parameters:

    - gruneisen_path – Path to gruneisen.yaml file (frequencies have to be in THz!)

    - structure – pymatgen Structure object

    - structure_path – path to structure in a file (e.g., POSCAR)

  Returns:

    GruneisenParameter

get_gs_ph_bs_symm_line_from_dict(gruneisen_dict, structure=None, structure_path=None, labels_dict=None, fit=False) → GruneisenPhononBandStructureSymmLine

  Create a pymatgen GruneisenPhononBandStructure object from the dictionary extracted by the gruneisen.yaml file produced by phonopy. The labels will be extracted from the dictionary, if present. If the ‘eigenvector’ key is found the eigendisplacements will be calculated according to the formula:

  > exp(2*pi*i*(frac_coords \dot q) / sqrt(mass) * v

  and added to the object. A fit algorithm can be used to replace diverging Gruneisen values close to gamma.

  Parameters:

    - gruneisen_dict (dict) – the dictionary extracted from the gruneisen.yaml file

    - structure (Structure) – pymatgen structure object

    - structure_path – path to structure file

    - labels_dict (dict) – dict that links a qpoint in frac coords to a label. Its value will replace the data contained in the band.yaml.

    - fit (bool) – Substitute Grueneisen parameters close to the gamma point with points obtained from a fit to a spline if the derivate from a smooth curve (i.e. if the slope changes by more than 200% in the range of 10% around the gamma point). These derivations occur because of very small frequencies (and therefore numerical inaccuracies) close to gamma.

get_ph_bs_symm_line(bands_path, has_nac=False, labels_dict=None)

  Create a pymatgen PhononBandStructure from a band.yaml file. The labels will be extracted from the dictionary, if present. If the ‘eigenvector’ key is found the eigendisplacements will be calculated according to the formula: \exp(2*pi*i*(frac_coords \dot q) / sqrt(mass) * v

  > and added to the object.

  Parameters:

    - bands_path – path to the band.yaml file

    - has_nac – True if the data have been obtained with the option –nac option. Default False.

    - labels_dict – dict that links a q-point in frac coords to a label.

get_ph_bs_symm_line_from_dict(bands_dict, has_nac=False, labels_dict=None) → PhononBandStructureSymmLine

  Create a pymatgen PhononBandStructure object from the dictionary extracted by the band.yaml file produced by phonopy. The labels will be extracted from the dictionary, if present. If the ‘eigenvector’ key is found the eigendisplacements will be calculated according to the formula:

  > exp(2*pi*i*(frac_coords \dot q) / sqrt(mass) * v

  and added to the object.

  Parameters:

    - bands_dict – the dictionary extracted from the band.yaml file

    - has_nac – True if the data have been obtained with the option –nac option. Default False.

    - labels_dict – dict that links a qpoint in frac coords to a label. Its value will replace the data contained in the band.yaml.

  Returns:

    the phonon band structure

  Return type:

    PhononBandStructure

get_ph_dos(total_dos_path)

  Create a pymatgen PhononDos from a total_dos.dat file.

  Parameters:

    total_dos_path – path to the total_dos.dat file.

get_phonon_band_structure_from_fc(structure: Structure | IStructure, supercell_matrix: np.ndarray, force_constants: np.ndarray, mesh_density: float = 100.0, **kwargs) → PhononBandStructure

  Get a uniform phonon band structure from phonopy force constants.

  Parameters:

    - structure – A structure.

    - supercell_matrix – The supercell matrix used to generate the force constants.

    - force_constants – The force constants in phonopy format.

    - mesh_density – The density of the q-point mesh. See the docstring for the `mesh` argument in Phonopy.init_mesh() for more details.

    - **kwargs – Additional kwargs passed to the Phonopy constructor.

  Returns:

    The uniform phonon band structure.

get_phonon_band_structure_symm_line_from_fc(structure: Structure | IStructure, supercell_matrix: np.ndarray, force_constants: np.ndarray, line_density: float = 20.0, symprec: float = 0.01, **kwargs) → PhononBandStructureSymmLine

  Get a phonon band structure along a high symmetry path from phonopy force constants.

  Parameters:

    - structure – A structure.

    - supercell_matrix – The supercell matrix used to generate the force constants.

    - force_constants – The force constants in phonopy format.

    - line_density – The density along the high symmetry path.

    - symprec – Symmetry precision passed to phonopy and used for determining the band structure path.

    - **kwargs – Additional kwargs passed to the Phonopy constructor.

  Returns:

    The line mode band structure.

get_phonon_dos_from_fc(structure: Structure | IStructure, supercell_matrix: np.ndarray, force_constants: np.ndarray, mesh_density: float = 100.0, num_dos_steps: int = 200, **kwargs) → CompletePhononDos

  Get a projected phonon density of states from phonopy force constants.

  Parameters:

    - structure – A structure.

    - supercell_matrix – The supercell matrix used to generate the force constants.

    - force_constants – The force constants in phonopy format.

    - mesh_density – The density of the q-point mesh. See the docstring for the `mesh` argument in Phonopy.init_mesh() for more details.

    - num_dos_steps – Number of frequency steps in the energy grid.

    - **kwargs – Additional kwargs passed to the Phonopy constructor.

  Returns:

    The density of states.

get_phonopy_structure(pmg_structure: Structure) → None

  Convert a pymatgen Structure object to a PhonopyAtoms object.

  Parameters:

    pmg_structure (pymatgen Structure) – A Pymatgen structure object.

get_pmg_structure(phonopy_structure: None) → Structure

  Convert a PhonopyAtoms object to pymatgen Structure object.

  Parameters:

    phonopy_structure (PhonopyAtoms) – A phonopy structure object.

get_structure_from_dict(dct) → Structure

  Extracts a structure from the dictionary extracted from the output files of phonopy like phonopy.yaml or band.yaml. Adds “phonopy_masses” in the site_properties of the structures. Compatible with older phonopy versions.

get_thermal_displacement_matrices(thermal_displacements_yaml='thermal_displacement_matrices.yaml', structure_path='POSCAR') → list[ThermalDisplacementMatrices]

  Read “thermal_displacement_matrices.yaml” from phonopy and return a list of ThermalDisplacementMatrices objects.

  Parameters:

    - thermal_displacements_yaml – path to thermal_displacement_matrices.yaml

    - structure_path – path to POSCAR.

  Returns:

    list[ThermalDisplacementMatrices]

## pymatgen.io.prismatic module

Write Prismatic (https://prism-em.com) input files.

class Prismatic(structure: Structure | IStructure, comment: str = 'Generated by pymatgen')

  Bases: `object`

  Write Prismatic (https://prism-em.com) input files. This is designed for STEM image simulation.

  Parameters:

    - structure – pymatgen Structure

    - comment (str) – comment.

  to_str() → str
    Returns:

      Prismatic XYZ file. This is similar to XYZ format

        but has specific requirements for extra fields, headers, etc.

    Return type:

      str

## pymatgen.io.pwscf module

This module implements input and output processing from PWSCF.

class PWInput(structure, pseudo=None, control=None, system=None, electrons=None, ions=None, cell=None, kpoints_mode='automatic', kpoints_grid=(1, 1, 1), kpoints_shift=(0, 0, 0), format_options=None)

  Bases: `object`

  Base input file class. Right now, only supports no symmetry and is very basic.

  Initialize a PWSCF input file.

  Parameters:

    - structure (Structure) – Input structure. For spin-polarized calculation, properties (e.g. {“starting_magnetization”: -0.5, “pseudo”: “Mn.pbe-sp-van.UPF”}) on each site is needed instead of pseudo (dict).

    - pseudo (dict) – A dict of the pseudopotentials to use. Default to None.

    - control (dict) – Control parameters. Refer to official PWSCF doc on supported parameters. Default to {“calculation”: “scf”}

    - system (dict) – System parameters. Refer to official PWSCF doc on supported parameters. Default to None, which means {}.

    - electrons (dict) – Electron parameters. Refer to official PWSCF doc on supported parameters. Default to None, which means {}.

    - ions (dict) – Ions parameters. Refer to official PWSCF doc on supported parameters. Default to None, which means {}.

    - cell (dict) – Cell parameters. Refer to official PWSCF doc on supported parameters. Default to None, which means {}.

    - kpoints_mode (str) – Kpoints generation mode. Default to automatic.

    - kpoints_grid (sequence) – The kpoint grid. Default to (1, 1, 1).

    - kpoints_shift (sequence) – The shift for the kpoints. Defaults to (0, 0, 0).

    - format_options (dict) –

      Formatting options when writing into a string. Can be used to specify e.g., the number of decimal places (including trailing zeros) for real-space coordinate values (atomic positions, cell parameters). Defaults to None, in which case the following default values are used (so as to maintain backwards compatibility): {“indent”: 2, “kpoints_crystal_b_indent”: 1,

      > ”coord_decimals”: 6, “atomic_mass_decimals”: 4, “kpoints_grid_decimals”: 4}.

  as_dict()

    Create a dictionary representation of a PWInput object.

    Returns:

      dict

  classmethod from_dict(dct: dict) → Self

    Load a PWInput object from a dictionary.

    Parameters:

      dct (dict) – dictionary with PWInput data

    Returns:

      PWInput object

  classmethod from_file(filename: str | Path) → Self

    Reads an PWInput object from a file.

    Parameters:

      filename (str | Path) – Filename for file

    Returns:

      PWInput object

  classmethod from_str(string: str) → Self

    Reads an PWInput object from a string.

    Parameters:

      string (str) – PWInput string

    Returns:

      PWInput object

  static proc_val(key, val)

    Static helper method to convert PWINPUT parameters to proper type, e.g. integers, floats, etc.

    Parameters:

      - key – PWINPUT parameter key

      - val – Actual value of PWINPUT parameter.

  write_file(filename)

    Write the PWSCF input file.

    Parameters:

      filename (str) – The string filename to output to.

exception PWInputError

  Bases: `BaseException`

  Error for PWInput.

class PWOutput(filename)

  Bases: `object`

  Parser for PWSCF output file.

  Parameters:

    filename (str) – Filename.

  property final_energy: float

    The final energy from the PW output.

  get_celldm(idx: int)
    Parameters:

      idx (int) – index.

    Returns:

      Cell dimension along index

  property lattice_type: int

    The lattice type.

  patterns: ClassVar[dict[str, str]] = {'celldm1': 'celldm\\(1\\)=\\s+([\\d\\.]+)\\s', 'celldm2': 'celldm\\(2\\)=\\s+([\\d\\.]+)\\s', 'celldm3': 'celldm\\(3\\)=\\s+([\\d\\.]+)\\s', 'celldm4': 'celldm\\(4\\)=\\s+([\\d\\.]+)\\s', 'celldm5': 'celldm\\(5\\)=\\s+([\\d\\.]+)\\s', 'celldm6': 'celldm\\(6\\)=\\s+([\\d\\.]+)\\s', 'ecut': 'kinetic\\-energy cutoff\\s+=\\s+([\\d\\.\\-]+)\\s+Ry', 'energies': 'total energy\\s+=\\s+([\\d\\.\\-]+)\\sRy', 'lattice_type': 'bravais\\-lattice index\\s+=\\s+(\\d+)', 'nkpts': 'number of k points=\\s+([\\d]+)'}
  read_pattern(patterns, reverse=False, terminate_on_match=False, postprocess=<class 'str'>)

    General pattern reading. Uses monty’s regrep method. Takes the same arguments.

    Parameters:

      - patterns (dict) – A dict of patterns, e.g. {“energy”: r”energy\(sigma->0\)\s+=\s+([\d\-.]+)”}.

      - reverse (bool) – Read files in reverse. Defaults to false. Useful for large files, esp OUTCARs, especially when used with terminate_on_match.

      - terminate_on_match (bool) – Whether to terminate when there is at least one match in each key in pattern.

      - postprocess (callable) – A post processing function to convert all matches. Defaults to str, i.e., no change.

    Renders accessible:

      Any attribute in patterns. For example, {“energy”: r”energy\(sigma->0\)\s+=\s+([\d\-.]+)”} will set the value of self.data[“energy”] = [[-1234], [-3453], …], to the results from regex and postprocess. Note that the returned values are lists of lists, because you can grep multiple items on one line.

## pymatgen.io.res module

Provides parsing and read/write support for ShelX .res files as produced by the AIRSS code.

Converting from and back to pymatgen objects is expected to be reversible, i.e. you should get the same Structure or ComputedStructureEntry back. On the other hand, converting from and back to a string/file is not guaranteed to be reversible, i.e. a diff on the output would not be empty. The difference should be limited to whitespace, float precision, and the REM entries.

class AirssProvider(res: Res, parse_rems: Literal['gentle', 'strict'] = 'gentle')

  Bases: `ResProvider`

  Provides access to the res file as does ResProvider. This class additionally provides access to fields in the TITL entry and various other fields found in the REM entries that AIRSS puts in the file. Values in the TITL entry that AIRSS could not get end up as 0. If the TITL entry is malformed, empty, or missing then attempting to construct this class from a res file will raise a ResError.

  While AIRSS supports a number of geometry and energy solvers, CASTEP is the default. As such, fetching the information from the REM entries is only supported if AIRSS was used with CASTEP. The other properties that get put in the TITL should still be accessible even if CASTEP was not used.

  The `parse_rems` attribute controls whether functions that fail to retrieve information from the REM entries should return `None`. If this is set to `"strict"`, then a ParseError may be raised, but the return value will not be `None`. If it is set to `"gentle"`, then `None` will be returned instead of raising an exception. This setting applies to all methods of this class that are typed to return an Optional type. Default is `"gentle"`.

  The `from_str()` and `from_file()` methods should be used instead of constructing this directly.

  property appearances: int

    This is sometimes the number of times a structure was found in an AIRSS search. Using the cryan tool that comes with AIRSS may be a better approach than relying on this property.

  as_dict(verbose: bool = True) → dict[str, Any]

    Get dict with title fields, structure and rems of this AirssProvider.

  property energy: float

    Energy of the structure. With CASTEP, this is usually the enthalpy and is in eV.

  property entry: ComputedStructureEntry

    This res file as a ComputedStructureEntry.

  classmethod from_file(filename: str | Path, parse_rems: Literal['gentle', 'strict'] = 'gentle') → Self

    Construct a Provider from a file.

  classmethod from_str(string: str, parse_rems: Literal['gentle', 'strict'] = 'gentle') → Self

    Construct a Provider from a string.

  get_airss_version() → tuple[str, date] | None

    Retrieves the version of AIRSS that was used along with the build date (not compile date).

    Returns:

      tuple[str, date] (version string, date)

  get_castep_version() → str | None

    Retrieves the version of CASTEP that the res file was computed with from the REM entries.

    Returns:

      version string

  get_cut_grid_gmax_fsbc() → tuple[float, float, float, str] | None

    Retrieves the cut-off energy, grid scale, Gmax, and finite basis set correction setting from the REM entries.

    Returns:

      (cut-off, grid scale, Gmax, fsbc)

    Return type:

      tuple[float, float, float, str]

  get_func_rel_disp() → tuple[str, str, str] | None

    Retrieves the functional, relativity scheme, and dispersion correction from the REM entries.

    Returns:

      (functional, relativity, dispersion)

    Return type:

      tuple[str, str, str]

  get_mpgrid_offset_nkpts_spacing() → tuple[tuple[int, int, int], tuple[float, float, float], int, float] | None

    Retrieves the MP grid, the grid offsets, number of kpoints, and maximum kpoint spacing.

    Returns: (MP grid), (offsets), No. kpts, max spacing

  get_pspots() → dict[str, str]

    Retrieves the OTFG pseudopotential string that can be used to generate the pseudopotentials used in the calculation.

    Returns:

      dict[specie, potential]

  get_run_start_info() → tuple[date, str] | None

    Retrieves the run start date and the path it was started in from the REM entries.

    Returns:

      (date, path)

    Return type:

      tuple[date, str]

  property integrated_absolute_spin_density: float

    Corresponds to the last `Integrated |Spin Density|` in the CASTEP file.

  property integrated_spin_density: float

    Corresponds to the last `Integrated Spin Density` in the CASTEP file.

  property pressure: float

    Pressure for the run. This is in GPa if CASTEP was used.

  property seed: str

    The seed name, typically also the name of the res file.

  property spacegroup_label: str

    The Hermann-Mauguin notation of the spacegroup with ascii characters. So no. 225 would be Fm-3m, and no. 194 would be P6_3/mmc.

  property volume: float

    Volume of the structure. This is in cubic Angstroms if CASTEP was used.

class AirssTITL(seed: 'str', pressure: 'float', volume: 'float', energy: 'float', integrated_spin_density: 'float', integrated_absolute_spin_density: 'float', spacegroup_label: 'str', appearances: 'int')

  Bases: `object`

  appearances: int
  energy: float
  integrated_absolute_spin_density: float
  integrated_spin_density: float
  pressure: float
  seed: str
  spacegroup_label: str
  volume: float

class Ion(specie: 'str', specie_num: 'int', pos: 'tuple[float, float, float]', occupancy: 'float', spin: 'float | None')

  Bases: `object`

  occupancy: float
  pos: tuple[float, float, float]
  specie: str
  specie_num: int
  spin: float | None

class Res(TITL: AirssTITL | None, REMS: list[str], CELL: ResCELL, SFAC: ResSFAC)

  Bases: `object`

  Representation for the data in a res file.

  CELL: ResCELL
  REMS: list[str]
  SFAC: ResSFAC
  TITL: AirssTITL | None

class ResCELL(unknown_field_1: 'float', a: 'float', b: 'float', c: 'float', alpha: 'float', beta: 'float', gamma: 'float')

  Bases: `object`

  a: float
  alpha: float
  b: float
  beta: float
  c: float
  gamma: float
  unknown_field_1: float

exception ResError

  Bases: `ValueError`

  This exception indicates a problem was encountered while trying to retrieve a value or perform an action that a provider for the res file does not support.

class ResIO

  Bases: `object`

  Convenience methods for converting a Structure or ComputedStructureEntry to/from a string or file in the res format as used by AIRSS.

  Note: Converting from and back to pymatgen objects is expected to be reversible, i.e. you should get the same Structure or ComputedStructureEntry back. On the other hand, converting from and back to a string/file is not guaranteed to be reversible, i.e. a diff on the output would not be empty. The difference should be limited to whitespace, float precision, and the REM entries.

  If the TITL entry doesn’t exist or is malformed or empty, then you can only get a Structure. Attempting to get an Entry will raise a ResError.

  classmethod entry_from_file(filename: str) → ComputedStructureEntry

    Produce a pymatgen ComputedStructureEntry from a res file.

  classmethod entry_from_str(string: str) → ComputedStructureEntry

    Produce a pymatgen ComputedStructureEntry from contents of a res file.

  classmethod entry_to_file(entry: ComputedStructureEntry, filename: str) → None

    Write a pymatgen ComputedStructureEntry to a res file.

  classmethod entry_to_str(entry: ComputedStructureEntry) → str

    Produce the contents of a res file from a pymatgen ComputedStructureEntry.

  classmethod structure_from_file(filename: str) → Structure

    Produces a pymatgen Structure from a res file.

  classmethod structure_from_str(string: str) → Structure

    Produces a pymatgen Structure from contents of a res file.

  classmethod structure_to_file(structure: Structure | IStructure, filename: str) → None

    Write a pymatgen Structure to a res file.

  classmethod structure_to_str(structure: Structure | IStructure) → str

    Produce the contents of a res file from a pymatgen Structure.

exception ResParseError

  Bases: `ParseError`

  This exception indicates a problem was encountered during parsing due to unexpected formatting.

class ResParser

  Bases: `object`

  Parser for the ShelX res file.

  filename: str | None
  line: int
  source: str

class ResProvider(res: Res)

  Bases: `MSONable`

  Access elements of the RES file as familiar pymatgen objects.

  The `from_str()` and `from_file()` methods should be used instead of constructing this directly.

  classmethod from_file(filename: str | Path) → Self

    Construct a Provider from a file.

  classmethod from_str(string: str) → Self

    Construct a Provider from a string.

  property lattice: Lattice

    Construct a Lattice from the res file.

  property rems: list[str]

    The full list of REM entries contained within the res file.

  property sites: list[PeriodicSite]

    Construct a list of PeriodicSites from the res file.

  property structure: Structure

    Construct a Structure from the res file.

class ResSFAC(species: 'list[str]', ions: 'list[Ion]')

  Bases: `object`

  ions: list[Ion]
  species: list[str]

class ResWriter(entry: Structure | IStructure | ComputedStructureEntry)

  Bases: `object`

  This class provides a means to write a Structure or ComputedStructureEntry to a res file.

  This class can be constructed from either a pymatgen Structure or ComputedStructureEntry object.

  property string: str

    The contents of the res file.

  write(filename: str) → None

    Write the res data to a file.

## pymatgen.io.shengbte module

This module implements reading and writing of ShengBTE CONTROL files.

class Control(ngrid: list[int] | None = None, temperature: float | dict[str, float] = 300, **kwargs)

  Bases: `MSONable`, `dict`

  Read, update, and write ShengBTE CONTROL files. See https://bitbucket.org/sousaw/shengbte/src/master/ for more detailed description and default values of CONTROL arguments.

  Parameters:

    - ngrid – Reciprocal space grid density as a list of 3 ints.

    - temperature – The temperature to calculate the lattice thermal conductivity for. Can be given as a single float, or a dictionary with the keys “min”, “max”, “step”.

    - **kwargs –

      Other ShengBTE parameters. Several parameters are required for ShengBTE to run - we have listed these parameters below: - nelements (int): number of different elements in the compound - natoms (int): number of atoms in the unit cell - lattvec (size 3x3 array): real-space lattice vectors, in units of lfactor - lfactor (float): unit of measurement for lattice vectors (nm).

      > I.e., set to 0.1 if lattvec given in Angstrom.

      - types (size natom list): a vector of natom integers, ranging from 1 to nelements, assigning an element to each atom in the system

      - elements (size natom list): a vector of element names

      - positions (size natomx3 array): atomic positions in lattice coordinates

      - scell (size 3 list): supercell sizes along each crystal axis used for the 2nd-order force constant calculation.

  allocations_keys = ('nelements', 'natoms', 'ngrid', 'norientations')
  as_dict()

    Get MSONable dict.

  crystal_keys = ('lfactor', 'lattvec', 'types', 'elements', 'positions', 'masses', 'gfactors', 'epsilon', 'born', 'scell', 'orientations')
  data_keys = ('nelements', 'natoms', 'ngrid', 'lattvec', 'types', 'elements', 'positions', 'scell')
  flags_keys = ('nonanalytic', 'convergence', 'isotopes', 'autoisotopes', 'nanowires', 'onlyharmonic', 'espresso')
  classmethod from_dict(control_dict: dict) → Self

    Write a CONTROL file from a Python dictionary. Description and default parameters can be found at https://bitbucket.org/sousaw/shengbte/src/master/. Note some parameters are mandatory. Optional parameters default here to None and will not be written to file.

    Parameters:

      control_dict – A Python dictionary of ShengBTE input parameters.

  classmethod from_file(filepath: str) → Self

    Read a CONTROL namelist file and output a ‘Control’ object.

    Parameters:

      filepath – Path of the CONTROL file.

    Returns:

      ‘Control’ object with parameters instantiated.

  classmethod from_structure(structure: Structure | IStructure, reciprocal_density: int | None = 50000, **kwargs) → Control

    Get a ShengBTE control object from a structure.

    Parameters:

      - structure – A structure object.

      - reciprocal_density – If not None, the q-point grid (“ngrid”) will be set using this density.

      - kwargs – Additional options to be passed to the Control constructor. See the docstring of the __init__ method for more details

    Returns:

      A ShengBTE control object.

  get_structure() → Structure

    Get a pymatgen Structure from a ShengBTE control object.

    The control object must have the “lattvec”, “types”, “elements”, and “positions” settings otherwise an error will be thrown.

    Returns:

      The structure.

  params_keys = ('t', 't_min', 't_max', 't_step', 'omega_max', 'scalebroad', 'rmin', 'rmax', 'dr', 'maxiter', 'nticks', 'eps')
  required_params = ('nelements', 'natoms', 'ngrid', 'lattvec', 'types', 'elements', 'positions', 'scell')
  to_file(filename: str = 'CONTROL') → None

    Write ShengBTE CONTROL file from ‘Control’ object.

    Parameters:

      filename – A file name.

## pymatgen.io.template module

This module defines a simple concrete implementation of the InputGenerator class that can be used to facilitate writing large numbers of input files based on a template.

class TemplateInputGen

  Bases: `InputGenerator`

  Concrete implementation of InputGenerator that is based on a single template input file with variables.

  This class is provided as a low-barrier way to support new codes and to provide an intuitive way for users to transition from manual scripts to pymatgen I/O classes.

  get_input_set(template: PathLike, variables: dict | None = None, filename: PathLike = 'input.txt') → InputSet
    Parameters:

      - template – the input file template containing variable strings to be replaced.

      - variables – dict of variables to replace in the template. Keys are the text to replaced with the values, e.g. {“TEMPERATURE”: 298} will replace the text $TEMPERATURE in the template. See Python’s Template.safe_substitute() method documentation for more details.

      - filename – the file to be written.

## pymatgen.io.wannier90 module

Modules for working with wannier90 input and output.

class Unk(ik: int, data: ndarray)

  Bases: `object`

  Object representing the data in a UNK file.

  ik

    Index of kpoint for this file.

    Type:

      int

  data

    Numpy array that contains the wavefunction data in the UNK file. The shape should be (nbnd, ngx, ngy, ngz) for regular calculations and (nbnd, 2, ngx, ngy, ngz) for noncollinear calculations.

    Type:

      numpy.ndarray

  is_noncollinear

    True if data is from a noncollinear calculation.

    Type:

      bool

  nbnd

    Number of bands in data.

    Type:

      int

  ng

    Sequence of three integers that correspond to the grid size of the given data. The definition is ng = (ngx, ngy, ngz).

    Type:

      tuple

  Initialize Unk class.

  Parameters:

    - ik (int) – index of the kpoint UNK file is for

    - data (np.ndarray) – data from the UNK file that has shape (nbnd, ngx, ngy, ngz) or (nbnd, 2, ngx, ngy, ngz) if noncollinear

  property data: ndarray

    contains the wavefunction data in the UNK file. The shape should be (nbnd, ngx, ngy, ngz) for regular calculations and (nbnd, 2, ngx, ngy, ngz) for noncollinear calculations.

    Type:

      np.ndarray

  classmethod from_file(filename: PathLike) → Self

    Reads the UNK data from file.

    Parameters:

      filename (str) – path to UNK file to read

    Returns:

      Unk object

  ik: int
  is_noncollinear: bool
  nbnd: int
  ng: Sequence[int]
  write_file(filename: PathLike) → None

    Write the UNK file.

    Parameters:

      filename (str) – path to UNK file to write, the name should have the form ‘UNKXXXXX.YY’ where XXXXX is the kpoint index (Unk.ik) and YY is 1 or 2 for the spin index or NC if noncollinear

## pymatgen.io.xcrysden module

Support for reading XCrysDen files.

class XSF(structure: Structure | IStructure)

  Bases: `object`

  Parse XCrysden files.

  Parameters:

    structure (Structure) – Structure object.

  classmethod from_str(input_string: str, cls_=None) → Self

    Initialize a Structure object from a string with data in XSF format.

    Parameters:

      - input_string – String with the structure in XSF format. See http://www.xcrysden.org/doc/XSF.html

      - cls – Structure class to be created. default: pymatgen structure

    Example file:

      CRYSTAL see (1) these are primitive lattice vectors (in Angstroms) PRIMVEC 0.0000000 2.7100000 2.7100000 see (2) 2.7100000 0.0000000 2.7100000 2.7100000 2.7100000 0.0000000

      these are conventional lattice vectors (in Angstroms) CONVVEC 5.4200000 0.0000000 0.0000000 see (3) 0.0000000 5.4200000 0.0000000 0.0000000 0.0000000 5.4200000

      these are atomic coordinates in a primitive unit cell (in Angstroms) PRIMCOORD 2 1 see (4) 16 0.0000000 0.0000000 0.0000000 see (5) 30 1.3550000 -1.3550000 -1.3550000

  to_str(atom_symbol: bool = True) → str

    Get a string with the structure in XSF format See http://www.xcrysden.org/doc/XSF.html.

    Parameters:

      atom_symbol (bool) – Uses atom symbol instead of atomic number. Defaults to True.

## pymatgen.io.xr module

This module provides input and output mechanisms for the xr file format, which is a modified CSSR file format and, for example, used in GULP. In particular, the module makes it easy to remove shell positions from relaxations that employed core-shell models.

class Xr(structure: Structure)

  Bases: `object`

  For working with XR files.

  Parameters:

    structure (Structure | IStructure) – Structure object to create the Xr object.

  classmethod from_file(filename: str | Path, use_cores: bool = True, thresh: float = 0.0001) → Self

    Reads an xr-formatted file to create an Xr object.

    Parameters:

      - filename (str) – name of file to read from.

      - use_cores (bool) – use core positions and discard shell positions if set to True (default). Otherwise, use shell positions and discard core positions.

      - thresh (float) – relative threshold for consistency check between cell parameters (lengths and angles) from header information and cell vectors, respectively.

    Returns:

      Xr object corresponding to the input

        file.

    Return type:

      xr (Xr)

  classmethod from_str(string: str, use_cores: bool = True, thresh: float = 0.0001) → Self

    Creates an Xr object from a string representation.

    Parameters:

      - string (str) – string representation of an Xr object.

      - use_cores (bool) – use core positions and discard shell positions if set to True (default). Otherwise, use shell positions and discard core positions.

      - thresh (float) – relative threshold for consistency check between cell parameters (lengths and angles) from header information and cell vectors, respectively.

    Returns:

      Xr object corresponding to the input

        string representation.

    Return type:

      xr (Xr)

  write_file(filename: str | Path) → None

    Write out an xr file.

    Parameters:

      filename (str) – name of the file to write to.

## pymatgen.io.xyz module

Module implementing an XYZ file object class.

class XYZ(mol: Molecule | Structure | Sequence[Molecule | Structure], coord_precision: int = 6)

  Bases: `object`

  Basic class for importing and exporting Molecules or Structures in XYZ format.

  Note

  Exporting periodic structures in the XYZ format will lose information about the periodicity. Essentially, only Cartesian coordinates are written in this format and no information is retained about the lattice.

  Parameters:

    - mol (Molecule | Structure) – Input molecule or structure or list thereof.

    - coord_precision – Precision to be used for coordinates.

  property all_molecules: list[Molecule]

    All the frames of molecule associated with this XYZ.

  as_dataframe()

    Generate a coordinates data frame with columns: atom, x, y, and z In case of multiple frame XYZ, returns the last frame.

    Returns:

      pandas.DataFrame

  classmethod from_file(filename: str | Path) → Self

    Creates XYZ object from a file.

    Parameters:

      filename – XYZ filename

    Returns:

      XYZ object

  classmethod from_str(contents: str) → Self

    Creates XYZ object from a string.

    Parameters:

      contents – String representing an XYZ file.

    Returns:

      XYZ object

  property molecule: Molecule

    Molecule associated with this XYZ. In case of multi-frame XYZ, returns the last frame.

  write_file(filename: str) → None

    Write XYZ file.

    Parameters:

      filename (str) – File name of output file.

## pymatgen.io.zeopp module

Module implementing classes and functions to use Zeo++ by Maciej Haranczyk.

If using this module, cite the following paper on Zeo++: T.F. Willems, C.H. Rycroft, M. Kazi, J.C. Meza, and M. Haranczyk, Algorithms and tools for high-throughput geometry-based analysis of crystalline porous materials, Microporous and Mesoporous Materials, 149 (2012) 134-141.

### Zeo++ Installation Steps:

A stable version of Zeo++ can be obtained from https://zeoplusplus.org. Instructions can be found at https://www.zeoplusplus.org/download.html

### Zeo++ Post-Installation Checking:

1. Go to pymatgen/io/tests and run “python test_zeoio.py” If Zeo++ python bindings are properly installed, the tests should pass. One or two tests will be skipped.

2. Go to pymatgen/analysis/defects/tests and run “python test_point_defects.py”. Lots of tests will be skipped if GULP is not installed. But there should be no errors.

class ZeoCssr(structure: Structure)

  Bases: `Cssr`

  ZeoCssr adds extra fields to CSSR sites to conform with Zeo++ input CSSR format. The coordinate system is rotated from xyz to zyx. This change aligns the pivot axis of pymatgen (z-axis) to pivot axis of Zeo++ (x-axis) for structural modifications.

  Parameters:

    structure – A structure to create ZeoCssr object.

  classmethod from_file(filename: str | Path) → Self

    Reads a CSSR file to a ZeoCssr object.

    Parameters:

      filename – Filename to read from.

    Returns:

      ZeoCssr object.

  classmethod from_str(string: str) → Self

    Reads a string representation to a ZeoCssr object.

    Parameters:

      string – A string representation of a ZeoCSSR.

    Returns:

      ZeoCssr object.

class ZeoVoronoiXYZ(mol)

  Bases: `XYZ`

  Read Voronoi Nodes from XYZ file written by Zeo++. The sites have an additional column representing the voronoi node radius. The voronoi node radius is represented by the site property voronoi_radius.

  Parameters:

    mol – Input molecule holding the voronoi node information.

  classmethod from_file(filename: str | Path) → Self

    Creates XYZ object from a file.

    Parameters:

      filename – XYZ filename

    Returns:

      XYZ object

  classmethod from_str(contents: str) → Self

    Creates Zeo++ Voronoi XYZ object from a string. from_string method of XYZ class is being redefined.

    Parameters:

      contents – String representing Zeo++ Voronoi XYZ file.

    Returns:

      ZeoVoronoiXYZ object

get_free_sphere_params(structure, rad_dict=None, probe_rad=0.1)

  Analyze the void space in the input structure using voronoi decomposition Calls Zeo++ for Voronoi decomposition.

  Parameters:

    - structure – pymatgen Structure

    - rad_dict (optional) – Dictionary of radii of elements in structure. If not given, Zeo++ default values are used. Note: Zeo++ uses atomic radii of elements. For ionic structures, pass rad_dict with ionic radii

    - probe_rad (optional) – Sampling probe radius in Angstroms. Default is 0.1 A

  Returns:

    voronoi nodes as pymatgen Structure within the unit cell defined by the lattice of input structure voronoi face centers as pymatgen Structure within the unit cell defined by the lattice of input structure

get_high_accuracy_voronoi_nodes(structure, rad_dict, probe_rad=0.1)

  Analyze the void space in the input structure using high accuracy voronoi decomposition. Calls Zeo++ for Voronoi decomposition.

  Parameters:

    - structure – pymatgen Structure

    - rad_dict (optional) – Dictionary of radii of elements in structure. If not given, Zeo++ default values are used. Note: Zeo++ uses atomic radii of elements. For ionic structures, pass rad_dict with ionic radii

    - probe_rad (optional) – Sampling probe radius in Angstroms. Default is 0.1 A

  Returns:

    voronoi nodes as pymatgen Structure within the unit cell defined by the lattice of input structure voronoi face centers as pymatgen Structure within the unit cell defined by the lattice of input structure

get_voronoi_nodes(structure, rad_dict=None, probe_rad=0.1)

  Analyze the void space in the input structure using voronoi decomposition Calls Zeo++ for Voronoi decomposition.

  Parameters:

    - structure – pymatgen Structure

    - rad_dict (optional) – Dictionary of radii of elements in structure. If not given, Zeo++ default values are used. Note: Zeo++ uses atomic radii of elements. For ionic structures, pass rad_dict with ionic radii

    - probe_rad (optional) – Sampling probe radius in Angstroms. Default is 0.1 A

  Returns:

    voronoi nodes as pymatgen Structure within the unit cell defined by the lattice of input structure voronoi face centers as pymatgen Structure within the unit cell defined by the lattice of input structure