diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2019-08-16 16:50:30 -0700 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2019-08-19 17:24:54 -0500 |
commit | 5fbce6d395a6bfd1ec25022dcee4eef8c5bbad17 (patch) | |
tree | 146c93655ae2d59e4520b9f9f46e2a6831e80709 /numpy/lib/tests/test_recfunctions.py | |
parent | f07a38da97a6a36eb12b203f6c1ffa4bf2b2cb87 (diff) | |
download | numpy-5fbce6d395a6bfd1ec25022dcee4eef8c5bbad17.tar.gz |
BUG: Make np.record work on structured fields with no fields
This replaces some more uses of `bool(dt.fields)` and `bool(dt.names)` with `dt.names is not None`.
`dt.fields is not None` would have worked too, but checking `.names` is more prevalent elsewhere
Diffstat (limited to 'numpy/lib/tests/test_recfunctions.py')
0 files changed, 0 insertions, 0 deletions