Skip to content

Commit

Permalink
Obtain values from slice, not tuple (fixes #213)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopasra committed Jun 19, 2018
1 parent 4895af1 commit e21cc79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions megaradrp/processing/extractobj.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,10 @@ def generate_sensitivity(final, spectrum, star_interp, extinc_interp,
r0 = response_0 / r0max
r1 = response_1 / r1max

pixm1, pixm2 = wl_coverage1
pixr1, pixr2 = wl_coverage2
pixm1 = wl_coverage1.start
pixm2 = wl_coverage1.stop
pixr1 = wl_coverage2.start
pixr2 = wl_coverage2.stop

pixlims = {}
pixlims['PIXLIMR1'] = pixr1 + 1 # Convert to 1-ref
Expand Down

0 comments on commit e21cc79

Please sign in to comment.