fixed imports by running as a module
This commit is contained in:
0
src/graph_creators/__init.py__
Normal file
0
src/graph_creators/__init.py__
Normal file
@@ -10,7 +10,7 @@ import optparse
|
||||
import numpy as np
|
||||
from scipy.signal import butter, filtfilt
|
||||
|
||||
from helpers.locale_utils import print_with_c_locale
|
||||
from ..helpers.locale_utils import print_with_c_locale
|
||||
|
||||
NUM_POINTS = 500
|
||||
|
||||
|
||||
@@ -20,14 +20,14 @@ from scipy.interpolate import griddata
|
||||
|
||||
matplotlib.use('Agg')
|
||||
|
||||
from helpers.common_func import (
|
||||
from ..helpers.common_func import (
|
||||
compute_curve_similarity_factor,
|
||||
compute_spectrogram,
|
||||
detect_peaks,
|
||||
parse_log,
|
||||
setup_klipper_import,
|
||||
)
|
||||
from helpers.locale_utils import print_with_c_locale, set_locale
|
||||
from ..helpers.locale_utils import print_with_c_locale, set_locale
|
||||
|
||||
ALPHABET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' # For paired peaks names
|
||||
|
||||
|
||||
@@ -20,14 +20,14 @@ import numpy as np
|
||||
|
||||
matplotlib.use('Agg')
|
||||
|
||||
from helpers.common_func import (
|
||||
from ..helpers.common_func import (
|
||||
compute_mechanical_parameters,
|
||||
compute_spectrogram,
|
||||
detect_peaks,
|
||||
parse_log,
|
||||
setup_klipper_import,
|
||||
)
|
||||
from helpers.locale_utils import print_with_c_locale, set_locale
|
||||
from ..helpers.locale_utils import print_with_c_locale, set_locale
|
||||
|
||||
PEAKS_DETECTION_THRESHOLD = 0.05
|
||||
PEAKS_EFFECT_THRESHOLD = 0.12
|
||||
|
||||
@@ -21,14 +21,14 @@ import numpy as np
|
||||
|
||||
matplotlib.use('Agg')
|
||||
|
||||
from helpers.common_func import (
|
||||
from ..helpers.common_func import (
|
||||
compute_mechanical_parameters,
|
||||
detect_peaks,
|
||||
identify_low_energy_zones,
|
||||
parse_log,
|
||||
setup_klipper_import,
|
||||
)
|
||||
from helpers.locale_utils import print_with_c_locale, set_locale
|
||||
from ..helpers.locale_utils import print_with_c_locale, set_locale
|
||||
|
||||
PEAKS_DETECTION_THRESHOLD = 0.05
|
||||
PEAKS_RELATIVE_HEIGHT_THRESHOLD = 0.04
|
||||
|
||||
BIN
src/graph_creators/klippain.png
Normal file
BIN
src/graph_creators/klippain.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 607 KiB |
Reference in New Issue
Block a user