LJMUAstroecology / flirpy

Python library to interact with FLIR camera cores
Other
184 stars 54 forks source link

small bug in code for Mac #68

Closed BryceDrechselSmith closed 2 years ago

BryceDrechselSmith commented 2 years ago

Hey guys, wanna start by saying thanks, you have done a great job.

In your code from boson.py, using mac, there is a slight problem:

line 157 reads: if device.contains("VendorID_2507") and device.contains("ProductID_16391"):

however device will be a string which doesn't allow str.contains(),

working correction: if "VendorID_2507" in device and "ProductID_16391" in device:

BryceDrechselSmith commented 2 years ago

guess this issue is already fixed here in the code, but is still present in pip install