making observables accessable

This commit is contained in:
mzwiessele 2014-04-04 13:47:02 +01:00
parent 22e4f8a1e8
commit 04a889b3a9
7 changed files with 45 additions and 59 deletions

View file

@ -90,7 +90,7 @@ class Parameterized(Parameterizable):
child_node = child.build_pydot(G)
G.add_edge(pydot.Edge(node, child_node))
for o in self._observer_callables_.keys():
for o in self.observers.keys():
label = o.name if hasattr(o, 'name') else str(o)
observed_node = pydot.Node(id(o), label=label)
G.add_node(observed_node)