summaryrefslogtreecommitdiff
path: root/numpy/lib/_iotools.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | 2to3: Use absolute imports.Charles Harris2013-03-281-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new import `absolute_import` is added the `from __future__ import` statement and The 2to3 `import` fixer is run to make the imports compatible. There are several things that need to be dealt with to make this work. 1) Files meant to be run as scripts run in a different environment than files imported as part of a package, and so changes to those files need to be skipped. The affected script files are: * all setup.py files * numpy/core/code_generators/generate_umath.py * numpy/core/code_generators/generate_numpy_api.py * numpy/core/code_generators/generate_ufunc_api.py 2) Some imported modules are not available as they are created during the build process and consequently 2to3 is unable to handle them correctly. Files that import those modules need a bit of extra work. The affected files are: * core/__init__.py, * core/numeric.py, * core/_internal.py, * core/arrayprint.py, * core/fromnumeric.py, * numpy/__init__.py, * lib/npyio.py, * lib/function_base.py, * fft/fftpack.py, * random/__init__.py Closes #3172
* 2to3: Put `from __future__ import division in every python file.Charles Harris2013-03-011-1/+5
| | | | | | | | This should be harmless, as we already are division clean. However, placement of this import takes some care. In the future a script can be used to append new features without worry, at least until such time as it exceeds a single line. Having that ability will make it easier to deal with absolute imports and printing updates.
* BUG: genfromtxt: make comments=None work with spaces in strings.Ralf Gommers2012-07-111-3/+8
|
* BUG: datetime: Various fixes for datetime arrays.Ben Walsh2011-07-191-9/+24
|
* STY: Replace remaining old style classes with classes subclassing object.Charles Harris2011-04-051-3/+3
|
* BUG: ticket #1428, allow int64 and uint64 integer types to be specified inCharles Harris2011-04-021-2/+8
| | | | genfromtxt.
* WHT: Cleanup trailing whitespace.Charles Harris2011-04-021-5/+4
|
* genfromtxt: Taking more adequate testing values when updating converters: ↵pierregm2010-11-131-3/+6
| | | | bug #1665
* Fix bug #1656pierregm2010-11-131-1/+1
|
* * fixed 'flatten_dtype' to support fields w/ titles (bug #1591). Thx to ↵pierregm2010-09-131-2/+2
| | | | | | Stefan vdW for the fix. * added a unittest for flatten_dtype
* * add a `replace_space` option to NameValidatorpierregm2010-05-161-3/+10
| | | | * Force a file to be opened in 'U' mode (bug #1473)
* 3K: lib: missing_values in genfromtxt is never a basestring on Py3Pauli Virtanen2010-02-211-1/+1
|
* 3K: lib: more str vs bytes issues in the lib/io loadtxt, savetxt and genfromtxtPauli Virtanen2010-02-201-3/+8
|
* 3K: lib: fix some bytes vs. str issues in _iotools.py and io.py -- mainly ↵Pauli Virtanen2010-02-201-12/+36
| | | | genfromtxt
* 3K: lib: do not slice range() in _iotools needlesslyPauli Virtanen2010-02-201-1/+1
|
* * _iotools.LineSplitter : prevent the first and/or last empty tab-separated ↵pierregm2009-12-081-8/+8
| | | | columns to be dropped
* first set of checkins from the doc editorJarrod Millman2009-11-131-7/+27
|
* * _iotools.StringConverterpierregm2009-10-141-1/+6
| | | | | | | | | | - 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
* * _iotools.StringConverterpierregm2009-10-121-8/+21
| | | | | | | | | | - 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-25/+125
| | | | | | | | | | | | | #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-4/+33
| | | | | | | - 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-7/+7
| | | | columns (bug #1212)
* Docstring update: libPauli Virtanen2009-10-021-79/+195
|
* lib._iotools : pierregm2009-05-281-4/+27
| | | | | | | | | | | * 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
* * genfromtxt : Fixed when a dtype involving objects is explicitly given. ↵pierregm2009-02-051-2/+17
| | | | | | 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-2/+7
| | | | define it.
* * _iotools.StringConverter :pierregm2009-01-261-2/+6
| | | | | | | | - 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)
* * lib : introduced _iotoolspierregm2009-01-191-0/+469
* lib.io : introduced genfromtxt, ndfromtxt, mafromtxt, recfromtxt, recfromcsv.