Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ratapi/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ def start_matlab():
future = None
if os.environ.get("DELAY_MATLAB_START", "0") == "0":
with suppress(ImportError):
import atexit

import matlab.engine

future = matlab.engine.start_matlab(background=True)
atexit.register(lambda: future.result())

return future

Expand Down