Fix lorentz correction
This commit is contained in:
parent
58641ab94f
commit
8fb1c5f247
@ -224,6 +224,10 @@ def correction(value, lorentz=True, zebra_mode="--", ang1=0, ang2=0):
|
|||||||
if lorentz is False:
|
if lorentz is False:
|
||||||
return value
|
return value
|
||||||
else:
|
else:
|
||||||
|
# convert to rad
|
||||||
|
ang1 = ang1 * np.pi / 180
|
||||||
|
ang2 = ang2 * np.pi / 180
|
||||||
|
|
||||||
if zebra_mode == "bi":
|
if zebra_mode == "bi":
|
||||||
corr_value = np.abs(value * np.sin(ang1))
|
corr_value = np.abs(value * np.sin(ang1))
|
||||||
return corr_value
|
return corr_value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user