Skip to contents

Separated from apply_gate_hierarchy() so the decision is testable on its own and so the reason travels with it as text, rather than being implied by a threshold silently becoming NA.

Usage

gate_needs_autofix(
  source,
  enabled = FALSE,
  kept = NA_real_,
  parent = NA_real_,
  min_retention = 0.05
)

Arguments

source

The source string resolve_threshold() returned.

enabled

Whether --auto-fix-gates is set.

Value

list(skip, reason). skip = TRUE means apply no cut at this gate.