File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11import numpy as np
22import matplotlib .pylab as plt
3+ from scipy .signal .windows import gaussian
4+ from scipy .signal import convolve
5+ from sklearn .decomposition import PCA
6+
37from iblutil .numerical import bincount2D
48
59
610def _smooth (data , sd ):
7- from scipy .signal import gaussian
8- from scipy .signal import convolve
11+
912 n_bins = data .shape [0 ]
1013 w = n_bins - 1 if n_bins % 2 == 0 else n_bins
1114 window = gaussian (w , std = sd )
@@ -15,7 +18,6 @@ def _smooth(data, sd):
1518
1619
1720def _pca (data , n_pcs ):
18- from sklearn .decomposition import PCA
1921 pca = PCA (n_components = n_pcs )
2022 pca .fit (data )
2123 data_pc = pca .transform (data )
Original file line number Diff line number Diff line change 33'''
44
55import numpy as np
6- from scipy .signal import convolve , gaussian
6+ from scipy .signal import convolve
7+ from scipy .signal .windows import gaussian
78from iblutil .util import Bunch
89from brainbox .population .decode import xcorr
910
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pynrrd>=0.4.0
1515pytest
1616requests >= 2.22.0
1717scikit-learn >= 0.22.1
18- scipy >= 1.7.0 , < 1.13 # scipy gaussian missing April 2024
18+ scipy >= 1.7.0
1919scikit-image # this is a widefield requirement missing as of July 2023, we may remove it once wfield has this figured out
2020sparse
2121seaborn >= 0.9.0
You can’t perform that action at this time.
0 commit comments