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.
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.