transform_factory

bapsf_motion.transform.helpers.transform_factory(drive: Drive, *, tr_type: str, **settings)

Factory function for calling and instantiating motion exclusion classes from the registry.

Parameters:
  • drive (Drive) – The instance of Drive the coordinate transformer will be working with.

  • tr_type (str) – Name of the coordinate transform type.

  • settings – Keyword arguments to be passed to the retrieved coordinate transform class.

Returns:

Instantiated coordinate transform class associated with tr_type.

Return type:

BaseTransform