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:
objectConsolidated 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
Noneif the magnet constant is not configured.voltage (float | None) – Output voltage in volts, or
Noneif not reported by the instrument.persistent (bool) –
Truewhen the supply is operating in persistent mode.heater_on (bool | None) –
Truewhen the persistent switch heater is energised,Falsewhen it is off, orNoneif the state is unknown.heater_state (HeaterState) – Rich persistent-switch heater state including transition states.
at_target (bool) –
Truewhen 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
Noneif no message is available.
- heater_state: HeaterState = 'unknown'¶
- state: MagnetState¶