From 7f0e2a25242916ee5a910bc1892143a18b27f95d Mon Sep 17 00:00:00 2001 From: Young Joon Lee Date: Tue, 1 Aug 2023 11:39:55 +0900 Subject: [PATCH] feat(hyfi): add dryrun parameter to run_config function --- src/hyfi/__cli__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hyfi/__cli__.py b/src/hyfi/__cli__.py index c6d8ec41..88dcf3f0 100644 --- a/src/hyfi/__cli__.py +++ b/src/hyfi/__cli__.py @@ -31,7 +31,8 @@ def cli_main(cfg: DictConfig) -> None: if hyfi.project: HyFI.set_project(hyfi.project) - verbose = hyfi.verbose + dryrun = hyfi.dryrun or hyfi.noop + verbose = hyfi.verbose or dryrun # Print out the command line interface for the application. if verbose: app_name = hyfi.app_name @@ -48,8 +49,7 @@ def cli_main(cfg: DictConfig) -> None: logger.info("Hydra working directory : %s", os.getcwd()) logger.info("Orig working directory : %s", hydra.utils.get_original_cwd()) - HyFI.run_config(config=cfg) - + HyFI.run_config(config=cfg, dryrun=dryrun) HyFI.terminate()