backend.utah_utils

backend.utah_utils.read_kdf(filename: pathlib.Path)

Parses a kdf file. Returns kinematics, features, targets, kalman, niptime

kinematics: training target data?? features: all feature channels (before selecting a subset of the channels) targets: testing targets??? kalman: output of kalman during testing niptime: timestamps

backend.utah_utils.read_kef(path: pathlib.Path)List[backend.movements.Movement]

Parses a kef file to return a list of movements

IMPORTANT: kef files have support for movement delays which we don’t. Those delays are ignored and are often zero anyway.

backend.utah_utils.load_utah_training_data(path: pathlib.Path)

Given the path to the matlab file, load features, x_d, and list of movements

backend.utah_utils.get_utah_training_data_from_matlab_struct(matlab_data: dict)
backend.utah_utils.load_utah_ss_struct(path: pathlib.Path)
backend.utah_utils.load_utah_data(filename: pathlib.Path, raw_data, feat_data, output_data, _print=<function empty_func>)
class backend.utah_utils.UtahSocketServer
__init__()

Initialize self. See help(type(self)) for accurate signature.

property connected
connect(addr, port, timeout=60)
disconnect()
receive(timeout=None)
respond(success: bool, **kwargs)