Skip to content

Commit

Permalink
Merge pull request #423 from rcooke-ast/patch-1
Browse files Browse the repository at this point in the history
Update lsf.py; tests passed, merging.
  • Loading branch information
ntejos committed Oct 20, 2017
2 parents 30fb209 + db526e8 commit dd5c4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linetools/spectra/lsf.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def check_and_reformat_relpix(self, relpix):
assert n_pix % 2 != 0, ValueError('LSF tables must be given as odd integers!')

# make sure relpix == 0 is in the middle of the array
n_half = int( (n_pix - 1) / 2)
n_half = int( (n_pix - 1) // 2)
mid_value = relpix[n_half]
new_relpix = relpix - mid_value # 0 in the middle

Expand Down

0 comments on commit dd5c4a8

Please sign in to comment.