dodal.devices.beamlines.i15_1.attenuator.Attenuator#

class dodal.devices.beamlines.i15_1.attenuator.Attenuator[source]#

A device to change the attenuation of the beam.

This can be done by doing:

>>> bps.mv(attenuator, 10)
or
>>> bps.mv(attenuator, AttenuatorPositions.TRANS_10)

Where 10 is the transmission in percent.

There are only a specific set of transmissions that can be selected. The allowed list can be found by doing list(AttenuatorPositions)

Parameters:
  • prefix (str)

  • name (str, default: '')

Methods

set(value)

Change the transmission to the specified percentage.

Attributes

set(value: float | AttenuatorPositions)[source]#

Change the transmission to the specified percentage.

Will raise ValueError if the percentage is not possible.

Parameters:

value (float | AttenuatorPositions)