GithubHelp home page GithubHelp logo

obss / biobss Goto Github PK

View Code? Open in Web Editor NEW
96.0 5.0 17.0 12.11 MB

A package for processing signals recorded using wearable sensors, such as Electrocardiogram (ECG), Photoplethysmogram (PPG), Electrodermal activity (EDA) and 3-axis acceleration (ACC).

Home Page: https://biobss.readthedocs.io/en/latest/

License: MIT License

Python 100.00%
acceleration ecg eda electrocardiography electrodermal-activity feature-extraction galvanic-skin-response heart-rate-variability hrv photoplethysmography

biobss's People

Contributors

devrimcavusoglu avatar ipekkrks avatar karakusipek avatar tascic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

biobss's Issues

Dependency Conflict When Installing BIOBSS with pip

Hello,

I encountered an issue when trying to install BIOBSS using pip. The error message is as follows:

ERROR: Cannot install biobss==0.1.0 and biobss==0.1.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    biobss 0.1.1 depends on plotly-resampler==0.8.2
    biobss 0.1.0 depends on plotly-resampler==0.8.2

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Upon checking the dependency file, it seems that plotly==5.11.0 is required. I was wondering if there might be a possibility to adjust this to resolve the conflict?

Thank you for your assistance.

Matplotlib bug

AttributeError                            Traceback (most recent call last)
[<ipython-input-9-fc9babe80238>](https://localhost:8080/#) in <module>
      1 #Plot ACC signals using Matplotlib (default)
----> 2 biobss.imutools.plot_acc(signals=signals, peaks=peaks, sampling_rate=fs, method='matplotlib', show_peaks=True)

1 frames
[/usr/local/lib/python3.8/dist-packages/biobss/imutools/acc_plot.py](https://localhost:8080/#) in _plot_acc_matplotlib(signals, peaks, x_values, x_label, figsize, show_peaks)
    142         i += 1
    143 
--> 144     fig.supxlabel(x_label)
    145     fig.supylabel("Amplitude")
    146     fig.tight_layout()

AttributeError: 'Figure' object has no attribute 'supxlabel'
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
[/usr/local/lib/python3.8/dist-packages/IPython/core/formatters.py](https://localhost:8080/#) in __call__(self, obj)
    339                 pass
    340             else:
--> 341                 return printer(obj)
    342             # Finally look for special method names
    343             method = get_real_method(obj, self.print_method)

4 frames
[/usr/local/lib/python3.8/dist-packages/matplotlib/backends/backend_agg.py](https://localhost:8080/#) in print_png(self, filename_or_obj, metadata, pil_kwargs, *args, **kwargs)
    503             Metadata in the PNG file as key-value pairs of bytes or latin-1
    504             encodable strings.
--> 505             According to the PNG specification, keys must be shorter than 79
    506             chars.
    507 

ImportError: cannot import name '_png' from 'matplotlib' (/usr/local/lib/python3.8/dist-packages/matplotlib/__init__.py)

Issues on Install

Installing the current HEAD of biobss has an issue on import:

(venv) [rbirmin@cnode7 BIOBSS]$ python
Python 3.8.13 (default, Aug 16 2022, 12:16:29)
[GCC 9.3.1 20200408 (Red Hat 9.3.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import biobss
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rbirmin/BIOBSS/biobss/__init__.py", line 7, in <module>
    from biobss import (  # isort: skip
  File "/home/rbirmin/BIOBSS/biobss/ecgtools/__init__.py", line 4, in <module>
    from .ecg_plot import *
  File "/home/rbirmin/BIOBSS/biobss/ecgtools/ecg_plot.py", line 4, in <module>
    from ..plottools import *
  File "/home/rbirmin/BIOBSS/biobss/plottools/__init__.py", line 1, in <module>
    from .plot_tools import *
  File "/home/rbirmin/BIOBSS/biobss/plottools/plot_tools.py", line 5, in <module>
    from plotly_resampler import register_plotly_resampler
  File "/home/rbirmin/BIOBSS/venv/lib64/python3.8/site-packages/plotly_resampler/__init__.py", line 4, in <module>
    from .figure_resampler import FigureResampler, FigureWidgetResampler
  File "/home/rbirmin/BIOBSS/venv/lib64/python3.8/site-packages/plotly_resampler/figure_resampler/__init__.py", line 13, in <module>
    from .figure_resampler import FigureResampler
  File "/home/rbirmin/BIOBSS/venv/lib64/python3.8/site-packages/plotly_resampler/figure_resampler/figure_resampler.py", line 18, in <module>
    import dash
  File "/home/rbirmin/BIOBSS/venv/lib64/python3.8/site-packages/dash/__init__.py", line 5, in <module>
    from .dependencies import (  # noqa: F401,E402
  File "/home/rbirmin/BIOBSS/venv/lib64/python3.8/site-packages/dash/dependencies.py", line 4, in <module>
    from ._validate import validate_callback
  File "/home/rbirmin/BIOBSS/venv/lib64/python3.8/site-packages/dash/_validate.py", line 5, in <module>
    import flask
  File "/home/rbirmin/BIOBSS/venv/lib64/python3.8/site-packages/flask/__init__.py", line 5, in <module>
    from . import json as json
  File "/home/rbirmin/BIOBSS/venv/lib64/python3.8/site-packages/flask/json/__init__.py", line 6, in <module>
    from ..globals import current_app
  File "/home/rbirmin/BIOBSS/venv/lib64/python3.8/site-packages/flask/globals.py", line 25, in <module>
    app_ctx: AppContext = LocalProxy(  # type: ignore[assignment]
TypeError: __init__() got an unexpected keyword argument 'unbound_message'

Context and commands before this:

(venv) [rbirmin@cnode7 BIOBSS]$ python --version
Python 3.8.13
(venv) [rbirmin@cnode7 BIOBSS]$ git rev-parse HEAD
6be24b9c6ebfecf8e13d52b48c1c8d130c28ac5f
(venv) [rbirmin@cnode7 BIOBSS]$ pip install -r requirements.txt > requirements_log.out
(venv) [rbirmin@cnode7 BIOBSS]$ pip install . > setup_log.out

The venv is clean except for these commands.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.