util
get_mask(filepath, num)
get_scalars(scalars, t=0)
Return the first scalar for each node after time t for irregular data, translated to t=0. For regular data, nothing happens.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scalars |
list
|
Initial array of scalars. |
required |
t |
int
|
Time after which to pick the first LAT. Defaults to 0. |
0
|
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray: One scalar per node. |
read_csv(filepath)
signals_to_lats(data, voltage=-40, sample_fr=1000, method='threshold')
Detects LAT from the voltage signals.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data |
NxT ndarray
|
Transmembrane voltages for each point. |
required |
voltage |
int
|
Voltage threshold for LAT-detection (mV). Defaults to -40. |
-40
|
sample_fr |
int
|
Sampling frequency of the files (Hz). Set to 1 for MonoAlg3DReader, to 1000 for OpenCARP. Defaults to 1000. |
1000
|
method |
str
|
Method of LAT-detection. Value can be 'derivative' or 'threshold'. Defaults to 'threshold'. |
'threshold'
|
Returns:
| Name | Type | Description |
|---|---|---|
ndarray |
ndarray
|
All detected LAT values for each point |