For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
OverviewCodaControlAPI ReferenceChangelog
OverviewCodaControlAPI ReferenceChangelog
  • Coda API
  • Control API
  • Stanza API
    • stanza
    • cli
    • context
    • device
    • exceptions
    • models
    • pyvisa
    • registry
      • routines
        • builtins
        • health_check
        • setup
        • utils
      • core
    • timing
    • utils
LogoLogo
On this page
  • Module Contents
  • Functions
  • API
Stanza APIroutinesbuiltins

stanza.routines.builtins.utils

Was this page helpful?
Built with

Utility functions for built-in routines.

Module Contents

Functions

NameDescription
filter_gates_by_groupFilter a list of gates to only include those in the current group.

API

1stanza.routines.builtins.utils.filter_gates_by_group(
2 ctx: stanza.routines.core.RoutineContext, gate_list: list[str]
3) -> list[str]

Filter a list of gates to only include those in the current group.

If group is available in ctx.resources, filters gates to only include those present in the group. Otherwise, returns the original list.

Parameters:

ctx
stanza.routines.core.RoutineContext

Routine context containing device resources and optional group.

gate_list
list[str]

List of gate names to filter.

Returns:

Filtered list of gates that are in the current group, or original list if no group filtering is active.