[Numpy-svn] [numpy/numpy] 3d75c3: BUG: fix _array2string for strustured array (issue...
GitHub
noreply at github.com
Tue Oct 18 10:19:33 EDT 2016
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: 3d75c3f5165d958ff109a4f877aeb18d77ce279f
https://github.com/numpy/numpy/commit/3d75c3f5165d958ff109a4f877aeb18d77ce279f
Author: Shota Kawabuchi <shota.kawabuchi+Github at gmail.com>
Date: 2016-10-18 (Tue, 18 Oct 2016)
Changed paths:
M numpy/core/arrayprint.py
M numpy/core/tests/test_arrayprint.py
Log Message:
-----------
BUG: fix _array2string for strustured array (issue #5692)
The cause of issue #5692 is that `_array2string` (in
numpy/core/arrayprint.py) doesn’t have format function for structured
arrays and it uses general purpose format function to format array
elements of structured arrays.
This commit adds `StructureFormat` class to format structured array
elements. `_get_format_function` instantiates `StructureFormat` by
instantiating format function classes for each field of structure
recursively and merge them.
Closes #5692.
Commit: 7c5163ad798ff30d9cb6f49dee8645e89d293c10
https://github.com/numpy/numpy/commit/7c5163ad798ff30d9cb6f49dee8645e89d293c10
Author: Charles Harris <charlesr.harris at gmail.com>
Date: 2016-10-18 (Tue, 18 Oct 2016)
Changed paths:
M numpy/core/arrayprint.py
M numpy/core/tests/test_arrayprint.py
Log Message:
-----------
Merge pull request #8160 from skwbc/issue#5692
BUG: fix _array2string for structured array (issue #5692)
Compare: https://github.com/numpy/numpy/compare/0a02bb6f62a5...7c5163ad798f
More information about the Numpy-svn
mailing list