File ~/miniconda3/envs/pyvhr/lib/python3.10/site-packages/pyVHR/BPM/init.py:1
----> 1 from .BPM import
2 from .utils import
File ~/miniconda3/envs/pyvhr/lib/python3.10/site-packages/pyVHR/BPM/BPM.py:10
8 from pyVHR.plot.visualize import VisualizeParams
9 from pyVHR.BPM.utils import *
---> 10 from scipy.stats import median_absolute_deviation as mad
12 """
13 This module contains all the class and the methods for transforming
14 a BVP signal in a BPM signal.
15 """
18 class BVPsignal:
ImportError: cannot import name 'median_absolute_deviation' from 'scipy.stats' (/Users/chriskim/miniconda3/envs/pyvhr/lib/python3.10/site-packages/scipy/stats/init.py)
Would you be able to give me a hint as to how to fix this issue?
Hi,
I was just trying to run "basic usage and notebooks" on both Intel MacBook Pro & M2 MacBook Air.
On both devices, I am getting exactly the same error as below.
ImportError Traceback (most recent call last) Cell In[3], line 1 ----> 1 from pyVHR.analysis.pipeline import Pipeline 2 import matplotlib.pyplot as plt 4 pipe = Pipeline()
File ~/miniconda3/envs/pyvhr/lib/python3.10/site-packages/pyVHR/init.py:3 1 import pyVHR.extraction 2 import pyVHR.BVP ----> 3 import pyVHR.BPM 4 import pyVHR.datasets 5 import pyVHR.plot
File ~/miniconda3/envs/pyvhr/lib/python3.10/site-packages/pyVHR/BPM/init.py:1 ----> 1 from .BPM import 2 from .utils import
File ~/miniconda3/envs/pyvhr/lib/python3.10/site-packages/pyVHR/BPM/BPM.py:10 8 from pyVHR.plot.visualize import VisualizeParams 9 from pyVHR.BPM.utils import * ---> 10 from scipy.stats import median_absolute_deviation as mad 12 """ 13 This module contains all the class and the methods for transforming 14 a BVP signal in a BPM signal. 15 """ 18 class BVPsignal:
ImportError: cannot import name 'median_absolute_deviation' from 'scipy.stats' (/Users/chriskim/miniconda3/envs/pyvhr/lib/python3.10/site-packages/scipy/stats/init.py)
Would you be able to give me a hint as to how to fix this issue?