Skip to content
Snippets Groups Projects
Commit 2807c8d7 authored by Maxim Gonchar's avatar Maxim Gonchar
Browse files

Squashed 'dagflow/' changes from 9c27501..200a930

200a930 feat: load_variables, enable loading the files
REVERT: 9c27501 feat: load_variables, enable loading the files

git-subtree-dir: dagflow
git-subtree-split: 200a930a22d6607156d30b17418a43afde95814f
parent 8d40b5c7
No related branches found
No related tags found
No related merge requests found
......@@ -66,13 +66,16 @@ IsVarsCfgDict = Schema({
'variables': IsValuesDict,
'labels': IsLabelsDict,
'format': IsFormat
})
},
error = 'Invalid parameters configuration: {}'
)
IsProperVarsCfgDict = And(IsVarsCfgDict, ParsCfgHasProperFormat())
IsLoadableDict = And(
{'load': str},
Use(LoadFileWithExt(yaml=LoadYaml, key='load'))
Use(LoadFileWithExt(yaml=LoadYaml, key='load'), error='Failed to load {}'),
IsProperVarsCfgDict
)
IsProperVarsCfg = Or(IsProperVarsCfgDict, And(IsLoadableDict, IsProperVarsCfgDict))
IsProperVarsCfg = Or(IsProperVarsCfgDict, IsLoadableDict)
def process_var_fixed1(vcfg, _, __):
return {'central': vcfg, 'value': vcfg, 'sigma': None}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment