diff options
author | Jay Bourque <jay.bourque@continuum.io> | 2013-04-24 21:42:15 -0500 |
---|---|---|
committer | Jay Bourque <jay.bourque@continuum.io> | 2013-04-24 21:42:15 -0500 |
commit | f231558bab5be194f3a7e57ba4c9738056d3a04d (patch) | |
tree | 685bd451992330e7d6b9ba8acf8094be0a87c2cf /numpy/core/defchararray.py | |
parent | d0d8d1c1deb28fb2b43c7180cd0e293608b6964e (diff) | |
download | numpy-f231558bab5be194f3a7e57ba4c9738056d3a04d.tar.gz |
Fix for astype('S') string truncate issue
Calling astype('S') for an array of string objects results in a string array where dtype='S64', even if the original string objects are longer than 64 characters. Add call to GetParamsFromObject() to determine maximum string object length, and use that as string dtype size.
Diffstat (limited to 'numpy/core/defchararray.py')
0 files changed, 0 insertions, 0 deletions