cversek / python-FLI

Python bindings for Finger Lakes Instrumentation (FLI) cameras and peripherals.
MIT License
10 stars 11 forks source link

USBCamera.set_bit_depth(bitdepth="8bit") not working properly #3

Closed cversek closed 11 years ago

cversek commented 11 years ago

Note that the method name USBCamera.set_bit_depth has changed to USBCamera.set_bitdepth.

Originally, the method USBCamera.take_photo returned a numpy array with dtype=numpy.uint16 regardless of previous bitdepth setting in the USBCamera.set_bitdepth method; now this has been fixed to return an array of dtype=numpy.uint8 when using the "8bit" setting. Furthermore, a bitdepth attribute has now been added to USBCamera objects to track this setting, the default value gets set to "8bit" during object initialization.