summaryrefslogtreecommitdiff
path: root/numpy/ma/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/ma/core.py')
-rw-r--r--numpy/ma/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py
index 4466dc0af..73f39fce1 100644
--- a/numpy/ma/core.py
+++ b/numpy/ma/core.py
@@ -3264,7 +3264,7 @@ class MaskedArray(ndarray):
return
# Get the _data part of the new value
- dval = value
+ dval = getattr(value, '_data', value)
# Get the _mask part of the new value
mval = getattr(value, '_mask', nomask)
if nbfields and mval is nomask: