Skip to content

Commit

Permalink
Try fixing issue #92
Browse files Browse the repository at this point in the history
  • Loading branch information
buzmakov committed Oct 21, 2016
1 parent 1a9c8dc commit 23e715b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wpg/srwlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2833,8 +2833,8 @@ def ray_path_in_spheres(_x, _y, _void_cen_rad):
pathInBody -= ray_path_in_spheres(x, y, _void_cen_rad)

for ie in range(ne):
opT.arTr[ofst] = exp(-0.5*pathInBody/arAttenLen[ie]) #amplitude transmission
opT.arTr[ofst + 1] = -arDelta[ie]*pathInBody #optical path difference
opT.arTr[ofst] = exp(-0.5*pathInBody/arAttenLen[0][ie]) #amplitude transmission <-- FIX by AB
opT.arTr[ofst + 1] = -arDelta[0][ie]*pathInBody #optical path difference <-- FIX by AB
ofst += 2
x += hx
y += hy
Expand Down

0 comments on commit 23e715b

Please sign in to comment.