Python-based configuration system (closes #43)
This push provides a basic configuration system for Bob, python-based.
Merge request reports
Activity
@andre.anjos two things:
1- the tests are failing.
2- After a lot of work with these configurations, I have always wanted to merge several configs into one bigger config. Let me explain: I would like to have a couple of configurations like this:
$ cat config_replay.py database = 'replay'
$ cat config_replaymobile.py database = 'replay-mobile'
$ cat config_databases.py database.original_extension = '.hdf5'
And then the following commands:
$ command_line config_replay.py config_databases.py $ command_line config_replaymobile.py config_databases.py
I know with
jgen
I can make thedatabase
variable a template and generate two configurations but I think having the ability to share variables between config files is far more powerful and allows for more modular creation of config files.Here is another example:
# config_algorithm.py algorithm = 'isv' sub_directory = 'isv'
# config_database1.py database = 'atnt'
# config_database2.py database = 'mobio' sub_directory += '-male'
Then I would have:
$ verify.py config_algorithm.py config_database1.py $ verify.py config_algorithm.py config_database2.py
Is this possible/implemented?
@amohammadi: with the latest commits, the way you want to use the config system will work out of the box. Read the docs for explanations.
- Resolved by André Anjos
- Resolved by Amir MOHAMMADI
- Resolved by André Anjos
- Resolved by Amir MOHAMMADI
- Resolved by Amir MOHAMMADI
- Resolved by André Anjos
- Resolved by Amir MOHAMMADI
- Resolved by André Anjos
- Resolved by Amir MOHAMMADI
@amohammadi: I just added test units.