Skip to content

Commit

Permalink
Fix tkinter (#49)
Browse files Browse the repository at this point in the history
* Remove inter_plotting loading at beginning of files

* Delete acc.png
  • Loading branch information
sofia3ms authored May 9, 2024
1 parent 81ca438 commit 9ec959b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion biosppy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
# allow lazy loading
from .signals import acc, abp, bvp, ppg, pcg, ecg, eda, eeg, emg, resp, tools, hrv
from .synthesizers import ecg, emg
from .inter_plotting import ecg, acc
# from .inter_plotting import ecg, acc
from .features import frequency, time, time_freq, cepstral, phase_space
2 changes: 1 addition & 1 deletion biosppy/signals/acc.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

# local
from .. import plotting, utils
from biosppy.inter_plotting import acc as inter_plotting


def acc(signal=None, sampling_rate=100.0, units=None, path=None, show=True, interactive=False):
Expand Down Expand Up @@ -88,6 +87,7 @@ def acc(signal=None, sampling_rate=100.0, units=None, path=None, show=True, inte
# plot
if show:
if interactive:
from biosppy.inter_plotting import acc as inter_plotting
inter_plotting.plot_acc(
ts=ts, # plotting.plot_acc
raw=signal,
Expand Down
2 changes: 1 addition & 1 deletion biosppy/signals/ecg.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
# local
from . import tools as st
from .. import plotting, utils
from biosppy.inter_plotting import ecg as inter_plotting
from scipy.signal import argrelextrema


Expand Down Expand Up @@ -123,6 +122,7 @@ def ecg(signal=None, sampling_rate=1000.0, units=None, path=None, show=True, int
# plot
if show:
if interactive:
from biosppy.inter_plotting import ecg as inter_plotting
inter_plotting.plot_ecg(
ts=ts,
raw=signal,
Expand Down

0 comments on commit 9ec959b

Please sign in to comment.