PGomes92 / pyhrv

Python toolbox for Heart Rate Variability
BSD 3-Clause "New" or "Revised" License
271 stars 77 forks source link

nonlinear.py: AttributeError: module 'biosppy' has no attribute 'utils' #45

Open davidmarcelbauminteraxon opened 5 months ago

davidmarcelbauminteraxon commented 5 months ago

Hey devs,

Throughout the nonlinear.py codes, import biosppy (line 45) and then calling biosppy.utils.ReturnTuple(args, names) throws the following error: AttributeError: module 'biosppy' has no attribute 'utils'

Installed libraries

biosppy==2.2.1 pyhrv==0.4.1

Proposed fix

I am circumventing this by directly importing the ReturnTuple class from biospyy.utils: from biosppy.utils import ReturnTuple ReturnTuple(args, names)