-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow BLACS to use conversion classes defined outside labscript_utils
Labscript has long-since saved unit conversions with their full import path instead of just a class name, and `labscript_utils.unitconversisons` has provided a function `get_unit_conversion_class()` to look them up. Here we just use that function to look up unit calibration classes. `get_unit_conversion_class()` falls back to the old behaviour of importing all unit conversion modules in `labscript_utils.unitconversisons` and looking for the given class if it encounters an unqualified class name.
- Loading branch information
1 parent
88eb635
commit 9ed2890
Showing
1 changed file
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters