From e8dca096e0d78443d8fc8e5506ef56d543d8c8c1 Mon Sep 17 00:00:00 2001
From: Mohammad Eshraqi <mohammad.eshraqi@esss.se>
Date: Tue, 19 Feb 2019 13:50:56 +0100
Subject: [PATCH] removed a reference to spr in emit_norm which was not needed

---
 ess/SP_Relativity.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ess/SP_Relativity.py b/ess/SP_Relativity.py
index 0703607..beeafe3 100644
--- a/ess/SP_Relativity.py
+++ b/ess/SP_Relativity.py
@@ -172,7 +172,7 @@ def emit_norm(u_up_array, gamma):
     normalized emittance of the distribution/array in units of pi.mm.mrad
     '''
     #from ess import SP_Relativity as spr
-    bt = spr.beta_from_gamma(gamma)
+    bt = beta_from_gamma(gamma)
     geo_emit = emit_geo(u_up_array)
     emit = bt * gamma * geo_emit
     return emit
-- 
GitLab