Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 26a9a810 authored by Simon Labarthe's avatar Simon Labarthe
Browse files

accessing to "identity" data

parent 62a74637
No related branches found
No related tags found
No related merge requests found
Pipeline #1098620 passed with warnings
...@@ -101,6 +101,16 @@ class Metamodel(object): ...@@ -101,6 +101,16 @@ class Metamodel(object):
if metamodel_config is not None: if metamodel_config is not None:
with open(metamodel_config, "r") as file: # Load the user parameter yml with open(metamodel_config, "r") as file: # Load the user parameter yml
self.metamodel_yml = yaml.safe_load(file) self.metamodel_yml = yaml.safe_load(file)
if (
"selected_hyperparameters" in self.metamodel_yml.keys()
and "identity" in self.metamodel_yml["selected_hyperparameters"]
):
with open(
self.metamodel_yml["selected_hyperparameters"]["identity"], "r"
) as file: # Load the user parameter yml
identity = yaml.safe_load(file)
for spec in identity:
self.metamodel_yml[spec]["identity"] = identity[spec]
else: else:
self.metamodel_yml = None self.metamodel_yml = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment