zincware / ZnTrack

Create, visualize, run & benchmark DVC pipelines in Python & Jupyter notebooks.
https://zntrack.readthedocs.io
Apache License 2.0
44 stars 4 forks source link

`zntrack.deps`: Two external Nodes with the same parameters don't trigger graph. #791

Open PythonFZ opened 2 months ago

PythonFZ commented 2 months ago

This is not tested, but I'd assume that


class A(Node):
   paramter: int = zntrack.params()

   def do_stuff(self): ...

class B(Node):
   paramter: int = zntrack.params()

   def do_stuff(self): ...

a = A(5)
b = B(5)

with project:
   x = Parent(helper=a)

# This should be executed again but probably isn't
with project:
   x = Parent(helper=b)