Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
C.A.P. Linssen committed Aug 10, 2023
1 parent b4ae6ed commit cd25853
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pynestml/utils/ast_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,13 +1316,10 @@ def is_delta_kernel(cls, kernel: ASTKernel) -> bool:
rhs_is_delta_kernel = type(expr) is ASTSimpleExpression \
and expr.is_function_call() \
and expr.get_function_call().get_scope().resolve_to_symbol(expr.get_function_call().get_name(), SymbolKind.FUNCTION).equals(PredefinedFunctions.name2function["delta"])
expr.get_function_call().get_name(), SymbolKind.FUNCTION).equals(PredefinedFunctions.name2function["delta"])
rhs_is_multiplied_delta_kernel = type(expr) is ASTExpression \
and type(expr.get_rhs()) is ASTSimpleExpression \
and expr.get_rhs().is_function_call() \
and expr.get_rhs().get_function_call().get_scope().resolve_to_symbol(expr.get_rhs().get_function_call().get_name(), SymbolKind.FUNCTION).equals(PredefinedFunctions.name2function["delta"])
expr.get_rhs().get_function_call().get_name(), SymbolKind.FUNCTION).equals(PredefinedFunctions.name2function[
"delta"])
return rhs_is_delta_kernel or rhs_is_multiplied_delta_kernel

@classmethod
Expand Down

0 comments on commit cd25853

Please sign in to comment.