Skip to content

Commit d2c7d99

Browse files
committed
Add alternative configuration file
1 parent b6a759e commit d2c7d99

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

source-code/hydra/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ multiruns and so on.
1515
1. `config.yaml`: configuration file with the defaults.
1616
1. `distr/gauss.yaml`: configuration file for the Gaussian distirubtion.
1717
1. `distr/uniform.yaml`: configuration file for the uniform distirubtion.
18+
1. `file_config.yaml`: configuration file with the output file name.
1819
1. `debug.py`: Python script that simply prints the configuration settings for
1920
debugging purposes.
2021

@@ -38,3 +39,8 @@ To use a uniform distribution between -1 and 0:
3839
```bash
3940
$ ./gen_rand.py distr=uniform distr.a=-1.0 distr.b=0.0
4041
```
42+
43+
To use a different configuration file:
44+
```bash
45+
$ ./gen_rand.py -cn file_config.yaml
46+
```
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
hydra:
2+
job:
3+
chdir: true
4+
n: 1
5+
file: output.txt
6+
defaults:
7+
- distr: gauss
8+
- _self_

0 commit comments

Comments
 (0)