Skip to content

Commit 4bc9153

Browse files
committed
bug fix in map loading
1 parent c7f2dfa commit 4bc9153

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cobradb/map_loading.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def load_the_map(session, model_id, map_name, map_json):
8888
mat_db = (session
8989
.query(EscherMapMatrix)
9090
.join(ModelReaction, ModelReaction.id == EscherMapMatrix.ome_id)
91+
.filter(EscherMapMatrix.type == 'model_reaction')
9192
.join(Reaction)
9293
.filter(EscherMapMatrix.escher_map_id == escher_map_db.id)
9394
.filter(Reaction.bigg_id == map_reaction_bigg_id)
@@ -133,6 +134,7 @@ def load_the_map(session, model_id, map_name, map_json):
133134
.query(EscherMapMatrix)
134135
.join(ModelCompartmentalizedComponent,
135136
ModelCompartmentalizedComponent.id == EscherMapMatrix.ome_id)
137+
.filter(EscherMapMatrix.type == 'model_compartmentalized_component')
136138
.join(CompartmentalizedComponent,
137139
CompartmentalizedComponent.id == ModelCompartmentalizedComponent.compartmentalized_component_id)
138140
.join(Component,

0 commit comments

Comments
 (0)