-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: first working version of config_hooks
- Loading branch information
Showing
5 changed files
with
96 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ Contents | |
ingredients | ||
examples | ||
apidoc | ||
internals | ||
|
||
|
||
Index | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Internals of Sacred | ||
******************* | ||
Here I'll describe some internals of Sacred. | ||
|
||
|
||
Configuration Process | ||
===================== | ||
The configuration process is run when an experiment is started: | ||
|
||
#. Determine the order for running the ingredients | ||
|
||
- topological | ||
- in the order they where added | ||
|
||
#. For each ingredient do: | ||
|
||
- gather all config updates that apply (needs ``config_updates``) | ||
- gather all named configs to use (needs ``named_configs``) | ||
- gather all fallbacks that apply from subrunners (needs ``subrunners.config``) | ||
- make the fallbacks read-only | ||
- run all named configs and use the results as additional config updates, | ||
but with lower priority than the global ones. (needs ``named_configs``, ``config_updates``) | ||
- run all normal configs | ||
- update the global ``config`` | ||
- run the config hook | ||
- update the global ``config_updates`` | ||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters