layer_factoryο
- bapsf_motion.motion_builder.layers.helpers.layer_factory(ds: Dataset, *, ly_type: str, **settings)ο
Factory function for calling and instantiating motion layer classes from the registry.
- Parameters:
ds (
DataSet) β TheDataSetbeing used to construction the motion list.ly_type (str) β Name of the motion layer type.
settings β Keyword arguments to be passed to the retrieved motion layer class.
- Returns:
Instantiated motion layer class associated with
ly_type.- Return type: