Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support timeout for running simulations with C-API #351

Open
schmoelder opened this issue Dec 13, 2024 · 0 comments
Open

Support timeout for running simulations with C-API #351

schmoelder opened this issue Dec 13, 2024 · 0 comments

Comments

@schmoelder
Copy link
Contributor

(Not sure if this is a CADET-Python issue)

When using the CLI via Python, we can specify a timeout via:

data = subprocess.run(
    [self.cadet_path, str(simulation.filename)],
    timeout=timeout,
    capture_output=True
)

Is something like this also generally possible when running simulations via the C-API?
It can be quite useful at times...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants