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

@ -59,7 +59,7 @@ class Param(OptimizationHandlable, ObsAr):
import pydot
node = pydot.Node(id(self), shape='record', label=self.name)
G.add_node(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)