pyphi.resolve_ties.cascade#
- pyphi.resolve_ties.cascade(candidates, levels, *, context, on_unresolved='defer')[source]#
Walk a cascade of postulate-level reductions.
At each level, apply
level.opwithlevel.keyto identify surviving candidates. If a single candidate remains, the cascade resolves. If multiple remain and the next level is within budget, recurse on that level. Otherwise:on_unresolved='defer'(default): returnUNRESOLVED_WITHIN_BUDGETcarrying the tied set for downstream surfacing.on_unresolved='fail': raiseNotAComplex.on_unresolved='warn': emit a warning and return as ‘defer’.
- Parameters:
candidates (Iterable)
levels (Sequence[CascadeLevel])
context (ResolutionContext)
on_unresolved (Literal['fail', 'defer', 'warn'])
- Return type: