nomad_camels_sandbox package

Subpackages

Submodules

nomad_camels_sandbox.CAMELS_sandbox module

Created on Wed Mar 6 15:03:22 2024

@author: Michael Krieger (lapmk)

class nomad_camels_sandbox.CAMELS_sandbox.SandboxForCAMELS(request, client_address, server)

Bases: BaseHTTPRequestHandler

do_GET()
experiment1 = <nomad_camels_sandbox.digitaltwins.experiment.experiment object>
log_message(format, *args)

Log an arbitrary message.

This is used by all other logging functions. Override it if you have specific logging wishes.

The first argument, FORMAT, is a format string for the message to be logged. If the format string contains any % escapes requiring parameters, they should be specified as subsequent arguments (it’s just like printf!).

The client ip and current date/time are prefixed to every message.

Unicode control characters are replaced with escaped hex before writing the output to stderr.

class nomad_camels_sandbox.CAMELS_sandbox.SandboxServer(host, port)

Bases: object

add_using_instrument()
remove_using_instrument()
class nomad_camels_sandbox.CAMELS_sandbox.ServerThread(host, port)

Bases: QThread

run(self, /) None
staticMetaObject = PySide6.QtCore.QMetaObject("ServerThread" inherits "QThread": )
stop()

nomad_camels_sandbox.server_signals module

class nomad_camels_sandbox.server_signals.Demo_Server_Device(prefix='', *, name, kind=None, read_attrs=None, configuration_attrs=None, parent=None, demo_server_port=8080, demo_server_host='localhost', **kwargs)

Bases: Device

A class to create a device that can be used to communicate with the demo server

component_names = ()
finalize_steps()

A function to finalize the steps of the device

subscriptions: ClassVar[FrozenSet[str]] = frozenset({'acq_done'})
class nomad_camels_sandbox.server_signals.Demo_Server_Signal(name, value=0.0, timestamp=None, parent=None, labels=None, kind='hinted', tolerance=None, rtolerance=None, metadata=None, cl=None, attr_name='', parameter_name='', demo_server_port=8080, parameter_type='float')

Bases: Signal

A class to create a signal that can be used to communicate with the demo server

describe()

Add “Demo Server” as source to the description of the signal.

put(value, *args, timestamp=None, force=False, metadata=None, **kwargs)

A function to put a value to the server

set_port(demo_server_port, demo_server_host='localhost')
subscriptions: ClassVar[FrozenSet[str]] = frozenset({'meta', 'value'})
class nomad_camels_sandbox.server_signals.Demo_Server_SignalRO(name, value=0.0, timestamp=None, parent=None, labels=None, kind='hinted', tolerance=None, rtolerance=None, metadata=None, cl=None, attr_name='', parameter_name='', demo_server_port=8080, parameter_type='float')

Bases: SignalRO

A class to create a signal that can be used to communicate with the demo server

describe()

Add “Demo Server” as source to the description of the signal.

get()

A function to get a value from the server

set_port(demo_server_port, demo_server_host='localhost')
subscriptions: ClassVar[FrozenSet[str]] = frozenset({'meta', 'value'})
class nomad_camels_sandbox.server_signals.ServerConnection(parent=None)

Bases: Connection_Config

get_settings()

Overwrite to return the connection-specific settings

load_settings(settings_dict)

Overwrite to load the connection-specific settings from settings_dict.

Parameters:

settings_dict

staticMetaObject = PySide6.QtCore.QMetaObject("ServerConnection" inherits "Connection_Config": )

Module contents