From bed6c72ddffc866b7cc9db10b70a887aaef2a034 Mon Sep 17 00:00:00 2001
From: Mohammad Eshraqi <mohammad.eshraqi@esss.se>
Date: Tue, 19 Feb 2019 13:54:39 +0100
Subject: [PATCH] added numpy to emit_geo

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

diff --git a/ess/SP_Relativity.py b/ess/SP_Relativity.py
index beeafe3..5c87cbe 100644
--- a/ess/SP_Relativity.py
+++ b/ess/SP_Relativity.py
@@ -141,6 +141,7 @@ def emit_geo(u_up_array):
     -------
     geometrical emittance of the distribution/array in units of pi.mm.mrad
     '''
+    import numpy as np
     u_shift = u_up_array[:,0]      #  x
     up_shift = u_up_array[:,1]     #  x'
     u = u_shift - np.average(u_shift)
-- 
GitLab