Skip to content

Commit c0322a5

Browse files
author
David Miguel Susano Pinto
committed
PiCamera._fetch_data: fix use of identity instead of equality operator
1 parent dddf4e3 commit c0322a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

microscope/cameras/picamera.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def HW_trigger(self, channel):
140140
)
141141

142142
def _fetch_data(self):
143-
if self._queue.qsize() is not 0:
143+
if self._queue.qsize() > 0:
144144
data = self._queue.get()
145145
_logger.info("Sending image")
146146
return data

0 commit comments

Comments
 (0)