Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | BUG: open genfromtxt file as binary; add test for filename use | Matthew Brett | 2011-03-30 | 1 | -1/+20 | |
| | ||||||
* | ENH: core: Add new GetArrayParamsFromObject API function (fixes #1081) | Mark Wiebe | 2011-02-06 | 1 | -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 iterator | Mark Wiebe | 2011-01-16 | 1 | -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: ↵ | pierregm | 2010-11-13 | 1 | -0/+9 | |
| | | | | bug #1665 | |||||
* | Fix bug #1656 | pierregm | 2010-11-13 | 1 | -0/+7 | |
| | ||||||
* | Fixing genfromtxt: names w/ usecols (bug #1636) | pierregm | 2010-11-13 | 1 | -0/+21 | |
| | ||||||
* | * fixed the behavior of {{{skip_footer}}} in {{{genfromtxt}}} when some ↵ | pierregm | 2010-09-13 | 1 | -1/+24 | |
| | | | | invalid lines are present (bug #1593) | |||||
* | 3K: lib/tests: fix test_io.RoundtripTest on Python3 + Windows | Pauli Virtanen | 2010-07-17 | 1 | -1/+2 | |
| | ||||||
* | * add a `replace_space` option to NameValidator | pierregm | 2010-05-16 | 1 | -0/+24 | |
| | | | | * Force a file to be opened in 'U' mode (bug #1473) | |||||
* | BUG/3K: lib: make savetxt work with filenames | Pauli Virtanen | 2010-05-13 | 1 | -0/+11 | |
| | ||||||
* | BUG: loadtxt should handle universal newlines. | Stefan van der Walt | 2010-05-02 | 1 | -0/+10 | |
| | ||||||
* | 3K: lib: fix bytes vs str issues in tests | Pauli Virtanen | 2010-02-21 | 1 | -7/+8 | |
| | ||||||
* | DEP: Fix deprecation warnings in Python 3.1. The warnings come from the unittest | Charles Harris | 2010-02-20 | 1 | -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 genfromtxt | Pauli Virtanen | 2010-02-20 | 1 | -34/+37 | |
| | ||||||
* | 3K: lib: fix some bytes vs. str issues in _iotools.py and io.py -- mainly ↵ | Pauli Virtanen | 2010-02-20 | 1 | -12/+14 | |
| | | | | genfromtxt | |||||
* | 3K: lib: use BytesIO in test_io | Pauli Virtanen | 2010-02-20 | 1 | -109/+115 | |
| | ||||||
* | * _iotools.LineSplitter : prevent the first and/or last empty tab-separated ↵ | pierregm | 2009-12-08 | 1 | -46/+57 | |
| | | | | columns to be dropped | |||||
* | TST: use assert_warns to check for warnings (and to avoid cluttering ↵ | David Cournapeau | 2009-11-23 | 1 | -4/+17 | |
| | | | | non-verbose test output). | |||||
* | * io.genfromtxt | pierregm | 2009-10-16 | 1 | -13/+17 | |
| | | | | - fixed an issue when an explicit dtype has the right size, but the names don't | |||||
* | * io.genfromtxt | pierregm | 2009-10-16 | 1 | -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.StringConverter | pierregm | 2009-10-14 | 1 | -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.genfromtxt | pierregm | 2009-10-12 | 1 | -2/+14 | |
| | | | | - add `skip_footer` to remove some last lines | |||||
* | * _iotools.StringConverter | pierregm | 2009-10-12 | 1 | -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 ↵ | pierregm | 2009-10-09 | 1 | -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.StringConverter | pierregm | 2009-10-06 | 1 | -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 ↵ | pierregm | 2009-10-05 | 1 | -0/+38 | |
| | | | | columns (bug #1212) | |||||
* | Add tests for dictionary interface to NpzFile. | Stefan van der Walt | 2009-07-04 | 1 | -0/+26 | |
| | ||||||
* | lib._iotools : | pierregm | 2009-05-28 | 1 | -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 Walt | 2009-05-27 | 1 | -0/+9 | |
| | ||||||
* | Fixed #852: avoid filename clashes in savez, by using a secure temporary ↵ | Pauli Virtanen | 2009-03-30 | 1 | -0/+27 | |
| | | | | file name | |||||
* | Fix import issue. | David Cournapeau | 2009-03-09 | 1 | -1/+1 | |
| | ||||||
* | Remove dead code. | David Cournapeau | 2009-03-09 | 1 | -1/+0 | |
| | ||||||
* | Do not hardcode string for savetxt testing, as the exact representation ↵ | David Cournapeau | 2009-03-09 | 1 | -5/+6 | |
| | | | | depends on the platform. | |||||
* | BUG: Rewrite test_gzip_loadtxt to avoid NamedTemporaryFile which is ↵ | David Cournapeau | 2009-03-09 | 1 | -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 Walt | 2009-03-02 | 1 | -0/+8 | |
| | ||||||
* | Add test for Gzip loader. | Stefan van der Walt | 2009-02-22 | 1 | -0/+14 | |
| | ||||||
* | Whitespace cleanup. | Stefan van der Walt | 2009-02-22 | 1 | -4/+3 | |
| | ||||||
* | Fix tests using strptime to be Python 2.4 compatible. | Stefan van der Walt | 2009-02-19 | 1 | -6/+13 | |
| | ||||||
* | Tag known failure on win32. | David Cournapeau | 2009-02-19 | 1 | -0/+2 | |
| | ||||||
* | * genfromtxt : fixed case when using explicit converters and explicit dtype. | pierregm | 2009-02-14 | 1 | -2/+11 | |
| | ||||||
* | Removed an unneccessary return statement in a unit test. | Travis Oliphant | 2009-02-06 | 1 | -1/+0 | |
| | ||||||
* | * genfromtxt : Fixed when a dtype involving objects is explicitly given. ↵ | pierregm | 2009-02-05 | 1 | -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 ↵ | pierregm | 2009-02-03 | 1 | -0/+11 | |
| | | | | define it. | |||||
* | * _iotools.StringConverter : | pierregm | 2009-01-26 | 1 | -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 ↵ | pierregm | 2009-01-22 | 1 | -1/+25 | |
| | | | | character as header. | |||||
* | * lib : introduced _iotools | pierregm | 2009-01-19 | 1 | -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 Walt | 2009-01-06 | 1 | -1/+1 | |
| | ||||||
* | BUG (#827): close temp file before reopning them on windows, and make sure ↵ | David Cournapeau | 2008-12-27 | 1 | -1/+15 | |
| | | | | they are not automatically deleted on close either (2.6and higher specific). | |||||
* | Reformat spacing in io tests. | Stefan van der Walt | 2008-11-29 | 1 | -33/+37 | |
| | ||||||
* | Add test for load's mmap_mode. | Stefan van der Walt | 2008-11-29 | 1 | -26/+61 | |
| |