afam.asc_dataset

This module provides a class to handle .asc-files in python

Module Contents

Classes

ASC_Dataset

TODO:

ASC_Parser

A class used to handle the parsing of an ASC file.

class afam.asc_dataset.ASC_Dataset[source]

TODO:

`event`

`msg`

`sample`

to_mat(file_name)[source]

Save a ASC_Dataset into a MATLAB-style .mat file.

Parameters

file_name (str) – name of the .mat file

to_ascDS(folder_name)[source]

Save a ASC_Dataset into the folder structure ascDS

Parameters

folder_name (str) – name of the folder

class afam.asc_dataset.ASC_Parser(search=None, info=None, mode='mono')[source]

A class used to handle the parsing of an ASC file.

`info`

the current cutted line of the ASC file

Type

str

`search`

a list of all relevant message token

Type

list

case_BUTTON()[source]

Returns a created BUTTON event object

Returns

a BUTTON event object

Return type

object

case_INPUT()[source]

Returns a created input event object

Returns

a INPUT event object

Return type

object

Returns a created SBLINK event object

Returns

a SBLINK event object

Return type

object

case_SSACC()[source]

Returns a created SSACC event object

Returns

a SSACC event object

Return type

object

case_SFIX()[source]

Returns a created SFIX event object

Returns

a SFIX event object

Return type

object

Returns a created EBLINK event object

Returns

a EBLINK event object

Return type

object

case_ESACC()[source]

Returns a created ESACC event object

Returns

a ESACC event object

Return type

object

case_EFIX()[source]

Returns a created EFIX event object

Returns

a EFIX event object

Return type

object

case_MSG()[source]

Returns a created MSG event object

Returns

a MSG event object

Return type

object

case_START()[source]

Returns a created START event object

Returns

a START event object

Return type

object

case_SAMPLE()[source]

Returns a created sample object

Returns

a sample object

Return type

object

parse(token, info)[source]

Parses one line of the ASC file.

Parameters
  • token (str) – name of a specific event

  • info (str) – information of a specific event

Returns

`x` – an event object with the processed information

Return type

object