log_{line_segments,point}
fails when color is a numpy array
#2486
Labels
🪳 bug
Something isn't working
🐍 Python API
Python logging API
🏎️ Quick Issue
Can be fixed in a few hours or less
Describe the bug
fails with the following warning
The boolean value of a numpy array with more than one value is not defined and is also False for scalar arrays with 0 value. This can most likely be fixed by changing
if color:
toif color is not None:
. Maybe worth checking if similar code is anywhere else in the codebase.A workaround is to convert the color to a list first.
Desktop (please complete the following information):
Rerun version
The text was updated successfully, but these errors were encountered: