From 0d9b7383db8e205413286c61acdfc31aba595d5d Mon Sep 17 00:00:00 2001 From: Luke Date: Mon, 1 Mar 2021 15:43:13 +0100 Subject: [PATCH] Dev (#80) * fix bug with printing seed using rich tree --- src/utils/template_utils.py | 2 +- tests/hydra_wandb_test.py | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/utils/template_utils.py b/src/utils/template_utils.py index f1f1e54..3355546 100644 --- a/src/utils/template_utils.py +++ b/src/utils/template_utils.py @@ -68,7 +68,7 @@ def print_config(config: DictConfig): seed = config.get("seed", "None") seed_branch = tree.add(f"Seed", style=style, guide_style=style) - seed_branch.add(seed, style=style, guide_style=style) + seed_branch.add(str(seed) + "\n") print(tree) diff --git a/tests/hydra_wandb_test.py b/tests/hydra_wandb_test.py index cc6b1da..c739140 100644 --- a/tests/hydra_wandb_test.py +++ b/tests/hydra_wandb_test.py @@ -1,10 +1,13 @@ +##################################################### +# export WANDB_START_METHOD=thread +# python hydra_wandb_test.py -m +some_param=1,2,3,4 +##################################################### + + # import os, sys # sys.path.insert(1, os.path.join(sys.path[0], "..")) # print(os.path.abspath(os.curdir)) -##################################################### -# python hydra_wandb_test.py -m +some_param=1,2,3,4 -##################################################### import hydra import wandb