Skip to content

RemoveProcessor

Vector processor that removes layers

Implements the VectorProcessor protocol.

PARAMETER DESCRIPTION
layer_names

Layer name, layer names, no layers (False or None), or all layers (True)

TYPE: str | set[str] | bool | None DEFAULT: True

from_config classmethod

Creates a remove processor from the configuration.

PARAMETER DESCRIPTION
config

Configuration

TYPE: RemoveProcessorConfig

RETURNS DESCRIPTION
RemoveProcessor

Remove processor

__call__

Removes the layers.

PARAMETER DESCRIPTION
vector

Vector

TYPE: Vector

RETURNS DESCRIPTION
Vector

Vector


RemoveProcessorConfig

Bases: pydantic.BaseModel

Configuration for the from_config class method of RemoveProcessor

Create the configuration from a config file
  • Use null instead of None
  • Use false or true instead of False or True
Example

You can create the configuration from a config file.

config.yaml
package: 'aviary'
name: 'RemoveProcessor'
config:
  layer_names: true
ATTRIBUTE DESCRIPTION
layer_names

Layer name, layer names, no layers (False or None), or all layers (True) - defaults to True

TYPE: str | set[str] | bool | None