Skip to content
Snippets Groups Projects
Commit b989b99d authored by Christos Anastopoulos's avatar Christos Anastopoulos
Browse files
parent 30288b89
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,9 @@ class Factory:
def copy(self, name, **kw):
"copy(self, name, **kw) --> return a new instance of the factory with new name and defaults"
kw['name'] = name
return self.__class__(self.iclass, **dict(self.defaults, **kw) )
deflt = self.defaults.copy()
deflt.update(kw)
return self.__class__(self.iclass, **deflt )
def __call__(self, name = '', **kw ):
"""Call preInit functions, instantiate tool (alg), call postInit functions and add
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment