Skip to content

Commit 28e0c0e

Browse files
committed
Removed unneeded lines from _get_boxcar_weights()
1 parent 0075390 commit 28e0c0e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

specreduce/extract.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,10 @@ def _get_boxcar_weights(center, hwidth, npix):
5959
w0 = hwidth - (center - fullpixels[0])
6060
if w0 >= 0:
6161
weights[fullpixels[0] - 1] = w0
62-
else: # does this scenario happen anymore given the adjustment to w0?
63-
weights[fullpixels[0]] = 1 + w0
6462
if fullpixels[1] < npix:
6563
w1 = hwidth - (fullpixels[1] - center)
6664
if w1 >= 0:
6765
weights[fullpixels[1]] = w1
68-
else: # does this scenario happen anymore given the adjustment to w1?
69-
weights[fullpixels[1]] = 1 + w1
7066

7167
return weights
7268

0 commit comments

Comments
 (0)