Commit e1c601d
authored
Allow handles to be passed as a nparray and not just a Python list
This is a one line edit.
I replaced "if handles and labels:" with "if handles is not None and labels is not None:"
I ran into an error when I passed the handles as a nparray instead of a Python list: "ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()".
I felt it should work for any iterable that contains the handles, and this tiny edit solved the issue with nparrays.1 parent 462e6a6 commit e1c601d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1363 | 1363 | | |
1364 | 1364 | | |
1365 | 1365 | | |
1366 | | - | |
| 1366 | + | |
1367 | 1367 | | |
1368 | 1368 | | |
1369 | 1369 | | |
| |||
0 commit comments