gex

Reading and parsing Aarhus .gex system description files.

integrate.gex.describe_gex(input_data, channels_data=None)

Describe a GEX system configuration in a human-readable format.

Parameters:

input_datastr or dict

Either a GEX filename (str) or a GENERAL dictionary

channels_datalist of dict, optional

List of channel dictionaries. Required if input_data is a dict.

Returns:

None

Prints description to screen

integrate.gex.read_gex(file_gex: str) → Tuple[Dict[str, Any], List[Dict[str, Any]]]

Read GEX file and return GENERAL section and CHANNELS list.

Parameters:

file_gexstr

Path to the GEX file

Returns:

GENERALdict

Dictionary containing all key-value pairs from [General] section

CHANNELSlist

List of dictionaries, one per channel section