Open davidh- opened 1 year ago
nice finding!
Would you agree is is fine to set all of the negative values in the numpy array to 0?
yes, adding:
np_v8[np_v8 < 0] = 0
definitely won't hurt.
Or do you have a better fix for this?
unfortunately not, for now at least
Hi,
I have the code working with my T3 Search. Just fixing errors that are popping up and one of them is the following:
I added some print statements to see what's the issue and found
np_v8
is a numpy array instantiated to have negative values for the first ~16384 entries. The sqrt throws an error when it encounters these. Would you agree is is fine to set all of the negative values in the numpy array to 0? Or do you have a better fix for this?