ADCS.helpers.animations.godot.from_results module¶
- ADCS.helpers.animations.godot.from_results.results_to_vizlog(sim, path, ephem=None, torques='nominal', overwrite=False, model=None, overlays='default', extra_channels=None, bookmarks=None, sites=None)[source]¶
Write simulation results as an
adcs-vizlogdirectory.This is a post-processing pass: it never runs inside the simulation loop. Environment quantities that the results do not keep (Moon, Earth orientation, shadow factor) are recomputed in one vectorized pass from the recorded times.
Torques (
torques="nominal") are recomputed on a copy of the satellite with bias applied but noise disabled, so they are the nominal torques at each recorded state, not bit-identical to what the integrator applied when noise is enabled. The channels carry that note asprovenance.All runs share one epoch (the first run’s first sample);
t_sof later runs is relative to it.- Parameters:
sim (SimulationResults) – Results from
simulate()orsimulate_mc().path (str | Path) – Output directory.
ephem (DE421 | None) – Ephemeris for recomputed quantities and for rebuilding orbital states stored as dictionaries. Defaults to the one the recorded orbital states use, else a new
Ephemeris.torques (str) –
"nominal"or"none".overwrite (bool) – Replace an existing vizlog at
path.model (str | Path | None) – Spacecraft model sidecar (
.viz.json) fromimport_spacecraft(), referenced fromscene.json. Without it the viewer draws the drag/SRP panels.overlays (Any) – Overlays for the viewer (
ADCS.helpers.animations.godot.overlays):"default"(default_overlays()), a list of overlay objects/descriptors, orNone.extra_channels (Dict[str, ndarray] | None) – Additional per-row channels,
{name: array (n_rows, width)}, e.g.joint_<node>angles [rad] that drive hinged model parts, oruser_<name>vectors for arrows. Applied to every run, so all runs must have that many rows.bookmarks (List[Any] | None) – Named moments for the viewer’s timeline (
Bookmark, byt_sorutc).sites (List[Any] | None) – Ground sites whose passes the timeline shows (
GroundSite).
- Returns:
The vizlog path.
- Return type:
Path