genicam / harvesters

Image Acquisition Library for GenICam-based Machine Vision System
Apache License 2.0
500 stars 86 forks source link

fix deprecated numpy thruth value expression #455

Closed TEXflip closed 1 month ago

TEXflip commented 1 month ago

Since the numpy version 1.14 expressions like: if not self.data: for checking both if the object is None and if the array is empty is deprecated and since later versions it throws a ValueError. I updated the line in represent_pixel_location() to handle later numpy versions.

sunavlis commented 1 month ago

@TEXflip Thanks for your contribution, PR is merged into main branch and part of the upcoming release