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

numpy 1.5.1 and masked arrays #255

Closed
wd15 opened this issue Sep 19, 2014 · 2 comments
Closed

numpy 1.5.1 and masked arrays #255

wd15 opened this issue Sep 19, 2014 · 2 comments

Comments

@wd15
Copy link
Contributor

wd15 commented Sep 19, 2014

This code

from fipy import *
import numpy
from numpy import ma
m = Grid1D(nx=3)
print type(ma.arange(4) * FaceVariable(mesh=m))
print type(FaceVariable(mesh=m) * ma.arange(4))

returns

<class 'numpy.ma.core.MaskedArray'>
<class 'fipy.variables.binaryOperatorVariable.binOp'>

with numpy 1.5.1. Yikes!

Imported from trac ticket #351, created by wd15 on 06-03-2011 at 17:17, last modified: 01-30-2013 at 13:38

@wd15
Copy link
Contributor Author

wd15 commented Sep 19, 2014

Masked array is not using the array priority functionality in the same way as numpy (numpy works correctly). Look at this again with numpy 2.0 as ma has been overhauled.

Trac comment by wd15 on 09-19-2011 at 15:46

@guyer
Copy link
Member

guyer commented Mar 28, 2018

Works in numpy 1.10.4

@guyer guyer closed this as completed Mar 28, 2018
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

3 participants