neclib.devices.attenuator.simulator#

Aliases#

CurrentAttenuator

None

NetworkAttenuator

None

class NetworkAttenuatorSimulator[source]#

Bases: NetworkAttenuator

Manufacturer: str = ''#
Model: str = ''#
Identifier: ClassVar[Optional[str]] = 'host'#
is_simulator: ClassVar[bool] = True#
set_loss(dB, id)[source]#
Parameters:
  • dB (int) –

  • id (str) –

get_loss(id)[source]#
Parameters:

id (str) –

Return type:

Quantity

finalize()[source]#
Return type:

None

class CurrentAttenuatorSimulator[source]#

Bases: CurrentAttenuator

Manufacturer: str = ''#
Model: str = ''#
Identifier: ClassVar[Optional[str]] = 'rsw_id'#
is_simulator: ClassVar[bool] = True#
get_outputrange(id)[source]#
Parameters:

id (int) –

Return type:

dict

set_outputrange(id, outputrange)[source]#
Parameters:
  • id (int) –

  • outputrange (str) –

output_current(id, current)[source]#
Parameters:
  • id (int) –

  • current (float) –

finalize()[source]#