labscript_utils.unitconversions.get_unit_conversion_class

labscript_utils.unitconversions.get_unit_conversion_class(fullname)[source]

import and return the unit conversion class with the given name. Ideally this is a fully qualified class name with an absolute import path, i.e. path.to.some.module.ClassName. But if it is just a single name, we fall back to looking through all classes defined in submodules. This allows backward compatibility with old shot files that do not have the full name saved.