Skip to content

Commit 694406b

Browse files
scymtymglichtner
authored andcommitted
fix: use filter_symbols in ExecutionGraph.from_criterion_combination
1 parent 9c1b1cb commit 694406b

File tree

1 file changed

+3
-1
lines changed
  • execution_engine/execution_graph

1 file changed

+3
-1
lines changed

execution_engine/execution_graph/graph.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@ def from_criterion_combination(
3838
"""
3939
Create a graph from a population and intervention criterion combination.
4040
"""
41+
from execution_engine.omop.cohort import PopulationInterventionPair
4142

4243
p = cls.combination_to_expression(population, CohortCategory.POPULATION)
4344
i = cls.combination_to_expression(intervention, CohortCategory.INTERVENTION)
45+
i_filtered = PopulationInterventionPair.filter_symbols(i, p)
4446

4547
pi = logic.LeftDependentToggle(
4648
p,
47-
i,
49+
i_filtered,
4850
category=CohortCategory.POPULATION_INTERVENTION,
4951
)
5052

0 commit comments

Comments
 (0)