models
#
Common pydantic validators.
Classes:
-
OpenMMQuantity
–A pydantic safe OpenMM quantity type validates unit compatibility.
-
BaseModel
–
OpenMMQuantity
#
Bases: Quantity
A pydantic safe OpenMM quantity type validates unit compatibility.
BaseModel
pydantic-model
#
Bases: BaseModel
Config:
extra
:'forbid'
validate_default
:True
validate_assignment
:True
model_dump_yaml
#
Dump the model to a YAML representation.
Parameters:
-
output_path
(Path | None
, default:None
) –The (optional) path to save the YAML representation to.
Returns:
-
str
–The YAML representation.