Closed JeffLCoughlin closed 8 years ago
KeyError Traceback (most recent call last)
Jeff sent me the following backtrace
/home/jeff/KeplerJob/DAVE/GIT/dave/pipeline/clipboard.py(229)get() -> raise KeyError("Required key %s not found while looking up %s" %(k, keyString)) (Pdb) bt /home/jeff/KeplerJob/DAVE/GIT/dave/pipeline/task.py(105)wrapperForTask() -> clip = func(_args, *_kwargs) /home/jeff/KeplerJob/DAVE/GIT/dave/pipeline/pipeline.py(638)dispositionTask() -> #Data on which to make a decision /home/jeff/KeplerJob/DAVE/GIT/dave/pipeline/clipboard.py(92)getitem() -> return self.get(keyString) /home/jeff/KeplerJob/DAVE/GIT/dave/pipeline/clipboard.py(229)get() -> raise KeyError("Required key %s not found while looking up %s" %(k, keyString))
The offending line seems to be in dispositionTask
modshiftDict = clip['modshift']
This is just loading the result of the modshiftTask from the clipboard.
The last lines of modshiftTask() should look like this
out = ModShift.runModShift(time[~fl], flux[~fl], model, basename, \
objectname, period_days, epoch_bkjd)
clip['modshift'] = out
My guess is this is what you've changed.
Hmm, my lines are identical to what you posted. I haven't touched any of this recently. I just did a git pull and tried to run the pipeline and got this error. Maybe I'll just do a fresh pull from git and try from scratch.
Doing a fresh git clone, running 'make' in vetting, and then
from dave.pipeline import main cfg=main.loadMyConfiguration() clip = main.runOne(206103150,cfg)
still results in the error.
'Required key modshift not found while looking up modshift'
/home/jeff/KeplerJob/DAVE/GIT2/dave/pipeline/clipboard.py(229)get() -> raise KeyError("Required key %s not found while looking up %s" %(k, keyString)) (Pdb) bt /home/jeff/KeplerJob/DAVE/GIT2/dave/pipeline/task.py(105)wrapperForTask() -> clip = func(_args, *_kwargs) /home/jeff/KeplerJob/DAVE/GIT2/dave/pipeline/pipeline.py(640)dispositionTask() -> modshiftDict = clip['modshift'] /home/jeff/KeplerJob/DAVE/GIT2/dave/pipeline/clipboard.py(92)getitem() -> return self.get(keyString) /home/jeff/KeplerJob/DAVE/GIT2/dave/pipeline/clipboard.py(229)get() -> raise KeyError("Required key %s not found while looking up %s" %(k, keyString))
Jeff, What does your task list look like? Maybe you are not running the vetting task? There some problems with getting a full list in there a while back. Susan
Yup. It looks like, if you are running the default from a true git clone, then dpp.modshiftTask isn't listed.
I pushed a change to main.py that has the lists of tasks I use.
Looks like you commented out line 39 in the task list, but needed 39-43. I'll fix and push.
Okay working now. Thanks all.
I can't figure this one out - it's preventing me from being able to do a full run and look in to Chris' modshift issue.
main.runOne(206103150,cfg) 'Required key modshift not found while looking up modshift'