[NumPy-Tickets] [NumPy] #1888: Multi-dimensionial array support for savetxt / loadtxt

NumPy Trac numpy-tickets@scipy....
Mon Jul 4 11:01:10 CDT 2011


#1888: Multi-dimensionial array support for savetxt / loadtxt
--------------------------+-------------------------------------------------
 Reporter:  NeilenMarais  |       Owner:  somebody
     Type:  enhancement   |      Status:  new     
 Priority:  normal        |   Milestone:  2.0.0   
Component:  numpy.lib     |     Version:  1.6.0   
 Keywords:  npyio         |  
--------------------------+-------------------------------------------------
Changes (by derek):

  * keywords:  => npyio
  * component:  Other => numpy.lib
  * milestone:  Unscheduled => 2.0.0


Comment:

 To some degree this has already been addressed in #1107. I am in favour of
 adopting the gnuplot convention of double blank lines between blocks, as
 there seems to be some demand for reading in files of this style. I don't
 feel quite comfortable with the way proposed in the patch there to return
 a regular ndarray(N,M) plus an index list to the blocks though.
 As a general comment, basic support for such functionality would indeed be
 relatively easy to implement, but there are a few design decisions
 involved (like the above, or should we allow to read data blocks of
 different sizes or only true 3-dimensional arrays, meaning to raise an
 error if not all of the blocks have equal length...); and it touches a
 number of features that have just been cleared up in the code - e.g. the
 ndmin keyword and the behaviour of the unpack option for regular vs.
 record arrays. Not sure of the latter can be consistently defined for
 arbitrary dimensions.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1888#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list