Keck-DataReductionPipelines / KCWI_DRP

KCWI python DRP
BSD 3-Clause "New" or "Revised" License
8 stars 12 forks source link

Exception list index out of range while invoking MakeMasterSky #134

Closed prappleizer closed 2 years ago

prappleizer commented 2 years ago

Attempting to run the pipeline and then re-run using a kcwi.sky file. The code sucessfully reads the sky file:

Found sky entry for kb220428_00074.fits: kb220428_00075.fits

But then immediately hits an error:

File "/Users/ipasha/anaconda3/envs/kcwi_drp/lib/python3.7/site-packages/kcwidrp/primitives/MakeMasterSky.py", line 43, in _pre_condition
    if ofn in row.split()[0]:
IndexError: list index out of range

Any thoughts?

prappleizer commented 2 years ago

As a note, I copied over thekcwi.config file to the local directory and set clobber=True as directed in the sky subtraction instructions in the docs, and used the -c kwci.cfg flat when running the re-reduce.

prappleizer commented 2 years ago

I think I might have solved it! Had an empty line at the end of the file.