From 1506575b01dbb8a2f13630d5902ec9254c6cece4 Mon Sep 17 00:00:00 2001 From: rowanc1 Date: Tue, 1 Apr 2014 09:44:23 -0700 Subject: [PATCH] Added nD to Survey.BaseRx --- SimPEG/Survey.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SimPEG/Survey.py b/SimPEG/Survey.py index 936560d6..eff41adc 100644 --- a/SimPEG/Survey.py +++ b/SimPEG/Survey.py @@ -201,6 +201,10 @@ class BaseRx(object): assert value in known, "rxType must be in ['%s']" % ("', '".join(known)) self._rxType = value + @property + def nD(self): + return self.locs.shape[0] + class BaseTx(object): """SimPEG Transmitter Object"""