Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PythonFZ opened this issue Apr 30, 2024 · 0 comments
Labels
bug Something isn't working needs-tests

Comments

@PythonFZ
Copy link
Member

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)
@PythonFZ PythonFZ added bug Something isn't working needs-tests labels Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-tests
Projects
None yet
Development

No branches or pull requests

1 participant