diff --git a/physioqc/interfaces/interfaces.py b/physioqc/interfaces/interfaces.py index 4c5d587..7181d4e 100644 --- a/physioqc/interfaces/interfaces.py +++ b/physioqc/interfaces/interfaces.py @@ -1,9 +1,8 @@ import os -import matplotlib.pyplot as plt import pandas as pd -from physioqc.metrics.multimodal import peak_amplitude, peak_detection, peak_distance +from ..metrics.multimodal import peak_amplitude, peak_detection, peak_distance def generate_figures(figures, data, outdir): diff --git a/physioqc/metrics/multimodal.py b/physioqc/metrics/multimodal.py index 110f8de..0518589 100644 --- a/physioqc/metrics/multimodal.py +++ b/physioqc/metrics/multimodal.py @@ -5,7 +5,6 @@ import numpy as np import peakdet as pk from scipy import signal -from scipy.misc import derivative from .utils import has_peakfind_physio, physio_or_numpy diff --git a/physioqc/workflow.py b/physioqc/workflow.py index d2d8b66..c377105 100644 --- a/physioqc/workflow.py +++ b/physioqc/workflow.py @@ -5,15 +5,15 @@ import numpy as np import peakdet as pk -from physioqc.cli.run import _get_parser -from physioqc.interfaces.interfaces import generate_figures, run_metrics, save_metrics -from physioqc.interfaces.visualizations import ( +from .cli.run import _get_parser +from .interfaces.interfaces import generate_figures, run_metrics, save_metrics +from .interfaces.visualizations import ( plot_average_peak, plot_histogram, plot_power_spectrum, plot_raw_data, ) -from physioqc.metrics.multimodal import ( +from .metrics.multimodal import ( fALFF, freq_energy, max,