Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable doesn't implement __invert__ #170

Closed
guyer opened this issue Sep 19, 2014 · 1 comment
Closed

Variable doesn't implement __invert__ #170

guyer opened this issue Sep 19, 2014 · 1 comment

Comments

@guyer
Copy link
Member

guyer commented Sep 19, 2014

>>> a = Variable(False)
>>> b = ~a
Traceback (most recent call last):
  ...
TypeError: bad operand type for unary ~: 'Variable'

We've never noticed this when masking out cells because getCellCenters() and getFaceCenters() return NumPy arrays, not MeshVariables

Imported from trac ticket #185, created by guyer on 04-25-2009 at 08:07, last modified: 04-25-2009 at 08:42

@guyer
Copy link
Member Author

guyer commented Sep 19, 2014

Fixed in r3040

Trac comment by guyer on 04-25-2009 at 08:42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants