修复NumPy兼容性:np.percentile参数interpolation改为method(Kutser/Hedley/SUGAR)
This commit is contained in:
@ -318,7 +318,7 @@ class SUGAR:
|
||||
est_background = self.get_est_background(self.im_aligned[:,:,i])
|
||||
est_background_list.append(est_background)
|
||||
else:
|
||||
est_background = np.percentile(self.im_aligned[:,:,i], 5, interpolation='nearest')
|
||||
est_background = np.percentile(self.im_aligned[:,:,i], 5, method='nearest')
|
||||
est_background_list.append(est_background)
|
||||
bounds = self.bounds[i]
|
||||
b = self.optimise_correction_by_band(self.im_aligned[:,:,i],glint_mask,est_background,bounds)
|
||||
|
||||
Reference in New Issue
Block a user