Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonas Plewinski
pystencils
Commits
f11bbbef
Commit
f11bbbef
authored
Aug 14, 2019
by
Stephan Seitz
Browse files
Bugfix: TypedSymbol.is_negative should not be implemented in terms of
super().is_positive This can lead to surprising simplifications
parent
63a9140d
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/data_types.py
View file @
f11bbbef
...
...
@@ -141,7 +141,7 @@ class TypedSymbol(sp.Symbol):
if
np
.
issubdtype
(
self
.
dtype
.
numpy_dtype
,
np
.
unsignedinteger
):
return
False
return
super
().
is_
posi
tive
return
super
().
is_
nega
tive
@
property
def
is_nonnegative
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment