Skip to content

Commit

Permalink
Merge branch 'scc-performance-2' into scc-perf-idenvars
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbybp committed Mar 7, 2024
2 parents aafa32a + 8b66e10 commit af6afc3
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions pyomo/util/subsystems.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,13 @@ def exitNode(self, node, data):
def finalizeResult(self, result):
return self._functions

def enterNode(self, node):
pass
#def enterNode(self, node):
# pass

def acceptChildResult(self, node, data, child_result, child_idx):
pass

def acceptChildResult(self, node, data, child_result, child_idx):
if child_result.__class__ in native_types:
return False, None
return child_result.is_expression_type(), None
#def acceptChildResult(self, node, data, child_result, child_idx):
# if child_result.__class__ in native_types:
# return False, None
# return child_result.is_expression_type(), None


def identify_external_functions(expr):
Expand Down

0 comments on commit af6afc3

Please sign in to comment.