- Timestamp:
- 01/13/13 17:31:32 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/decorate/wrapper.py
r629 r643 131 131 [1.0, 2.0, 2.0] 132 132 133 >>> @discrete([1,3,5,7], index=(0,3) ])133 >>> @discrete([1,3,5,7], index=(0,3)) 134 134 ... def squared(x): 135 135 .... return [i**2 for i in x] … … 139 139 samples = [asarray(samples)] 140 140 samples[0].sort() 141 if isinstance(index, int): index = (index,) 141 142 index = [index] 142 143
Note: See TracChangeset
for help on using the changeset viewer.