Skip to content

Commit d17016c

Browse files
committed
Updated Changes.rst [ci skip]
Formatting/typos
1 parent 27781e7 commit d17016c

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

CHANGES.rst

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,24 @@
22
Version 2.7.0
33
-------------
44

5-
- Split from Pillow to it's own repo
5+
- Split from Pillow to its own repo
66

77
- _sane.c :
88
- support for numpy (numarray still possible), define ARRAY_SUPPORT
9+
910
- arr_scan allows colors array using numpy
10-
_checkArray_Support : answer as tupple the array_support at compilation and
11-
if libraries are found at execution
11+
12+
- checkArray_Support : answer as tuple the array_support at compilation and if the libraries are found at execution
1213

1314
- sane.py:
1415
- arr_scan allows colors array using numpy
1516

1617
- setup.py:
18+
1719
- define WITH_NUMPY if available
1820

1921
- demo_numpy:
22+
2023
- various call of arr_snap except 16bit colors not supported by Epkowa or libsane
2124

2225

@@ -25,31 +28,41 @@ from V1.0 to V2.0
2528
-----------------
2629

2730
- _sane.c:
31+
2832
- Values for option constraints are correctly translated to floats
2933
if value type is TYPE_FIXED for SANE_CONSTRAINT_RANGE and
3034
SANE_CONSTRAINT_WORD_LIST
35+
3136
- added constants INFO_INEXACT, INFO_RELOAD_OPTIONS,
3237
INFO_RELOAD_PARAMS (possible return values of set_option())
3338
to module dictionnary.
39+
3440
- removed additional return variable 'i' from SaneDev_get_option(),
3541
because it is only set when SANE_ACTION_SET_VALUE is used.
42+
3643
- scanDev.get_parameters() now returns the scanner mode as 'format',
3744
no more the typical PIL codes. So 'L' became 'gray', 'RGB' is now
3845
'color', 'R' is 'red', 'G' is 'green', 'B' is 'red'. This matches
3946
the way scanDev.mode is set.
4047
This should be the only incompatibility vs. version 1.0.
4148

4249
- sane.py
50+
4351
- ScanDev got new method __load_option_dict() called from __init__()
4452
and from __setattr__() if backend reported that the frontend should
4553
reload the options.
54+
4655
- Nice human-readable __repr__() method added for class Option
56+
4757
- if __setattr__ (i.e. set_option) reports that all other options
4858
have to be reloaded due to a change in the backend then they are reloaded.
59+
4960
- due to the change in SaneDev_get_option() only the 'value' is
5061
returned from get_option().
62+
5163
- in __setattr__ integer values are automatically converted to floats
5264
if SANE backend expects SANE_FIXED (i.e. fix-point float)
65+
5366
- The scanner options can now directly be accessed via scanDev[optionName]
5467
instead scanDev.opt[optionName]. (The old way still works).
5568

0 commit comments

Comments
 (0)