pyna.workflow.tracing#
Dimension-agnostic tracing workflow helpers.
This module keeps orchestration optional. The public tracing functions use
pyna.cache for local disk caching, while the *_flow helpers build
Prefect flows only when Prefect is installed.
Functions#
|
Trace a finite-dimensional continuous trajectory. |
|
Trace a finite-dimensional discrete orbit. |
|
Run the Prefect flow for generic continuous trajectory tracing. |
|
Run the Prefect flow for generic discrete orbit tracing. |
Return the canonical Prefect flow for generic trajectory tracing. |
|
Return the canonical Prefect flow for generic orbit tracing. |
Module Contents#
- pyna.workflow.tracing.trace_trajectory(system: Any, x0: Any, t_span: Any, *, trace_id: str | None = None, dt: Any = None, t_eval: Any = None, cache_namespace: str = 'workflow.trajectory', use_cache: bool = True, cache: bool | None = None, cache_store: pyna.cache.CacheStore | None = None, cache_backend: str = 'npz', **kwargs: Any) Any[source]#
Trace a finite-dimensional continuous trajectory.
systemmust exposetrajectory(x0, t_span, ...)orintegrate(x0, t_span, ...). Local caching is independent of Prefect. When caching is enabled, callers must provide a stabletrace_idbecause arbitrary Python system objects often have process-localreprvalues.
- pyna.workflow.tracing.trace_orbit(map_obj: Any, x0: Any, n_iter: int, *, trace_id: str | None = None, cache_namespace: str = 'workflow.orbit', use_cache: bool = True, cache: bool | None = None, cache_store: pyna.cache.CacheStore | None = None, cache_backend: str = 'npz') Any[source]#
Trace a finite-dimensional discrete orbit.
map_objmay exposeorbit_geometryororbit; the result is the genericpyna.topo.core.Orbitshape used byTopologyWorkflow.
- pyna.workflow.tracing.trace_trajectory_flow(system: Any, x0: Any, t_span: Any, *, trace_id: str | None = None, dt: Any = None, t_eval: Any = None, cache_namespace: str = 'workflow.trajectory', use_cache: bool = True, cache_store: pyna.cache.CacheStore | None = None, cache_backend: str = 'npz', **kwargs: Any) Any[source]#
Run the Prefect flow for generic continuous trajectory tracing.
- pyna.workflow.tracing.trace_orbit_flow(map_obj: Any, x0: Any, n_iter: int, *, trace_id: str | None = None, cache_namespace: str = 'workflow.orbit', use_cache: bool = True, cache_store: pyna.cache.CacheStore | None = None, cache_backend: str = 'npz') Any[source]#
Run the Prefect flow for generic discrete orbit tracing.