Skip to content

rhythmia_reader

RhythmiaReader

RhythmiaReader can load and parse any type of data from the Rhythmia mapping system.

load(filepath, cutout=True) staticmethod

Load coordinates, triangles and scalars.

Parameters:

Name Type Description Default
filepath str

The path to the matlab file.

required
cutout bool

Remove annotated cutouts or not. Defaults to True.

True

Returns:

Name Type Description
tuple tuple[ndarray, ndarray, ndarray]

A tuple containing a list of coordinates, triangle ids and scalars

load_ablation(filepath) staticmethod

Load ablations.mat file.

Parameters:

Name Type Description Default
filepath str

Path to the ablation file

required

Returns:

Type Description
DataFrame

pd.DataFrame: Ablation points

load_mat_file(filepath) staticmethod

Load MATLAB file containing maps.

Parameters:

Name Type Description Default
filepath str

Path to the ablation file

required

Returns:

Name Type Description
dict dict

MATLAB data.

load_mesh_data(data) staticmethod

Extract mesh points and triangle point ids from matlab data. Points contains coordinates, local activation time and voltage data.

Parameters:

Name Type Description Default
data DataFrame

Parsed matlab data.

required

Returns:

Name Type Description
tuple (DataFrame, DataFrame)

Points and triangles.

load_metadata(data, keys=None) staticmethod

Load metadata from a mat file.

Parameters:

Name Type Description Default
data dict

MATLAB data containing mesh with annotations.

required
keys list

List of metadata keys to extract. Default list includes common keys.

None

Returns:

Name Type Description
dict dict

A dictionary containing the loaded metadata.

load_points_data(data) staticmethod

Extract all point data.

Parameters:

Name Type Description Default
data DataFrame

Parsed matlab data.

required

Returns:

Type Description
DataFrame

dataframe with data of points.

load_signal(data, index) staticmethod

Load signal of a specific point from matlab data.

Parameters:

Name Type Description Default
data DataFrame

Parsed matlab data.

required
index int

Index of the point.

required

Returns:

Type Description
DataFrame

dataframe with signal data.

load_signals(data, idx) staticmethod

Load signal data of multiple points.

Parameters:

Name Type Description Default
data DataFrame

Parsed matlab data.

required
idx list

Indices of the points.

required

Returns:

Type Description
DataFrame

dataframe with signal data of the requested points.