Keck-DataReductionPipelines / NIRSPEC-Data-Reduction-Pipeline

NSDRP was developed by the Keck Observatory Archive. KOA is a collaboration between the NASA Exoplanet Science Institute and the W. M. Keck Observatory. NExScI is sponsored by NASA’s Exoplanet Program and operated by the California Institute of Technology in coordination with the Jet Propulsion Laboratory. Please contact the KOA Help Desk with questions: https://koa.ipac.caltech.edu/cgi-bin/Helpdesk/nph-genTicketForm?projname=KOA

Home Page:https://www2.keck.hawaii.edu/koa/nsdrp/nsdrp.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2 small bugs found using Python 2.7.12

henrietteschwarz opened this issue · comments

In wavelength_utils.py function twodfit()
pandas.DataFrame.icol has been deprecated http://pandas.pydata.org/pandas-docs/version/0.19.2/generated/pandas.DataFrame.icol.html.
Solution: Replace .icol(i) with .iloc[:, i]

In image_lib.py function cut_out()
Python complained that slice indices must be integers.
Solution: Place int() around both 'top' and 'bot' everywhere in the function.

After implementing the above 2 solutions, everything ran smoothly.