Mentions légales du service

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

debug check identity

parent 1c85e2ce
Branches
No related tags found
No related merge requests found
Pipeline #1121397 passed with warnings
......@@ -143,11 +143,14 @@ class Metamodel(object):
]
self.C_learn = self.C_learn[col_subset]
self.constraint_ID_in_Y = np.array([self.exp.y_id(i) for i in col_subset])
if self.metamodel_yml is not None:
if (self.metamodel_yml is not None
and "selected_hyperparameters" in self.metamodel_yml.keys()
and "identity" in self.metamodel_yml["selected_hyperparameters"]
):
self.constraint_Id_in_Y_identity = [
self.exp.y_id(comp)
for comp in self.metamodel_yml[self.bact]["identity"]
]
]
else:
self.constraint_ID_in_Y = np.arange(self.C_learn.shape[1])
self.substrate_metabolites = list(self.C_learn.columns)
......@@ -216,7 +219,10 @@ class Metamodel(object):
]
self.Flux_learn = self.Flux_learn[col_subset]
self.Flux_ID_in_Y = np.array([self.exp.y_id(i) for i in col_subset])
if self.metamodel_yml is not None:
if (self.metamodel_yml is not None
and "selected_hyperparameters" in self.metamodel_yml.keys()
and "identity" in self.metamodel_yml["selected_hyperparameters"]
):
self.Flux_Id_in_output_identity = [
col_subset.index(comp)
for comp in self.metamodel_yml[self.bact]["identity"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment