NASA-AMMOS / aerie

A software framework for modeling spacecraft.
https://nasa-ammos.github.io/aerie-docs/
MIT License
73 stars 19 forks source link

Hooks to run code pre/post simulation, scheduling #1557

Open parkerabercrombie opened 2 months ago

parkerabercrombie commented 2 months ago

Checked for duplicates

Yes - I've already checked

Alternatives considered

Yes - and alternatives don't suffice

Related problems

There is no way to run code within Aerie at the start or end of a simulation (or scheduling run). For example, to have a post-sim block of code that would feed a resource timeline to an external model, or capture a "final conditions" state.

Describe the feature request

Provide a way for a mission model to include functions executed at the start/end of a simulation. One use case I can imagine would be to compute a new resource timeline, so would be beneficial to be able to set resources from within a post-sim hook (these could be external resource datasets to differentiate from "internal" resources).

Similarly, it would be useful to hook functions to the start/end of a scheduling run.