exa.common.sweep.util.linear_index_sweep

exa.common.sweep.util.linear_index_sweep#

linear_index_sweep(parameter, length)#

Produce an NdSweep over a dummy index.

Can be used in places where a “hardware sweep” is needed but not really meaningful.

Parameters:
  • parameter (Parameter) – Data parameter this index is for.

  • length (int) – Number of integers in the dummy sweep.

Returns:

A linear sweep over a parameter whose name is parameter.name + _index and whose data ranges from 0 to length with steps of 1.

Return type:

list[tuple[LinearSweep]]