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
This is an error we get if we try and logical_or timeseries that have None entries. Note that in python None is falsy, so bool(None) returns False. I would expected something called logical_* to cast to a boolean, if casting to anything.
File "/src/traces/traces/timeseries.py", line 805, in logical_or
return self.operation(other, lambda x, y: int(x or y))
File "/src/traces/traces/timeseries.py", line 750, in operation
result[time] = function(value, other[time])
File "/src/traces/traces/timeseries.py", line 805, in <lambda>
return self.operation(other, lambda x, y: int(x or y))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
The text was updated successfully, but these errors were encountered:
This is an error we get if we try and
logical_or
timeseries that haveNone
entries. Note that in pythonNone
is falsy, sobool(None)
returnsFalse
. I would expected something calledlogical_*
to cast to a boolean, if casting to anything.The text was updated successfully, but these errors were encountered: