From: YAN D. <dai...@ya...> - 2012-11-22 18:23:22
|
Could Someone help me? Thanks! When I run the python program,the console shows: File "Report.py", line 163, in <module> ProcessEnergy(infiles,summaryDoc,detailedDoc,StartCut) File "/home/darwin/simulation/analysis/Energy.py", line 83, in ProcessEnergy (mean,var,error,kappa)=stats.Stats(data[StartCut:-1]) File "/home/darwin/simulation/analysis/stats.py", line 68, in Stats mean=sum(x)/(N+0.0) File "/usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 1453, in sum return _wrapit(a, 'sum', axis, dtype, out) File "/usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 37, in _wrapit result = getattr(asarray(obj),method)(*args, **kwds)TypeError: cannot perform reduce with flexible type Could someone tell me what's wrong with that? |