mag4.cli.fourstate

CLI: full four-state pipeline (CIF or POSCAR → spin configurations + VASP/WIEN2k inputs).

Functions

build_parser()

main([argv])

parse_couplings(s)

Parse "J1:3.94,J2:6.10"[["J1", 3.94], ["J2", 6.10]].

parse_ref_state(s)

Parse "1,-1,1"[1, -1, 1] with ±1 validation.

mag4.cli.fourstate.parse_couplings(s)[source]

Parse "J1:3.94,J2:6.10"[["J1", 3.94], ["J2", 6.10]].

Return type:

list

Parameters:

s (str)

mag4.cli.fourstate.parse_ref_state(s)[source]

Parse "1,-1,1"[1, -1, 1] with ±1 validation.

Return type:

List[int]

Parameters:

s (str)

mag4.cli.fourstate.build_parser()[source]
Return type:

ArgumentParser

mag4.cli.fourstate.main(argv=None)[source]
Return type:

int