This commit is contained in:
Rowan Cockett
2015-05-29 11:17:56 -07:00
parent 59fcd3925f
commit de27c4e4ec
3 changed files with 6 additions and 9 deletions
+1 -7
View File
@@ -71,13 +71,7 @@ class Fields(object):
if type(srcTestList) is slice:
ind = srcTestList
else:
if type(srcTestList) is not list:
srcTestList = [srcTestList]
for srcTest in srcTestList:
if srcTest not in self.survey.srcList:
raise KeyError('Invalid Source, not in survey list.')
ind = np.in1d(self.survey.srcList, srcTestList)
ind = self.survey.getSourceIndex(srcTestList)
return ind
def _nameIndex(self, name, accessType):