## events.verify_trajectory_geometry_ndim()


Ensure each linked geometry's index length matches its trajectory's ndim.


Usage

``` python
events.verify_trajectory_geometry_ndim(
    session,
    flush_context,
    instances,
)
```


A trajectory without an ndim adopts the index length of its first link. This runs before the flush (rather than in a mapper-level "before_insert" hook) so that the inferred `TrajectoryRow.ndim` is persisted too.
