aiida_vibroscopy.utils.validation#

Validation function utilities.

Module Contents#

Functions#

validate_tot_magnetization(→ bool)

Round the total magnetization input and return true if outside the threshold.

validate_matrix(value, _)

Validate the supercell_matrix and primitive_matrix inputs.

validate_positive(value, _)

Validate that value is positive.

aiida_vibroscopy.utils.validation.validate_tot_magnetization(tot_magnetization: float, thr: float = 0.2) bool[source]#

Round the total magnetization input and return true if outside the threshold.

This is needed because ‘tot_magnetization’ must be an integer in the aiida-quantumespresso input parameters.

aiida_vibroscopy.utils.validation.validate_matrix(value, _)[source]#

Validate the supercell_matrix and primitive_matrix inputs.

aiida_vibroscopy.utils.validation.validate_positive(value, _)[source]#

Validate that value is positive.