sdk.filter.create_mapping()

elements.sdk.api.filter

Create a filter mapping.

Map a filter to a computation so that the filter is applied to the computation's results.

Parameters

  • computation_id (str) - The computation ID to map the filter to
  • filter_id (str) - The filter ID to map

Returns

None

Example(s)

# Map a filter to a computation
await sdk.filter.create_mapping(
    computation_id="algorithm-computation-uuid",
    filter_id="filter-uuid"
)