remove mutable arguments.

This commit is contained in:
Rowan Cockett
2016-04-07 16:35:47 -07:00
parent 0575490f56
commit 3e4f47711c
6 changed files with 59 additions and 19 deletions
+3 -1
View File
@@ -33,7 +33,9 @@ class BaseInversion(object):
self._directiveList = value
self._directiveList.inversion = self
def __init__(self, invProb, directiveList=[], **kwargs):
def __init__(self, invProb, directiveList=None, **kwargs):
if directiveList is None:
directiveList = []
self.directiveList = directiveList
Utils.setKwargs(self, **kwargs)