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) – The DataSet being 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:

BaseLayer