-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functionality to allow addition of new value from yaml (#9)
* Add additional parameter to CfgNode to allow new values * Format config files for test properly * Allow addition of new CfgNodes from yaml file * Format config properly * Simplify logic for merging configurations
- Loading branch information
1 parent
a4bba08
commit 6c41d01
Showing
5 changed files
with
56 additions
and
18 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
KWARGS: | ||
a: 1 # Test adding of basic value | ||
B: | ||
c: 2 # Test adding of another node | ||
D: | ||
e: '3' # Test adding of nested nodes |
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,3 @@ | ||
KWARGS: | ||
Y: | ||
f: 4 # While `KWARGS` allows new nodes, `KWARGS.Y` doesn't, so this should raise an Exception |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
setup( | ||
name="yacs", | ||
version="0.1.4", | ||
version="0.1.5", | ||
author="Ross Girshick", | ||
author_email="[email protected]", | ||
description="Yet Another Configuration System", | ||
|
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