Changeset 4232
- Timestamp:
- 06/28/07 12:02:25 (6 years ago)
- Files:
-
- 1 modified
-
experimental/AWG/trunk/AWG/AWG.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
experimental/AWG/trunk/AWG/AWG.py
r4231 r4232 203 203 #data_max = max(data) 204 204 data_max = 1 205 SHRT_MAX = 32767 - 1#have to use -1 because round might round up to 32768205 SHRT_MAX = 32767 #have to use -1 because round might round up to 32768 206 206 data = [int(round(float(x)*(SHRT_MAX/data_max))) for x in data] #conver to integer format 207 207 elif type == "complexFloat":