resurfemg.data_connector.tmsisdk_lite module

The following module is a modification of a few classes from a larger code base created by Twente Medical Systems International B.V., Oldenzaal The Netherlands. Some docstrings, formatting, variables, variable names and even classes have been changed. The Twente Medical Systems International B.V. lisencing information is as below:

(c) 2022 Twente Medical Systems International B.V., Oldenzaal The Netherlands

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

class resurfemg.data_connector.tmsisdk_lite.Channel(name, unit_name)

Bases: object

‘Channel’ represents a device channel. It has the next properties:

Parameters:
  • name (str) – the name of the channel

  • unit_name (str) – the name of unit (e.g. ‘μVolt’) of channel sample-data

class resurfemg.data_connector.tmsisdk_lite.Poly5Reader(filename=None, readAll=True)

Bases: object

This class allows reading in various file types created on TMSi devices and/or in Poly5 format.

close()

Function to close off file object after reading

readSamples(n_blocks=None)

Function to read a subset of sample blocks from a file

read_data_MNE() RawArray

Return MNE RawArray given internal channel names and types

Returns:

mne.io.RawArray

Return type:

object from an numpy.ndarray