osmose.live_movement¶
Live-during-run movement snapshots + queue transport (Python engine only).
Pure core module — no UI imports. Produces a per-step MovementSnapshot of living
focal schools’ positions for the Run-page live map, and a throttling queue observer the
engine step hook calls. queue.Queue is stdlib, so the transport helper stays here and
is unit-testable.
Functions
|
Build a snapshot of focal + located + living schools at |
|
True when the config has a regular grid that yields live-movement frames (GridSpec.from_config succeeds — needs grid.nlon/nlat/upleft.*/lowright.*). |
|
Human progress label from 1-based completed-step count done. |
|
Step-observer that pushes (done, n_steps, elapsed_s) to progress_q every step (done = step + 1, 1-based) and delegates to live_observer when given. |
|
Return a step-observer that builds a snapshot and enqueues it (drop-oldest). |
|
Return |
Classes
|
One frame of living focal schools' positions for the live map. |