KnutOlaD/Deconv_code_data

deconv.py sigma as Nx1 vector

britairving opened this issue · 2 comments

I am getting errors when I pass sigma through as an Nx1 vector the same size as u_slow.

The issue "ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()." is flagged at line 890 in deconv.py. I've tried debugging this by replacing with try:
if sigma == 'auto':
print('yes')
else:
print('no')
except:
if isinstance(sigma, float):
sigma = sigma*n.ones(len(u_slow))
elif len(sigma) == len(u_slow):
sigma = sigma
else:
print('no')
but that still turns up errors... I'm not having any luck fixing it so thought I'd try to submit the issue :) thanks!

Hey and thanks for noticing!

It should work now. Seems like there was a type comparison issue. Could you test on your side as well?

It is working now, thank you very much!