You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the code working with my T3 Search. Just fixing errors that are popping up and one of them is the following:
/home/pi/ht301_hacklib/ht301_hacklib.py:94: RuntimeWarning: invalid value encountered in sqrt
np_Ttot = np_v8**0.5 - l_flt_1000337C - ABSOLUTE_ZERO_CELSIUS
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?
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?The text was updated successfully, but these errors were encountered: