nvflare.app_common.filters.dxo_blocker module

class DXOBlocker(data_kinds: List[str], allow_data_kinds: bool = False)[source]

Bases: DXOFilter

Block certain kinds of DXO objects.

  • allow_data_kinds – allow or block configured data kinds. If True, block everything not in

  • False (the list; If) –

  • list. (block everything in the configured) –

  • data_kinds – kinds of DXO object to block

process_dxo(dxo: DXO, shareable: Shareable, fl_ctx: FLContext) None | DXO[source]
  • dxo (DXO) – DXO to be filtered.

  • shareable – that the dxo belongs to

  • fl_ctx (FLContext) – only used for logging.

Returns: filtered dxo