[WIP] 3482 Develop components for the model package MVP#3593
[WIP] 3482 Develop components for the model package MVP#3593
Conversation
* [DLMED] add ConfigParser Signed-off-by: Nic Ma <[email protected]> * [DLMED] add more doc-string Signed-off-by: Nic Ma <[email protected]> * [DLMED] add unit tests Signed-off-by: Nic Ma <[email protected]> * [DLMED] fix CI error Signed-off-by: Nic Ma <[email protected]> * [DLMED] fix test error Signed-off-by: Nic Ma <[email protected]> * [DLMED] skip for windows Signed-off-by: Nic Ma <[email protected]> * [DLMED] fix windows test Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
|
/black |
|
/build |
Signed-off-by: Nic Ma <[email protected]>
|
/black |
|
/build |
Signed-off-by: Nic Ma <[email protected]>
|
/black |
|
/build |
|
/build |
Signed-off-by: Nic Ma <[email protected]>
|
The config parsing code looks good to me, submitting that separately to be integrated now separate from the other concepts here would work. |
Hi @ericspod , Thanks for your review. Thanks in advance. |
|
Hi @ericspod , BTW, do you know any other solutions in other projects that parse / construct python instances from JSON / YAML config? Thanks in advance. |
These solutions are about creating new types or objects without classes from JSON. What I think we need is just a way to instantiate existing classes based on a name to find the right class and the values for constructor arguments given as JSON. Given a schema like {
"object_type" : "foo.bar.baz",
"arguments" : {
"arg1":1,
"arg2":[0,1,2]
}
}This would be interpreted as creating a new object of type |
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
386a64b to
01fdf0a
Compare
|
closing this one as the major part is now merged into dev, the others are tracked here #3482 |
Fixes #3482 .
Description
Develop the complete prototype of model package in this branch as @wyli suggested: #3518 (comment).
Then split into smaller PRs for review.
Status
Work in progress
Types of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests --disttests.make htmlcommand in thedocs/folder.