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

Merge branch 'fix/unused_variables' into 'master'

Remove unused variable and import in agipdutils.py

See merge request detectors/pycalibration!428
parents 6b2bd2e1 c1b24780
No related branches found
No related tags found
1 merge request!428Remove unused variable and import in agipdutils.py
import copy import copy
from typing import Tuple
import numpy as np import numpy as np
from cal_tools.enums import BadPixels, SnowResolution 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.mixture import GaussianMixture
from sklearn.preprocessing import StandardScaler from sklearn.preprocessing import StandardScaler
...@@ -249,8 +250,10 @@ def correct_baseline_via_hist(d, pcm, g): ...@@ -249,8 +250,10 @@ def correct_baseline_via_hist(d, pcm, g):
return d, 0 return d, 0
it += 1 it += 1
def min_hist_distance(pc, bins=100, ran=(-10000, 10000), dec=20, def min_hist_distance(pc: int,
minbin=10): 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) 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, hm, e = np.histogram((dd[g == 1] - pc) * pcm[g == 1], bins=bins,
range=ran) 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