Skip to content
Snippets Groups Projects
Commit c1b24780 authored by Cyril Danilevski's avatar Cyril Danilevski :scooter:
Browse files

Remove unused variables and imports in agipdutils.py

parent 6b2bd2e1
No related branches found
No related tags found
No related merge requests found
import copy
from typing import Tuple
import numpy as np
from cal_tools.enums import BadPixels, SnowResolution
from scipy.signal import cwt, find_peaks_cwt, ricker
from scipy.signal import cwt, ricker
from sklearn.mixture import GaussianMixture
from sklearn.preprocessing import StandardScaler
......@@ -249,8 +250,10 @@ def correct_baseline_via_hist(d, pcm, g):
return d, 0
it += 1
def min_hist_distance(pc, bins=100, ran=(-10000, 10000), dec=20,
minbin=10):
def min_hist_distance(pc: int,
bins: int = 100,
ran: Tuple[int, int] = (-10000, 10000),
minbin: int = 10) -> float:
hh, e = np.histogram(dd[g == 0] - pc, bins=bins, range=ran)
hm, e = np.histogram((dd[g == 1] - pc) * pcm[g == 1], bins=bins,
range=ran)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment