Commit 0e23a49
committed
bug-fix: Numpy ValueError when cheking empty list equality
Using the equality operator with an empty list will result in the
following error.
ValueError: operands could not be broadcast together with shapes (28,) (0,)
Using len() and inverting the logic avoids this issue.1 parent 870d792 commit 0e23a49
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
943 | | - | |
944 | | - | |
945 | | - | |
| 943 | + | |
946 | 944 | | |
| 945 | + | |
| 946 | + | |
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
| |||
0 commit comments