ntsa.tools.runners
At a glance
| Function | One-liner |
|---|---|
respawn(model, psi0=None, dt=None, **overrides) |
Fresh model instance with alpha0 + fixed_params carried over; overrides win. |
run_long(model, t_run, t_transient=None, trim_transient=True) |
Integrate past transient; returns (t, y, psi) for member 0 (serial, m=1). Residual transient drift is detected and trimmed (printed note). |
Full reference
ntsa.tools.runners
Model runners: fresh instances and long integrations past the transient.
respawn(model, psi0=None, dt=None, **overrides)
Fresh instance of type(model) with alpha0 and fixed params carried over.
Parameters in overrides win over the carried-over values. psi0 defaults
to model.psi0[:, 0]; dt defaults to model.dt.
Source code in ntsa/tools/runners.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | |
run_long(model, t_run, t_transient=None, trim_transient=True)
Integrate model past the transient, then record t_run time units.
Mutates model (history is reset to t=0 after the transient) and closes it.
With trim_transient (default), residual transient drift that outlives
t_transient is detected on the first observable (stationary_start)
and the leading drifting samples are dropped, with a printed note — raise
t_transient to keep the full horizon.
Returns:
| Name | Type | Description |
|---|---|---|
t |
ndarray(Nt)
|
|
y |
ndarray(Nt, Nq)
|
Observable history of ensemble member 0. |
psi |
ndarray(Nt, Nphi)
|
State history of ensemble member 0. |
Source code in ntsa/tools/runners.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |