Skip to content

Commit 0b60599

Browse files
committed
Add trivial debug script
1 parent dfb5780 commit 0b60599

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

source-code/hydra/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ multiruns and so on.
1414
1. `config.yaml`: configuration file with the defaults.
1515
1. `distr/gauss.yaml`: configuration file for the Gaussian distirubtion.
1616
1. `distr/uniform.yaml`: configuration file for the uniform distirubtion.
17+
1. `debug.py`: Python script that simply prints the configuration settings for
18+
debugging purposes.
1719

1820
## How to use it?
1921
Run with configuratino file settings:

source-code/hydra/debug.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env python
2+
3+
from omegaconf import DictConfig, OmegaConf
4+
import hydra
5+
6+
@hydra.main(version_base=None, config_path='conf/', config_name='config')
7+
def my_app(cfg):
8+
print(OmegaConf.to_yaml(cfg))
9+
10+
if __name__ == '__main__':
11+
my_app()

0 commit comments

Comments
 (0)