Skip to content

Commit

Permalink
Removed knownSrc
Browse files Browse the repository at this point in the history
  • Loading branch information
lheagy committed May 4, 2015
1 parent fbcd3e3 commit e3e0905
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions SimPEG/Survey.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ class BaseSrc(object):
rxList = None #: SimPEG Receiver List
rxPair = BaseRx

knownSrcTypes = None #: Set this to a list of strings to ensure that srcType is known

def __init__(self, loc, srcType, rxList, **kwargs):
assert type(rxList) is list, 'rxList must be a list'
for rx in rxList:
Expand All @@ -132,16 +130,6 @@ def __init__(self, loc, srcType, rxList, **kwargs):
self.rxList = rxList
Utils.setKwargs(self, **kwargs)

@property
def srcType(self):
"""Source Type"""
return getattr(self, '_srcType', None)
@srcType.setter
def srcType(self, value):
known = self.knownSrcTypes
if known is not None:
assert value in known, "srcType must be in ['%s']" % ("', '".join(known))
self._srcType = value

@property
def nD(self):
Expand Down

0 comments on commit e3e0905

Please sign in to comment.