Skip to content

Commit dfb5780

Browse files
committed
Update for new version of hydra
1 parent 4b96831 commit dfb5780

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

source-code/hydra/conf/config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
verbose: False
22
n: 1
33
defaults:
4-
- distr: gauss
4+
- distr: gauss
5+
- _self_
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
distr:
2-
name: gauss
3-
mu: 0.0
4-
sigma: 1.0
1+
name: gauss
2+
mu: 0.0
3+
sigma: 1.0
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
distr:
2-
name: uniform
3-
a: 0.0
4-
b: 1.0
1+
name: uniform
2+
a: 0.0
3+
b: 1.0

source-code/hydra/gen_rand.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
LOG = logging.getLogger(sys.argv[0])
99

10-
@hydra.main(config_path='conf/config.yaml')
10+
@hydra.main(version_base=None, config_path='conf/', config_name='config')
1111
def gen_rand(cfg):
1212
if cfg.verbose:
1313
print(cfg.pretty(), file=sys.stderr)

0 commit comments

Comments
 (0)