Done in r4748. I added the kwarg "return_opened" to cbook.to_filehandle().
John Hunter wrote:
> On Dec 16, 2007 1:33 PM, Andrew Straw <[EMAIL PROTECTED]> wrote:
>> OK, I added unit/mlab_unit.py to svn. This checks that double precision
>> floats can round-trip through rec2csv and csv2rec. To pass
On Dec 16, 2007 1:33 PM, Andrew Straw <[EMAIL PROTECTED]> wrote:
> OK, I added unit/mlab_unit.py to svn. This checks that double precision
> floats can round-trip through rec2csv and csv2rec. To pass requires not
> only svn matplotlib (due to John's change), but also svn numpy (to be
> included wit
OK, I added unit/mlab_unit.py to svn. This checks that double precision
floats can round-trip through rec2csv and csv2rec. To pass requires not
only svn matplotlib (due to John's change), but also svn numpy (to be
included with 1.0.5).
Also, it doesn't seem to me that rec2csv should close a fil
OK, I created a test for numpy to isolate an issue:
http://scipy.org/scipy/numpy/ticket/629
I think setting MPL's behavior to repr() is good, though. John, I see
you did that r4745 -- thanks.
-Andrew
Fernando Perez wrote:
> On Dec 15, 2007 2:52 PM, Andrew Straw <[EMAIL PROTECTED]> wrote:
>> Ha
On Dec 15, 2007 2:52 PM, Andrew Straw <[EMAIL PROTECTED]> wrote:
> Hang on a minute, it looks like numpy.float64.__repr__() itself isn't
> reproducing all significant digits... I'm writing up a test now and will
> move this to the numpy list. I'm not sure how much is MPL and how much
> is numpy at
Hang on a minute, it looks like numpy.float64.__repr__() itself isn't
reproducing all significant digits... I'm writing up a test now and will
move this to the numpy list. I'm not sure how much is MPL and how much
is numpy at this point.
Trying to make a roundtrip through a .csv file not loose
On Dec 15, 2007 3:13 PM, Andrew Straw <[EMAIL PROTECTED]> wrote:
> mlab.defaultformatd sets the default float formatter for rec2csv() to be
> something that doesn't keep the full representation of a floating point
> number. Obviously, I can pass in my own formatd argument to rec2csv(),
> but I wond
On Dec 15, 2007 2:13 PM, Andrew Straw <[EMAIL PROTECTED]> wrote:
> Hi,
>
> mlab.defaultformatd sets the default float formatter for rec2csv() to be
> something that doesn't keep the full representation of a floating point
> number. Obviously, I can pass in my own formatd argument to rec2csv(),
> bu
Hi,
mlab.defaultformatd sets the default float formatter for rec2csv() to be
something that doesn't keep the full representation of a floating point
number. Obviously, I can pass in my own formatd argument to rec2csv(),
but I wonder if there's any reason why defaultformatd shouldn't use
repr()