iagapov / ocelot

Main repository moved to https://github.com/ocelot-collab/ocelot
GNU General Public License v3.0
8 stars 11 forks source link

demos.optics.ex6.py does not work #36

Open sergey-tomin opened 9 years ago

sergey-tomin commented 9 years ago

Traceback (most recent call last): File "C:/Users/tomins/Documents/Dropbox/DESY/repository/ocelot/demos/optics/ex6.py", line 92, in s2 = fwhm(x,np.abs(of.mesh.points[:,of.ny/2])) File "C:\Users\tomins\Documents\Dropbox\DESY\repository\ocelot\common\math_op.py", line 126, in fwhm return x[downs[-1]] - x[ups[0]] IndexError: list index out of range

sergey-tomin commented 7 years ago

Please fix or remove it