We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you want to do something like:
class MyNode: self.inputs = zntrack.deps() def run(self): self.data = sum(self.inputs) class Linspace(zntrack.Node): args: tuple = zntrack.params() results = zntrack.outs() def run(self): self.results = np.linspace(*args) MyNode(inputs=Linspace(args=(0,1,100)))
this could be simplified to
zn_linspace = zntrack.nodify(np.linspace) # or zntrack.convert, idk MyNode(inputs=zn_linspace(0, 1, 100))
This would only work if:
and would create
class Linspace(zntrack.Node): args: tuple = zntrack.params() kwargs: dict = zntrack.param() results: any = zntrack.outs() def run(self): self.results = np.linspace(*args, **kwargs)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If you want to do something like:
this could be simplified to
This would only work if:
and would create
The text was updated successfully, but these errors were encountered: