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

deps_path does not work with outs_path #803

Open
PythonFZ opened this issue May 27, 2024 · 0 comments · May be fixed by #875
Open

deps_path does not work with outs_path #803

PythonFZ opened this issue May 27, 2024 · 0 comments · May be fixed by #875
Labels
bug Something isn't working needs-tests p0-critical

Comments

@PythonFZ
Copy link
Member

see

from pathlib import Path
import zntrack


class MyNode(zntrack.Node):
    deps_path: Path = zntrack.deps_path()
    params_path: Path = zntrack.params_path()

    outs_path: Path = zntrack.outs_path("outs")
    metrics_path: Path = zntrack.metrics_path("metrics")
    plots_path: Path = zntrack.plots_path("plots")

    def run(self):
        pass


def main():
    with zntrack.Project() as project:
        node_1 = MyNode(deps_path="deps_path_1", params_path="params_path_1")
        MyNode(deps_path=node_1.outs_path, params_path="params_path_2")
    project.run(repro=False)


if __name__ == "__main__":
    main()
@PythonFZ PythonFZ added bug Something isn't working p0-critical needs-tests labels May 27, 2024
@PythonFZ PythonFZ linked a pull request Feb 1, 2025 that will close this issue
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 p0-critical
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant