Description
Original report (archived issue) by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
In the spirit of only executing the code you need, and not putting fairly unrelated types of code together, I propose splitting labscript_devices
further. Each LabscriptDeviceClassName.py
in there should become LabscriptDeviceClassName/__init__.py
and the BLACS tab and runviewer parsers should each be put in their own files too, named something like BLACS_tab
and runviewer_parser
or something. These filenames would be required in order for the classes to be found by BLACS and runviewer.
The interfaces to getting these classes would not change under this proposal, and so it would be backward compatible with the programs that use them.
It would still be:
from labscript_devices.LabscriptDeviceClassName import LabscriptDeviceClassName
for labscript, and still
labscript_devices.get_BLACS_tab
and labscript_devices.get_runviewer_parser
for BLACS and runviewer