From 575ac2ea7b7a79063e4930604fef0a089fc7500e Mon Sep 17 00:00:00 2001 From: seogi_macbook Date: Thu, 17 Sep 2015 22:15:59 -0700 Subject: [PATCH] fix active cell map --- SimPEG/Maps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SimPEG/Maps.py b/SimPEG/Maps.py index 634c4b9f..7b8c37d6 100644 --- a/SimPEG/Maps.py +++ b/SimPEG/Maps.py @@ -471,8 +471,8 @@ class ActiveCells(IdentityMap): self.indInactive = np.logical_not(indActive) if Utils.isScalar(valInactive): self.valInactive = np.ones(self.nC)*float(valInactive) - - self.valInactive = valInactive.copy() + else: + self.valInactive = valInactive.copy() self.valInactive[self.indActive] = 0 inds = np.nonzero(self.indActive)[0]