Skip to content

Conversation

@mortbopet
Copy link
Contributor

When using esi-cosim as a library, it is very inconvenient that the default behavior of the run command assumes that esi-cosim is executed as a standalone script (i.e. either tries to run a user-provided command or waits for user input). To better serve as a library, factor out the inner simulator process execution to run_proc s.t. other python code can call this, and get a handle to the simulator process and port.

When using esi-cosim as a library, it is very inconvenient that the default behavior of the `run` command assumes that `esi-cosim` is executed as a standalone script (i.e. either tries to run a user-provided command or waits for user input).
To better serve as a library, factor out the inner simulator process execution to `run_proc` s.t. other python code can call this, and get a handle to the simulator process and port.
@mortbopet mortbopet requested a review from teqdruid as a code owner September 15, 2025 09:15
Copy link
Contributor

@teqdruid teqdruid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Just make one of the two modifications I gave.

@mortbopet mortbopet merged commit f048b4c into main Sep 16, 2025
8 checks passed
@mortbopet mortbopet deleted the dev/mpetersen/esi_sim_proc branch September 16, 2025 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants