hpcflow.sdk.monitoring.run_filters.IndexSelection#

class hpcflow.sdk.monitoring.run_filters.IndexSelection(ranges)#

Bases: object

Sorted, disjoint inclusive ranges of non-negative indices.

Methods

within

Yield selected IDs inside a workflow's valid half-open ID bounds.

Attributes

Parameters:

ranges (tuple[tuple[int, int], ...])

ranges: tuple[tuple[int, int], ...]#
within(stop)#

Yield selected IDs inside a workflow’s valid half-open ID bounds.

Parameters:

stop (int)

Return type:

Iterator[int]