Skip to content

Commit

Permalink
remove unsused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrory committed Sep 9, 2024
1 parent bea0a34 commit bc97c27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 1 addition & 6 deletions python/lvmdrp/core/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2669,13 +2669,8 @@ def extractSpecOptimal(self, cent_trace, trace_fwhm, plot_fig=False):
select_nan = numpy.isnan(slice_img._data)
slice_img._data[select_nan] = 0

# define fiber index
indices = numpy.indices((self._dim[0], numpy.sum(good_fiber)))

# measure flux along the given columns
result = slice_img.obtainGaussFluxPeaks(
cent[good_fiber], sigma[good_fiber], indices, plot=plot_fig
)
result = slice_img.obtainGaussFluxPeaks(cent[good_fiber], sigma[good_fiber], plot=plot_fig)
data[good_fiber, i] = result[0]
if self._error is not None:
error[good_fiber, i] = result[1]
Expand Down
4 changes: 1 addition & 3 deletions python/lvmdrp/core/spectrum1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -3409,7 +3409,7 @@ def fitSepGauss(
return flux, cent, fwhm, bg


def obtainGaussFluxPeaks(self, pos, sigma, indices, replace_error=1e10, plot=False):
def obtainGaussFluxPeaks(self, pos, sigma, replace_error=1e10, plot=False):
"""returns Gaussian peaks parameters, flux error and mask
this runs fiber fitting assuming that we only need to know the sigma of the Gaussian,
Expand All @@ -3421,8 +3421,6 @@ def obtainGaussFluxPeaks(self, pos, sigma, indices, replace_error=1e10, plot=Fal
peaks positions
sigma : array_like
Gaussian widths
indices : array_like
peaks indices
replace_error : float, optional
replace error in bad pixels with this value, by default 1e10
plot : bool, optional
Expand Down

0 comments on commit bc97c27

Please sign in to comment.