herosdevices.hardware.dummy.electronics

Dummy low level electronics for use in testing. Do not use in production.

Module Contents

class herosdevices.hardware.dummy.electronics.RFSourceDummy[source]

Bases: herosdevices.interfaces.atomiq.RFSource

Dummy class implementing an atomiq compatible RF source.

frequency: float = 1000000.0
amplitude: float = 0.1
phase: float = 0.0
freq_max: float = 100000000.0
freq_min: float = 100000.0
amp_max: float = 1.0
amp_min: float = 0.0
default_ramp_steps: int = 30
blind: bool = False
class herosdevices.hardware.dummy.electronics.VoltageSourceDummy[source]

Bases: herosdevices.interfaces.atomiq.VoltageSource

Dummy class implementing an atomiq compatible voltage source.

min_voltage: float
max_voltage: float
default_ramp_steps: int = 30
blind: bool = False
class herosdevices.hardware.dummy.electronics.CurrentSourceDummy[source]

Bases: herosdevices.interfaces.atomiq.CurrentSource

Dummy class implementing an atomiq compatible current source.

min_current: float
max_current: float
default_ramp_steps: int = 30
blind: bool = False
class herosdevices.hardware.dummy.electronics.ADCChannelDummy[source]

Bases: herosdevices.interfaces.atomiq.ADCChannel

Dummy class implementing a single atomiq compatible ADC channel.

measure(samples: int = 1, cached: bool = False, channel: str = '') float[source]

‘Meaure’ a fake voltage.

class herosdevices.hardware.dummy.electronics.SwitchDummy[source]

Bases: herosdevices.interfaces.atomiq.Switch

Dummy class implementing an atomiq compatible switch.

on() None[source]

Set the switch state to True.

off() None[source]

Set the switch state to False.

is_on() bool[source]

Return the current switch state.