From f11bbbef0c72e9141a9fbe6d3b9bf1d3154f104c Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Wed, 14 Aug 2019 11:57:15 +0200 Subject: [PATCH] Bugfix: TypedSymbol.is_negative should not be implemented in terms of super().is_positive This can lead to surprising simplifications --- pystencils/data_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pystencils/data_types.py b/pystencils/data_types.py index 6bae2da..532a933 100644 --- a/pystencils/data_types.py +++ b/pystencils/data_types.py @@ -141,7 +141,7 @@ class TypedSymbol(sp.Symbol): if np.issubdtype(self.dtype.numpy_dtype, np.unsignedinteger): return False - return super().is_positive + return super().is_negative @property def is_nonnegative(self): -- GitLab