Skip to content

Commit e41d679

Browse files
committed
Add matlabwrapper decorator to ridge and bispec functions
1 parent 38cfe45 commit e41d679

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/maths/algorithms/matlabwrappers/biphase_wav_new.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@
2121
from typing import Tuple
2222

2323
from numpy import ndarray
24+
from pymodalib.utils.decorators import matlabwrapper
2425

2526
from maths.num_utils import matlab_to_numpy
2627

2728

29+
@matlabwrapper(module="biphaseWavNew")
2830
def calculate(
2931
signal1: ndarray, signal2: ndarray, fs, f0, fr, opt: dict
3032
) -> Tuple[ndarray, ndarray]:

src/maths/algorithms/matlabwrappers/bispec_wav_new.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818

1919
import numpy as np
2020
from numpy import ndarray
21+
from pymodalib.utils.decorators import matlabwrapper
2122

2223
from maths.num_utils import multi_matlab_to_numpy
2324

2425

26+
@matlabwrapper(module="bispecWavPython")
2527
def calculate(
2628
signal1: ndarray, signal2: ndarray, fs, params: dict
2729
) -> Tuple[ndarray, ndarray, ndarray, ndarray, dict]:

src/maths/algorithms/multiprocessing/ridge_extraction.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@
1717

1818
import numpy as np
1919
from numpy import ndarray
20+
from pymodalib.utils.decorators import matlabwrapper
2021

2122
from maths.num_utils import matlab_to_numpy
2223
from maths.params.REParams import REParams
2324
from maths.signals.TimeSeries import TimeSeries
2425
from processes.mp_utils import process
2526

2627

27-
@process
28+
@matlabwrapper(module="ridge_extraction")
2829
def _ridge_extraction(
2930
time_series: TimeSeries, params: REParams
3031
) -> Tuple[

0 commit comments

Comments
 (0)