diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2019-08-22 09:25:18 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-22 09:25:18 -0600 |
commit | cd4cda8c0faef8d97e18629dbb8ea8a2c4685451 (patch) | |
tree | cece2eeb59ff5ff0355f17128fa89735cf18ce4e /numpy/ma | |
parent | 3ca0eb1136102ff01bcc171f53c106326fa4445b (diff) | |
parent | 0f5e376d3eb6118b783cdd3ecd27722c2d1934ba (diff) | |
download | numpy-cd4cda8c0faef8d97e18629dbb8ea8a2c4685451.tar.gz |
Merge pull request #14290 from eric-wieser/fix-if-fields
BUG: Fix misuse of .names and .fields in various places
Diffstat (limited to 'numpy/ma')
-rw-r--r-- | numpy/ma/mrecords.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/ma/mrecords.py b/numpy/ma/mrecords.py index 931a7e8b9..826fb0f64 100644 --- a/numpy/ma/mrecords.py +++ b/numpy/ma/mrecords.py @@ -208,7 +208,7 @@ class MaskedRecords(MaskedArray, object): _localdict = ndarray.__getattribute__(self, '__dict__') _data = ndarray.view(self, _localdict['_baseclass']) obj = _data.getfield(*res) - if obj.dtype.fields: + if obj.dtype.names is not None: raise NotImplementedError("MaskedRecords is currently limited to" "simple records.") # Get some special attributes |