PyMatGen Structures¶
Important
This page provides a concise list of available properties and methods, grouped by topic.
Refer to Pymatgen's API docs for detailed descriptions.
Molecole Loading¶
from_dictfrom_filefrom_magnetic_spacegroupfrom_prototypefrom_sitesfrom_spacegroupfrom_str
Molecole Exporting¶
as_dataframeas_dictcopytoto_json
Key Attributes¶
compositionlatticesitesspeciesspecies_and_occutypes_of_specietypes_of_species
Basic Properties¶
site_propertiesatomic_numberscart_coordschargedensitydistance_matrixformulafrac_coordsis_3d_periodicis_orderedis_validnum_sitespbcsymbol_setvolume
Inter-structure Utils¶
interpolatematches
Structure Modification¶
Composition Transforms¶
substitutereplacereplace_species
Cell Transforms¶
apply_operationscale_latticeapply_strainmake_supercell
Site Transforms¶
merge_sitesrotate_sitestranslate_sitesperturb
Charges¶
set_chargeunset_chargeadd_oxidation_state_by_elementadd_oxidation_state_by_guessadd_oxidation_state_by_siteadd_site_propertyadd_spin_by_elementadd_spin_by_siteremove_oxidation_statesremove_site_propertyremove_sitesremove_speciesremove_spin
List-like API¶
appendcountextendindexinsertntypesppopremovereversesort
Other¶
relax
Analysis Methods¶
extract_clustergroup_by_typesget_all_neighborsget_all_neighbors_oldget_all_neighbors_pyget_angleget_dihedralget_distanceget_miller_index_from_site_indexesget_neighbor_listget_neighborsget_neighbors_in_shellget_neighbors_oldget_orderingsget_primitive_structureget_reduced_structureget_sites_in_sphereget_sorted_structureget_space_group_infoget_symmetric_neighbor_listindices_from_symbol
JSON Utils¶
unsafe_hashvalidate_monty_v1validate_monty_v2