Skip to main content

events.verify_property_values_before_flush()

Convert property values to their kind’s native units and dtype, and validate.

Usage

Source

events.verify_property_values_before_flush(
    session,
    flush_context,
    instances,
)

A pint.Quantity is converted to the kind’s units; other values are assumed to be in those units already.