stoner_measurement.instruments.magnet_controller.MagnetStatus

class stoner_measurement.instruments.magnet_controller.MagnetStatus(state: MagnetState, current: float, field: float | None, voltage: float | None, persistent: bool, heater_on: bool | None, at_target: bool, heater_state: HeaterState = HeaterState.UNKNOWN, persistent_field: float | None = None, persistent_current: float | None = None, message: str | None = None)[source]

Bases: object

Consolidated status snapshot of a magnet power supply.

Variables:
  • state (MagnetState) – Current operational state of the supply.

  • current (float) – Output current in amps.

  • field (float | None) – Estimated magnetic field in tesla, or None if the magnet constant is not configured.

  • voltage (float | None) – Output voltage in volts, or None if not reported by the instrument.

  • persistent (bool) – True when the supply is operating in persistent mode.

  • heater_on (bool | None) – True when the persistent switch heater is energised, False when it is off, or None if the state is unknown.

  • heater_state (HeaterState) – Rich persistent-switch heater state including transition states.

  • at_target (bool) – True when the output has reached the programmed target.

  • persistent_field (float | None) – Field trapped when entering persistent mode, if known.

  • persistent_current (float | None) – Current trapped in the persistent magnet circuit, if known.

  • message (str | None) – Optional human-readable status or error message from the instrument, or None if no message is available.

at_target: bool
current: float
field: float | None
heater_on: bool | None
heater_state: HeaterState = 'unknown'
message: str | None = None
persistent: bool
persistent_current: float | None = None
persistent_field: float | None = None
state: MagnetState
voltage: float | None