[Numpy-discussion] repr()

Todd Miller jmiller at stsci.edu
Wed Feb 4 07:14:03 CST 2004


On Wed, 2004-02-04 at 07:39, Marc Poinot wrote:
> Hi,
> I'm using repr to get a "re-usable" representation of a given array.
> When the array is too large, it looks like the repr() uses ...
> instead of printing the actual data.
> 
> Is there a way to change that, or any other way to get a textual
> representation of a numarray array ?

To turn off the array summary feature:

>>> import numarray.arrayprint as ap
>>> ap.summary_off()

To turn it back on:

>>> ap.set_summary()

To change the summary characteristics,  look at set_summary().

Todd


>


> 
> -MP- 
> -----------------------------------------------------------------------
>  Marc POINOT             Alias: marcvs        Email: poinot at onera.fr
>  ONERA -MFE/DSNA/ELSA    Tel: 01.46.73.42.84  Info: elsa-info at onera.fr
>  29, Div. Leclerc        Fax: 01.46.73.41.66  Site:     
>  92322 Chatillon FRANCE  Project: elsA        Web: http://www.onera.fr
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion
-- 
Todd Miller <jmiller at stsci.edu>





More information about the Numpy-discussion mailing list