From 7fa5f6f0f6a04d0ddcc62d313d775c7c3c01c611 Mon Sep 17 00:00:00 2001 From: SEOGI KANG Date: Mon, 8 Dec 2014 12:12:51 -0800 Subject: [PATCH] Fix potential bug for exponential map --- SimPEG/Maps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SimPEG/Maps.py b/SimPEG/Maps.py index bf55a0cf..85c40f03 100644 --- a/SimPEG/Maps.py +++ b/SimPEG/Maps.py @@ -86,7 +86,7 @@ class IdentityMap(object): """ print 'Testing %s' % str(self) if m is None: - m = np.random.rand(self.nP) + m = abs(np.random.rand(self.nP)) if 'plotIt' not in kwargs: kwargs['plotIt'] = False return checkDerivative(lambda m : [self * m, self.deriv(m)], m, **kwargs)