Changeset 4232

Show
Ignore:
Timestamp:
06/28/07 12:02:25 (6 years ago)
Author:
DrewCormier
Message:

problem was actually in the component

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • experimental/AWG/trunk/AWG/AWG.py

    r4231 r4232  
    203203            #data_max = max(data) 
    204204            data_max = 1 
    205             SHRT_MAX = 32767 - 1    #have to use -1 because round might round up to 32768 
     205            SHRT_MAX = 32767    #have to use -1 because round might round up to 32768 
    206206            data = [int(round(float(x)*(SHRT_MAX/data_max))) for x in data]  #conver to integer format 
    207207        elif type == "complexFloat":