pyepr.hardware.Bruker_MPFU.tune_power

pyepr.hardware.Bruker_MPFU.tune_power(interface, channel, tol=0.1, maxiter=30, bounds=[0, 100], hardware_wait=3, echo='abs', save=True)[source]

Tunes the attenuator of a given channel to a given target using the standard scipy optimisation scripts.

Parameters:
channelstr

The chosen MPFU channel. Options: [‘+<x>’, ‘-<x>’, ‘+<y>’, ‘-<y>’]

tolfloat, optional

The tolerance in attenuator parameter, by default 0.1

maxiterint, optional

The maximum number of iterations in the optimisation, by default 30

Returns:
float

The optimal value of the attenuator parameter

Parameters:

channel (str)

Return type:

float