From 15ade13694a2ea531666d1f2868defca04b80d84 Mon Sep 17 00:00:00 2001 From: Oscar Benjamin Date: Mon, 22 Aug 2022 20:00:14 +0100 Subject: [PATCH] fix(aesara): don't use deprecated functions --- sympy/printing/aesaracode.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sympy/printing/aesaracode.py b/sympy/printing/aesaracode.py index 8ac029d892e9..6c4049b27ad8 100644 --- a/sympy/printing/aesaracode.py +++ b/sympy/printing/aesaracode.py @@ -19,7 +19,7 @@ mapping = { sympy.Add: aet.add, sympy.Mul: aet.mul, - sympy.Abs: aet.abs_, + sympy.Abs: aet.abs, sympy.sign: aet.sgn, sympy.ceiling: aet.ceil, sympy.floor: aet.floor, @@ -51,10 +51,10 @@ sympy.StrictLessThan: aet.lt, sympy.LessThan: aet.le, sympy.GreaterThan: aet.ge, - sympy.And: aet.and_, # bitwise - sympy.Or: aet.or_, # bitwise + sympy.And: aet.bitwise_and, # bitwise + sympy.Or: aet.bitwise_or, # bitwise sympy.Not: aet.invert, # bitwise - sympy.Xor: aet.xor, # bitwise + sympy.Xor: aet.bitwise_xor, # bitwise sympy.Max: aet.maximum, # Sympy accept >2 inputs, Aesara only 2 sympy.Min: aet.minimum, # Sympy accept >2 inputs, Aesara only 2 sympy.conjugate: aet.conj,