From 7e59ee98ce6881cc7e2e21618dd6689aed9af654 Mon Sep 17 00:00:00 2001 From: Martin Reinecke Date: Fri, 23 Feb 2018 12:11:57 +0100 Subject: [PATCH] use better methods --- nifty4/domains/rg_space.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nifty4/domains/rg_space.py b/nifty4/domains/rg_space.py index 3986518a..0d5d9d4d 100644 --- a/nifty4/domains/rg_space.py +++ b/nifty4/domains/rg_space.py @@ -133,7 +133,7 @@ class RGSpace(StructuredDomain): return np.sqrt(np.nonzero(tmp)[0])*self.distances[0] else: # do it the hard way # FIXME: this needs to improve for MPI. Maybe unique()/gather()? - tmp = dobj.to_global_data(self.get_k_length_array().val) + tmp = self.get_k_length_array().to_global_data() tmp = np.unique(tmp) tol = 1e-12*tmp[-1] # remove all points that are closer than tol to their right -- GitLab