exclusion_factory

bapsf_motion.motion_builder.exclusions.helpers.exclusion_factory(ds: Dataset, *, ex_type: str, **settings)

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

Parameters:
  • ds (DataSet) – The DataSet being used to construction the motion list.

  • ex_type (str) – Name of the motion exclusion type.

  • settings – Keyword arguments to be passed to the retrieved motion exclusion class.

Returns:

Instantiated motion exclusion class associated with ex_type.

Return type:

BaseExclusion