catkit2

Testbed

Functions

parse_service_args([argv])

Parse the command line arguments for a launched service.

trace_interval(name[, category])

Trace an interval event.

trace_instant(name)

Trace an instant event.

trace_counter(name, series, counter)

Trace a counter event.

Classes

Testbed(port, is_simulated, config)

Manages services.

Service(service_type, **kwargs)

CatkitLogHandler([stream])

A log handler to pipe Python log messages into the catkit2 logging system.

TestbedProxy(host, port)

A client for connecting to a testbed server.

ServiceProxy(testbed, service_id)

A proxy for a service connected to a server.

Experiment(testbed[, metadata, ...])

TraceWriter(host, port)

A writer for performance trace logs.

ZmqDistributor(context, input_port, output_port)

Collects messages on a port and re-publish them on another.

Proxies

Classes

CameraProxy(testbed, service_id)

NewportXpsQ8Proxy(testbed, service_id)

FlipMountProxy(testbed, service_id)

BmcDmProxy(testbed, service_id)

DeformableMirrorProxy(testbed, service_id)

NewportPicomotorProxy(testbed, service_id)

NiDaqProxy(testbed, service_id)

NktSuperkProxy(testbed, service_id)

ThorlabsCubeMotorKinesisProxy(testbed, ...)

ThorlabsMcls1(testbed, service_id)

WebPowerSwitchProxy(testbed, service_id)

OceanopticsSpectroProxy(testbed, service_id)

Simulator

Functions

property_with_logic(logic_func)

with_cached_result(getter)

Classes

OpticalModel()

Simulator(service_type[, max_time_factor])

SimpleOpticalModel()

A simple optical model, showing the correct usage of an OpticalModel.

Configuration

Functions

read_config_files(config_files)

Read all configuration files and return a single configuration.