v2.8.0
Version 2.8.0
- _sane.c:
- Rewritten snap method, it now also works with backends which do not report
the number of lines in advance. Also, it now reads the data into a generic
memory buffer, removing the dependency on Pillow and numpy/numarray in the
C code. A PIL image is created via via Image.frombuffer in sane.py now. - General cleanup, fixing some Py_INCREF and Py_DECREF issues along the way.
- Rewritten snap method, it now also works with backends which do not report
- sane.py:
- Make arr_snap return a 3D numpy array, shaped (samples, width, heigth)
- Remove multipleOf support in arr_snap, this should be done by the caller
- Overall cleanup
- Expose the localOnly option to sane.get_devices()
- Documentation:
- New python-sphinx generated documentation, reworked example
Note for package maintainers
The build-time dependency on the PIL and numpy headers has been removed.