Skip to content

Commit

Permalink
feat(hyfi): add dryrun parameter to run_config function
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Aug 1, 2023
1 parent 323093d commit 7f0e2a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hyfi/__cli__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()


Expand Down

0 comments on commit 7f0e2a2

Please sign in to comment.