Skip to content

Commit

Permalink
Merge pull request #29 from smoia/fix/import
Browse files Browse the repository at this point in the history
Adopt relative imports instead of absolute
  • Loading branch information
smoia authored Aug 21, 2024
2 parents 845132c + 1482c9f commit e04477e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions physioqc/interfaces/interfaces.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
1 change: 0 additions & 1 deletion physioqc/metrics/multimodal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions physioqc/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e04477e

Please sign in to comment.