From 23e715b293f3b52fb15c557c055ef0e98bc40587 Mon Sep 17 00:00:00 2001 From: Alexey Buzmakov Date: Fri, 21 Oct 2016 18:19:07 +0300 Subject: [PATCH] Try fixing issue #92 --- wpg/srwlib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wpg/srwlib.py b/wpg/srwlib.py index 326cac5..a662e8b 100644 --- a/wpg/srwlib.py +++ b/wpg/srwlib.py @@ -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