mag4.reports
Pretty-printers for distance tables, J-shell summaries and four-state reports.
Functions
|
Tabular dump of the inequivalent J shells. |
|
Tabular dump of all M–M pairs found within |
|
Print (and optionally write) the full four-state analysis report. |
- mag4.reports.print_mm_distances(results, element, cutoff, structure)[source]
Tabular dump of all M–M pairs found within
cutoff.- Return type:
- mag4.reports.print_inequivalent(groups, element, tol, *, ligand_elements=None, bond_cutoff=2.5, angle_tol=1.0, ll_cutoff=0.0, z_formula_units=1)[source]
Tabular dump of the inequivalent J shells.
The
Multip.column gives the number of distinct M–M dimers per primitive cell, taking periodic boundary conditions into account (computed via pymatgen’sStructure.get_neighbors()with canonical(min_idx, max_idx, image)deduplication). A second/f.u.column normalises that byz_formula_units(the number of formula units in the primitive cell, taken from the reduced composition).When
ligand_elementsis supplied the shells were produced bymag4.geometry.group_inequivalent_geom(); an extraM-L-M bridgecolumn is shown. Without it, the legacymag4.io_cif.group_inequivalent()output is printed.
- mag4.reports.print_report(all_configs, unique_groups, atoms, couplings, ref_bath, n_sym_ops, supercell, output_file=None, *, per_config_cells=None, n_supercell_atoms=None, multiplicities=None, config_coefficients=None, ring_coefficients=None, ring_edge=None, spectator_shells=None, spectator_coefficients=None, tr_pairs=None, config_msgs=None)[source]
Print (and optionally write) the full four-state analysis report.
per_config_cells(optional) is a list, one dict per unique config inunique_groupsorder, with keyscell(6-tuple a,b,c,α,β,γ),n_atoms(int),volume_A3(float),sg_number(int),sg_symbol(str). When supplied, a one-line cell summary is emitted after eachConfig #Nblock somag4-extractcan rescale per-config energies for the four-state formula.- Return type:
- Parameters:
all_configs (List[FourStateConfig])
unique_groups (List[List[FourStateConfig]])
atoms (list)
couplings (list)
ref_bath (list)
n_sym_ops (int)
output_file (str | None)
n_supercell_atoms (int | None)
config_coefficients (List | None)
ring_edge (float | None)
spectator_shells (List | None)
spectator_coefficients (List | None)
config_msgs (List | None)