sknrf.model.device module

class sknrf.model.device.TransformModel(*args: Module)
class sknrf.model.device.TransformModel(arg: OrderedDict[str, Module])

Bases: Sequential

append(key, value)

Appends a given module to the end.

Args:

module (nn.Module): module to append

pop(key)
insert(idx, key, value)
remove(idx)
mangle(key)
clear()
class sknrf.model.device.ErrorModel(num_ports, num_duts, num_mipi, num_video, sweep_step, old_model=None)

Bases: Module

register_buffers(num_ports, num_duts, num_mipi, num_video)
register_parameters(num_ports, num_duts, num_mipi, num_video)
class sknrf.model.device.PortModel(error_model, port_num)

Bases: object

A collection of all device objects connected to a given port

Args:

port_num (int): The measurement test-bench port number

set_instrument(device_name, instrument)
class sknrf.model.device.DevicesModel(num_ports, num_duts, num_mipi, num_video, error_model=None)

Bases: object

A container that contains references to all connected device

Args:

num_ports (int): The number of ports in measurement test-bench. num_duts (int): The number of DUTs in measurement test-bench.

set_device_data(device, index=0, sub_index=0)
set_all_device_data()
register_device(device, new=False)
step()
sweep_step()
set_step(step)
stimulus()

Convert from buffers to parameters

set_stimulus(viz_bag=None)

Convert from parameters to buffers

arm()
trigger()
measure()

Convert from buffers to parameters

moveToThread(thread)

Changes the thread affinity (lifetime) for self and its children.

When thread is deleted, self is deleted. Marshals an interface pointer from one thread to another thread in the same process.

runInThread(thread)

Changes the thread that is run for self and its children.

When a method of self is executed, this thread becomes active(blocking). Each method should call self.exec_() when it is finished so that the thread can return to its event loop. Unmarshals a buffer containing an interface pointer and releases the stream when an interface pointer has been marshaled from another thread to the calling thread.

get_device_list()
disconnect_handles()