parq_blockmodel.schema.utils.select_df_eval_operations

parq_blockmodel.schema.utils.select_df_eval_operations#

parq_blockmodel.schema.utils.select_df_eval_operations(operations, targets)[source]#

Recursively select df-eval operations and their dependencies.

Walks the operation dependency tree to include all required operations for the specified targets.

Parameters:
  • operations (dict[str, dict[str, Any]]) – Available operations keyed by column name.

  • targets (Iterable[str]) – Target column names to include.

Returns:

Subset of operations including targets and all dependencies.

Return type:

dict[str, dict[str, Any]]