barentsen / dave

Discovery And Vetting of K2 Exoplanets
MIT License
6 stars 3 forks source link

Detrend task fails error "setting an array element with a sequence" #8

Closed fergalm closed 8 years ago

fergalm commented 8 years ago

In the recent C6 run (on /soc/nfs/so-nfs/dave/c6-v2), EPIC 212293125 failed with a value error. Here's the traceback

Traceback (most recent call last): File "/home/fergal/all/svns/dave/pipeline/task.py", line 105, in wrapperForTask clip = func(_args, *_kwargs) File "/home/fergal/all/svns/dave/pipeline/pipeline.py", line 291, in detrendDataTask detrendedFlux[cad] = flux[cad] - fillval[fillval != 0] File "/home/fergal/all/svns/dave/fileio/nca.py", line 104, in setitem np.ndarray.setitem(self, key, value) ValueError: setting an array element with a sequence.

About 130 of the ~4000 targets looked at raised this exception.

Tom, this looks like your code, can you take a look? Issue #1 contains advice on reading in a clip and using it for debugging.

mrtommyb commented 8 years ago

Ok, I'm investigating. I think it's pretty clear what's going on. Do you have an example of where everything works well

fergalm commented 8 years ago

There's about 130 that fail for this reason out of 4000, so it works well most of the time. Try 212,756,297 as a pretty example of one that ran to completion.

mrtommyb commented 8 years ago

Can you push the as run version to github. I'm not seeing some of the changes

mrtommyb commented 8 years ago

e9370ca fixes this issue

fergalm commented 8 years ago

As run is pushed.

mrtommyb commented 8 years ago

You should be able to just rerun those 130 targets. This bug should not effect the other targets.