summaryrefslogtreecommitdiff
path: root/numpy/lib/io.py
Commit message (Collapse)AuthorAgeFilesLines
* Rename numpy/lib/io.py to numpy/lib/npyio.py. The py3tool can probably beCharles Harris2010-03-241-1603/+0
| | | | cleaned up a bit more with this change, but that is for later.
* WHT: Whitespace removal.Charles Harris2010-02-211-2/+1
|
* 3K: lib: missing_values in genfromtxt is never a basestring on Py3Pauli Virtanen2010-02-211-1/+1
|
* BUG: lib: ensure 'bytes' is imported in io.pyPauli Virtanen2010-02-201-1/+1
|
* 3K: lib: more str vs bytes issues in the lib/io loadtxt, savetxt and genfromtxtPauli Virtanen2010-02-201-16/+44
|
* 3K: lib: fix savetxtPauli Virtanen2010-02-201-9/+23
| | | | | | This will make savetxt open files in the 'wb' mode on Python 3. To allow using any sort of newlines (which are different e.g. on Windows), add a new 'newline' keyword.
* 3K: lib: fix some bytes vs. str issues in _iotools.py and io.py -- mainly ↵Pauli Virtanen2010-02-201-13/+15
| | | | genfromtxt
* 3K: lib: bytes vs. str fixes in lib.format and lib.ioPauli Virtanen2010-02-201-1/+3
|
* more docstring updates from pydoc website (thanks to everyone who contributed!)Jarrod Millman2010-02-171-24/+42
|
* np.genfromtxt: make sure we're using the actual names when double-checking ↵pierregm2010-01-201-1/+2
| | | | for missing values
* fixed a whole bunch of doctestsPaul Ivanov2009-12-281-8/+9
|
* 3K: lib: use open instead of filePauli Virtanen2009-12-061-1/+1
|
* docs : renamed basic.io.rst and basic.io.genfromtxt to basics.io and ↵pierregm2009-11-071-22/+12
| | | | | | basics.io.genfromtxt io.genfromtxt : update the doc
* * io.genfromtxt : make sure that `names` is a list and not a tuplepierregm2009-10-191-12/+14
|
* * io.genfromtxtpierregm2009-10-161-2/+2
| | | | - fixed an issue when an explicit dtype has the right size, but the names don't
* * io.genfromtxtpierregm2009-10-161-4/+7
| | | | | - `usecols` can now be a comma-separated string - make sure that an explicit name list shorter than an explicit dtype is properly expanded
* * _iotools.StringConverterpierregm2009-10-141-12/+36
| | | | | | | | | | - prevents a `default` of 0 to be overwritten during initialization - allows the `missing_values` to be a comma-separated string * io.genfromtxt - `usecols` can now be a single integer - for `usecols` and `names` to list (for compatibility w/ Python 2.5) - negative values in `usecols` are properly transformed to positive integers - fixed `usecols` with named columns
* * io.genfromtxtpierregm2009-10-121-8/+26
| | | | - add `skip_footer` to remove some last lines
* * _iotools.StringConverterpierregm2009-10-121-54/+126
| | | | | | | | | | - prevents an explicit default to be overwritten during upgrade * io.genfromtxt - deprecate `skiprows` for `skip_header` - deprecate `missing` for `missing_values` - `missing_values` can now be a sequence - add support for `filling_values` * fixed ticket #1257
* * ma.masked_equal : force the `fill_value` of the output to `value` (ticket ↵pierregm2009-10-091-71/+40
| | | | | | | | | | | | | #1253) * lib._iotools: - NameValidator : add the `nbfields` optional argument to validate - add easy_dtype * lib.io.genfromtxt : - add the `autostrip` optional argument (ticket #1238) - use `invalid_raise=True` as default - use the easy_dtype mechanism (ticket #1252)
* * _iotools.StringConverterpierregm2009-10-061-10/+30
| | | | | | | - use '1' instead of '0' to test the update - add `iterupgrade` to upgrade from an iterator * io.genfromtxt (bug #1212) - use `iterupgrade` to upgrade the converters, and reprocess if there's a problem to catch the offending line
* * Add warnings to genfromtxt describing inconsistencies in the number of ↵pierregm2009-10-051-43/+85
| | | | columns (bug #1212)
* Docstring update: libPauli Virtanen2009-10-021-83/+256
|
* Add example to savez.Stefan van der Walt2009-07-041-0/+6
|
* More complete dictionary interface to NpzFile [patch by David Warde-Farley]Stefan van der Walt2009-07-041-0/+21
|
* Merge from doc wikiPauli Virtanen2009-06-191-50/+58
|
* lib._iotools : pierregm2009-05-281-13/+17
| | | | | | | | | | | * add the flatten_base keyword to flatten_dtype lib.io.genfromtxt * Use flatten_dtype(...,flatten_base=True) to deal with fields w/ shape lib.io.loadtxt * fixed for the case when one of the fields is object
* loadtxt: allow shaped dtypes.Stefan van der Walt2009-05-271-1/+4
|
* Fixed #852: avoid filename clashes in savez, by using a secure temporary ↵Pauli Virtanen2009-03-301-16/+19
| | | | file name
* Merge from the doc wikiPauli Virtanen2009-03-241-9/+34
|
* Close file handle in loadtxt if we opened the file ourselves.David Cournapeau2009-03-091-45/+51
|
* Correctly handle gzip filenames in loadtxt.Stefan van der Walt2009-03-021-0/+3
|
* Add GzipFile wrapper to support the "whence" keyword in GzipFile.seek.Stefan van der Walt2009-02-221-1/+36
|
* * genfromtxt : fixed case when using explicit converters and explicit dtype.pierregm2009-02-141-1/+11
|
* Avoid re-creating the sequence when there is only one field in the regular ↵Travis Oliphant2009-02-061-4/+9
| | | | expression.
* * genfromtxt : Fixed when a dtype involving objects is explicitly given. ↵pierregm2009-02-051-3/+15
| | | | | | Raise a NotImplementedError if the dtype is nested. * _iotools : make sure StringConverter gets properly initiated when a function returning a np.object is used as input parameter.
* * _iotools.StringConverter :pierregm2009-01-261-7/+10
| | | | | | | | - add a _checked attribute to indicate whether the converter has been upgraded or not. - switched the default value for bool to False * io.genfromtxt: - fixed for the case where a whole column is masked: switch to bool or the common dtype (if needed)
* * genfromtxt : if names is True, accept a line starting with a comment ↵pierregm2009-01-221-1/+8
| | | | character as header.
* * lib : introduced _iotoolspierregm2009-01-191-6/+470
| | | | * lib.io : introduced genfromtxt, ndfromtxt, mafromtxt, recfromtxt, recfromcsv.
* Add bz2 support to loadtxt [patch by Ryan May].Stefan van der Walt2008-11-291-2/+5
|
* Identify file object using 'readline', rather than 'seek'.Stefan van der Walt2008-11-291-1/+1
|
* Add memory map support to `load` [patch by Gael Varoquaux]. Closes #954.Stefan van der Walt2008-11-291-14/+29
|
* Import documentation from doc wiki (part 2, work-in-progress docstrings, but ↵Pauli Virtanen2008-10-281-14/+25
| | | | they are still an improvement)
* Ignore unused converters in `loadtxt`.Stefan van der Walt2008-09-221-1/+5
|
* FIX: Loadtxt raises on empty input (closes #908).Stefan van der Walt2008-09-091-4/+6
|
* Applied patch from R. May fixing ticket #905 (loadtxt). Fixed other bug ↵dhuard2008-09-051-2/+5
| | | | occurring when both usecols and converters are provided. Added related regression tests.
* Merge from documentation editor.Stefan van der Walt2008-08-051-87/+138
|
* Fix string type comparisons.Stefan van der Walt2008-07-301-4/+4
|
* Fix doctest command continuation line.Alan McIntyre2008-07-231-1/+1
|
* Clean up loadtxt. Fix Python 2.3 compatibility.Stefan van der Walt2008-07-221-9/+10
|