summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_io.py
Commit message (Collapse)AuthorAgeFilesLines
...
* BUG: open genfromtxt file as binary; add test for filename useMatthew Brett2011-03-301-1/+20
|
* ENH: core: Add new GetArrayParamsFromObject API function (fixes #1081)Mark Wiebe2011-02-061-1/+1
| | | | | | | | | This function allows code to query an object's "innate" type and shape, without actually creating a NumPy array out of it. PyArray_FromAny has been changed to use this function, as an assurance that its implementation is correct. This also fixes the known failure in test_regression.py.
* ENH: core: Implement PyArray_CopyInto using the new iteratorMark Wiebe2011-01-161-1/+9
| | | | | | | | 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.
* genfromtxt: Taking more adequate testing values when updating converters: ↵pierregm2010-11-131-0/+9
| | | | bug #1665
* Fix bug #1656pierregm2010-11-131-0/+7
|
* Fixing genfromtxt: names w/ usecols (bug #1636)pierregm2010-11-131-0/+21
|
* * fixed the behavior of {{{skip_footer}}} in {{{genfromtxt}}} when some ↵pierregm2010-09-131-1/+24
| | | | invalid lines are present (bug #1593)
* 3K: lib/tests: fix test_io.RoundtripTest on Python3 + WindowsPauli Virtanen2010-07-171-1/+2
|
* * add a `replace_space` option to NameValidatorpierregm2010-05-161-0/+24
| | | | * Force a file to be opened in 'U' mode (bug #1473)
* BUG/3K: lib: make savetxt work with filenamesPauli Virtanen2010-05-131-0/+11
|
* BUG: loadtxt should handle universal newlines.Stefan van der Walt2010-05-021-0/+10
|
* 3K: lib: fix bytes vs str issues in testsPauli Virtanen2010-02-211-7/+8
|
* DEP: Fix deprecation warnings in Python 3.1. The warnings come from the unittestCharles Harris2010-02-201-3/+3
| | | | | | | | | module. The fix should be good for Python >= 2.4 and used the following sed script: s/\<failUnless\>/assertTrue/g s/\<failIf\>/assertFalse/g s/\<failUnlessEqual\>/assertEqual/g s/\<failUnlessRaises\>/assertRaises/g
* 3K: lib: more str vs bytes issues in the lib/io loadtxt, savetxt and genfromtxtPauli Virtanen2010-02-201-34/+37
|
* 3K: lib: fix some bytes vs. str issues in _iotools.py and io.py -- mainly ↵Pauli Virtanen2010-02-201-12/+14
| | | | genfromtxt
* 3K: lib: use BytesIO in test_ioPauli Virtanen2010-02-201-109/+115
|
* * _iotools.LineSplitter : prevent the first and/or last empty tab-separated ↵pierregm2009-12-081-46/+57
| | | | columns to be dropped
* TST: use assert_warns to check for warnings (and to avoid cluttering ↵David Cournapeau2009-11-231-4/+17
| | | | non-verbose test output).
* * io.genfromtxtpierregm2009-10-161-13/+17
| | | | - fixed an issue when an explicit dtype has the right size, but the names don't
* * io.genfromtxtpierregm2009-10-161-0/+16
| | | | | - `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-2/+38
| | | | | | | | | | - 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-2/+14
| | | | - add `skip_footer` to remove some last lines
* * _iotools.StringConverterpierregm2009-10-121-13/+49
| | | | | | | | | | - 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-10/+71
| | | | | | | | | | | | | #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-0/+25
| | | | | | | - 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-0/+38
| | | | columns (bug #1212)
* Add tests for dictionary interface to NpzFile.Stefan van der Walt2009-07-041-0/+26
|
* lib._iotools : pierregm2009-05-281-0/+29
| | | | | | | | | | | * 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-0/+9
|
* Fixed #852: avoid filename clashes in savez, by using a secure temporary ↵Pauli Virtanen2009-03-301-0/+27
| | | | file name
* Fix import issue.David Cournapeau2009-03-091-1/+1
|
* Remove dead code.David Cournapeau2009-03-091-1/+0
|
* Do not hardcode string for savetxt testing, as the exact representation ↵David Cournapeau2009-03-091-5/+6
| | | | depends on the platform.
* BUG: Rewrite test_gzip_loadtxt to avoid NamedTemporaryFile which is ↵David Cournapeau2009-03-091-9/+30
| | | | unusable with windows IO semantics + add another test for compressed string argument to loadtxt.
* Correctly handle gzip filenames in loadtxt.Stefan van der Walt2009-03-021-0/+8
|
* Add test for Gzip loader.Stefan van der Walt2009-02-221-0/+14
|
* Whitespace cleanup.Stefan van der Walt2009-02-221-4/+3
|
* Fix tests using strptime to be Python 2.4 compatible.Stefan van der Walt2009-02-191-6/+13
|
* Tag known failure on win32.David Cournapeau2009-02-191-0/+2
|
* * genfromtxt : fixed case when using explicit converters and explicit dtype.pierregm2009-02-141-2/+11
|
* Removed an unneccessary return statement in a unit test.Travis Oliphant2009-02-061-1/+0
|
* * genfromtxt : Fixed when a dtype involving objects is explicitly given. ↵pierregm2009-02-051-0/+29
| | | | | | 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.
* * Make sure that StringConverter.update sets the type to object if it can't ↵pierregm2009-02-031-0/+11
| | | | define it.
* * _iotools.StringConverter :pierregm2009-01-261-0/+17
| | | | | | | | - 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/+25
| | | | character as header.
* * lib : introduced _iotoolspierregm2009-01-191-1/+357
| | | | * lib.io : introduced genfromtxt, ndfromtxt, mafromtxt, recfromtxt, recfromcsv.
* Use new-style classes with multiple-inheritance to address bug in IronPython.Stefan van der Walt2009-01-061-1/+1
|
* BUG (#827): close temp file before reopning them on windows, and make sure ↵David Cournapeau2008-12-271-1/+15
| | | | they are not automatically deleted on close either (2.6and higher specific).
* Reformat spacing in io tests.Stefan van der Walt2008-11-291-33/+37
|
* Add test for load's mmap_mode.Stefan van der Walt2008-11-291-26/+61
|