summaryrefslogtreecommitdiff
path: root/numpy/lib/npyio.py
Commit message (Collapse)AuthorAgeFilesLines
...
* ENH: Since file handle could not be reopened (during load()) -- no need for ↵Yaroslav Halchenko2012-07-051-17/+3
| | | | "isclosed" logic
* BF: PY3 and PY2 < 2.7 compatibility fixes for prev 2 commitsYaroslav Halchenko2012-07-021-6/+10
|
* BUG: do not "own" the FID for GzipFile and file if provided to load already ↵Yaroslav Halchenko2012-07-021-4/+12
| | | | | | opened (ticket #2178) Also made all assignments of own_file go in pair with assignments to fid to make things clearer
* DOC: Change versionadded from 2.0.0 to 1.7.0 where needed.Charles Harris2012-03-041-2/+2
|
* DOC: merge wiki doc edits.Ralf Gommers2012-03-031-30/+39
|
* ENH: lib: break reference cycle in NpzFile (#2048)Pauli Virtanen2012-02-161-1/+4
| | | | | This allows these objects to be freed by refcount, rather than requiring the gc, which can be useful in some situations.
* BUG: savetxt now handles complex arrays. Closes #1573.Paul Anton Letnes2011-12-281-10/+32
|
* ENH: add context manager for NpzFile class.David Cournapeau2011-10-101-0/+13
|
* DOC: mention that NpzFile instances must be closed.David Cournapeau2011-10-101-1/+13
|
* BUG: loadtxt: There was some extra nesting for subarray dtypes (Ticket #1936)Mark Wiebe2011-08-201-5/+10
|
* ENH: Add provision for headers and footers to savetxt, fixes ticket 1236.Paul Anton Letnes2011-08-151-4/+22
| | | | | I suggest using a separate keyword argument for structured arrays. It might also be nice to be able to add a manual header.
* BUG: fix failing npyio test under py3k. Thanks to Derek Homeier. Closes #1793.Ralf Gommers2011-08-101-1/+2
|
* ENH: let genfromtxt return empty array for empty input file instead of an error.Paul Anton Letnes2011-07-311-2/+4
| | | | A warning for empty files is issued, including file name. Closes #1793.
* STY: Remove trailing whitespaceMark Wiebe2011-07-261-2/+2
|
* use np.atleast_Nd() to boost dimensions to ndminDerek Homeier2011-05-071-5/+8
|
* changed ndmin option in loadtxt to return shape (1, X.size) for single-row ↵Derek Homeier2011-05-071-1/+4
| | | | inputs
* STY: Fix up some remaining old-style exceptions.Charles Harris2011-04-051-3/+3
| | | | I think that is the end of it.
* STY: Update exception styles, trickier ones.Charles Harris2011-04-051-2/+2
|
* STY: Update exception style, easy ones.Charles Harris2011-04-051-1/+1
|
* BUG: Workaround for the fact the Python 2.4 doesn't accept 'Ub' as a fileCharles Harris2011-04-051-1/+1
| | | | | | | | | mode, but does accept 'rbU'. Note that with either of these modes Python 3 fails to split files with '\r' line endings on linux. This is either a bug in Python 3 or something that requires more extensive modifications to genfromtxt. Because genfromtxt now accepts generators it should be possible to write a generator that opens files in text mode and encodes the lines as byte streams, and this should provide a workaround.
* moved import statement in npyio.py for ease of readingPaul Anton Letnes2011-04-041-1/+1
|
* BUG: ticket #1071, fix loadtxt to handle tab delimited data with missingDerek Homeir2011-04-041-3/+4
| | | | values in the last column and add test for same.
* ENH: Let genfromtxt accept generators as text sources. Add testCharles Harris2011-04-031-19/+27
| | | | for that case.
* ENH: ticket #1616, let loadtxt accept generators in additions toCharles Harris2011-04-031-37/+34
| | | | file names and file like objects. Add test for for new functionality.
* ENH: add ndmin keyword to loadtxt. Closes #1562.Ralf Gommers2011-04-031-2/+19
| | | | Thanks to Paul Anton Letnes and Derek Homeier.
* ENH: return empty array from loadtxt for an empty file. Closes #1752.Ralf Gommers2011-04-031-1/+4
| | | | Thanks to Paul Anton Letnes and Derek Homeier.
* ENH: ticket #1458, make loadtxt(..., unpack=True) unpack structured arrayDerek Homier2011-04-021-2/+7
| | | | fields.
* BUG: ticket #1565, fix conversion of int64 and uint64 types by loadtxt.Christoph Gohlke2011-04-021-0/+4
| | | | Add some tests for these types.
* BUG: open genfromtxt file as binary; add test for filename useMatthew Brett2011-03-301-1/+1
|
* DEP: Update deprecation messages in genloadtxt with a version number.rgommers2011-03-111-12/+14
| | | | | Because the docstring was still using `skiprows` explicitly, that keyword can not yet be removed. Should be done for 2.0.
* DOC: commit some more fixes from the doc wiki.rgommers2011-03-031-1/+1
|
* BUG: correct file name in fromregex.rgommers2011-03-011-2/+2
| | | | Thanks to Mattieu Brucher for reporting.
* ENH: core: Implement PyArray_CopyInto using the new iteratorMark Wiebe2011-01-161-22/+38
| | | | | | | | This change also uses the dtype conversion code implemented for new iterator buffering, which differs slightly from the previous casting behavior. In particular, fields are matched up by name instead of position, so code depending on that behavior breaks. The loadtxt function has been fixed to not depend on this casting behavior.
* BUG: Try fix for python 2.4, use list instead of tuple.Charles Harris2010-12-021-1/+1
|
* BUG: Fix GzipFile wrapper to be <= 2.5 compatible.Stefan van der Walt2010-11-231-4/+9
|
* ENH: Remove deprecation warning from GzipFile wrapper.Stefan van der Walt2010-11-181-4/+6
|
* BUG: GzipFile wrapper objects are not garbage collected (closes ticket #1356).Fabian Pedregosa2010-11-181-26/+24
| | | | | | | | | The underlying problem is that classes monkey-patched via new.instancemethod will only free memory correctly if they do _not_ implement the __del__ method, which is not the case for gzip.GzipFile. My proposed solution is to inherit from gzip.GzipFile and override relevant methods instead of monkey-patching.
* genfromtxt: Taking more adequate testing values when updating converters: ↵pierregm2010-11-131-0/+6
| | | | bug #1665
* Fixing genfromtxt: names w/ usecols (bug #1636)pierregm2010-11-131-2/+3
|
* ENH: lib: allow zip64 extensions in .npz files; allows > 2GBPauli Virtanen2010-10-101-4/+7
|
* ENH: lib: add savez_compressed function for saving compressed archivesPauli Virtanen2010-10-101-5/+40
|
* BUG: io: close file handles immediately after use, where possible (#1517)Pauli Virtanen2010-10-101-72/+125
|
* * fixed the behavior of {{{skip_footer}}} in {{{genfromtxt}}} when some ↵pierregm2010-09-131-15/+23
| | | | invalid lines are present (bug #1593)
* Merge branch 'poly'Charles Harris2010-08-151-1/+1
| | | | | | Conflicts: numpy/polynomial/chebyshev.py numpy/polynomial/polynomial.py
* DOC: wiki merge, npyio, format and function_basergommers2010-07-311-15/+18
|
* DOC: merge wiki edits for module npyio.rgommers2010-06-021-8/+14
|
* * add a `replace_space` option to NameValidatorpierregm2010-05-161-3/+12
| | | | * Force a file to be opened in 'U' mode (bug #1473)
* BUG/3K: lib: make savetxt work with filenamesPauli Virtanen2010-05-131-4/+3
|
* BUG: lib: make loadtxt work on Py3 when fh returns unicode (fixes #1479)Pauli Virtanen2010-05-081-1/+1
|
* BUG: The builtin file function goes away in python 3k, use open instead.Charles Harris2010-05-031-1/+1
|