Skip to main content

events.fill_trajectory_axis_values()

Validate trajectory axes, and fill in the values of their geometries.

Usage

Source

events.fill_trajectory_axis_values(
    session,
    flush_context,
    instances,
)

Missing values of measurable axes (distances, angles, dihedrals) are measured from each geometry, and pint.Quantity values are converted to the axis’s units. Adding an axis to a trajectory fills in the values of its existing geometries. Registered after verify_trajectory_geometry_ndim, so that the inferred ndim is available.