Remove parent from Tool and pass it to configuration()
The following discussion from !200 (merged) should be addressed:
-
@rmatev commented on a discussion: (+4 comments) id like to avoid creating two instances of a tool each time its assigned to a parent
you mean one additional instance. But why avoiding this?
If we step back a little, consider this
x = [1, 2, 3] a1 = Alg1(MyList=x) a2 = Alg2(MyList=x) x.append(4)
what happens in this case?
And now back to
Tool
, why does it need to know about its parent at all? What about just passing it toconfiguration()
, which is the only place where you really need this.