broken_handler_refs#
- penzai.deprecated.v1.data_effects.effect_base.broken_handler_refs(model_tree: Any) list[HandledEffectRef][source]#
Collects effect types of each broken
HandledEffectRefin a (sub)model.A broken handler reference occurs when a model contains a
HandledEffectRefand is then removed from the handler for that ref. This is OK if you are making a targeted modification and will insert it back into the handler, but it can cause problems if the subtree is extracted and used in a different context.- Parameters:
model_tree – A pytree for a model or submodel.
- Returns:
A list of all broken
HandledEffectRefnodes in the submodel.