Open dihm opened 4 months ago
Yep, those functions look completely broken and should be replaced or removed. The correct way to do it is inside the batch_compiler.py
file.
I know you said you want to do it synchronously, but I would consider still using the async functions (that spawn a new process running the batch_compiler.py
file) and just waiting for it to complete in the terminal. I'm pretty sure you should be able to redirect the compilation output to the terminal as well? The advantage of doing this is that if it crashes badly, it won't take down the whole command and you can output useful error messages and/or continue on with other things.
Makes sense. I'll put together a PR to remove the synchronous functions. I may also add some default options to labscript_compile_*
functions so that they just work when compiled naively.
I'm currently working with a student on a modification to the installer that will automatically compile the example_apparatus connection table during
labscript_profile_create
. Goal is to make initial install of labscript less annoying by ensuring BLACS can open with something without requiring manual steps.Trying things out, it seemed like the synchronous compile functions in runmanager would be perfect (
runmanager.compile_labscript
and/orrunmanager.compile_labscript_with_globals_files
). But these functions are not used anywhere in the suite and don't appear to work out of the box.Gives the following error
Question is: are we just using these functions incorrectly, or are they actually deprecated and should just be deleted/reworked?