Skip to content
Snippets Groups Projects
Commit d248e3d4 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'egammaFactories_fix_copy' into 'master'

Change slightly the way the copy is implemented

See merge request atlas/athena!14950
parents 5e270270 b989b99d
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