summaryrefslogtreecommitdiff
path: root/numpy/oldnumeric
Commit message (Collapse)AuthorAgeFilesLines
* 2to3: Use absolute imports.Charles Harris2013-03-2823-52/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Replace xrange by range and use list(range(...)) where neededCharles Harris2013-03-271-1/+1
| | | | | | | | | | | | | | | In python3 range is an iterator and `xrange` has been removed. This has two consequence for code: 1) Where a list is needed `list(range(...))` must be used. 2) `xrange` must be replaced by `range` Both of these changes also work in python2 and this patch makes both. There are three places fixed that do not need it, but I left them in so that the result would be `xrange` clean. Closes #3092
* 2to3: Put `from __future__ import division in every python file.Charles Harris2013-03-0124-22/+77
| | | | | | | | 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.
* 2to3: Apply `raise` fixes. Closes #3077.Charles Harris2013-03-013-14/+14
| | | | | | | | | | Replaces the raise Exception, msg: form with raise Exception(msg):
* DEP: Remove scons related files and code.Charles Harris2013-01-131-8/+0
| | | | | | | | | This removes files and code supporting scons builds. After this change numpy will only support builds using distutils or bento. The removal of scons has been discussed on the list several times and a decision has been made that scons support is no longer needed. This was originally discussed for numpy 1.7 and because the distutils and bento methods are still available we are skipping the usual deprecation period.
* STY: Fix up some remaining old-style exceptions.Charles Harris2011-04-053-7/+8
| | | | I think that is the end of it.
* STY: Fix up some two line old-style exceptions.Charles Harris2011-04-051-2/+1
|
* STY: Update exception styles, trickier ones.Charles Harris2011-04-051-1/+1
|
* STY: Update exception style, easy ones.Charles Harris2011-04-056-37/+37
|
* Don't deprecated bias keyword, just add ddof.Charles Harris2010-07-071-1/+1
|
* ENH: Add ddof keyword to cov and corrcoef. Deprecate bias keyword.Charles Harris2010-07-071-1/+1
|
* 3K: ENH: make oldnumeric to import -- but don't implement ↵Pauli Virtanen2010-02-212-6/+21
| | | | oldnumeric.Unpickler as it's not straightforward to do
* 3K: BUG: work around bugs in Python 3.1.1 2to3 by not using fixes_reducePauli Virtanen2010-02-201-0/+3
| | | | Instead, manually import reduce where necessary.
* All non core regressions tests moved to their respective modules.David Cournapeau2009-09-161-0/+10
|
* ran reindentJarrod Millman2008-12-313-4/+4
|
* Rewrapped __all__ definition to conform to PEP8.Alan McIntyre2008-09-134-24/+29
| | | | | | | Standardize NumPy import as "import numpy as np". Removed unused imports. Fixed undefined reference to ndarray (should be np.ndarray). Fixed undefined references to exp (should be math.exp).
* Standardize NumPy import as "import numpy as np".Alan McIntyre2008-07-251-17/+17
|
* Correct the oldnumeric typecodes, update the tests to work on 32-bit ↵Robert Kern2008-07-033-17/+24
| | | | machines, make sure these tests are installed with numpy so they can be run with numpy.test().
* Clean up test output such that a completely-passing test suite has no ↵Robert Kern2008-07-031-1/+3
| | | | extraneous output.
* Restore old test framework classes.Alan McIntyre2008-06-212-2/+2
| | | | | | | | | | | Added numpy.testing.run_module_suite to simplify "if __name__ == '__main__'" boilerplate code in test modules. Removed numpy/testing/pkgtester.py since it just consisted of an import statement after porting SciPy r4424. Allow numpy.*.test() to accept the old keyword arguments (but issue a deprecation warning when old arguments are seen). numpy.*.test() returns a test result object as before. Fixed typo in distutils doc.
* Switched to use nose to run tests. Added test and bench functions to all ↵Alan McIntyre2008-06-172-2/+6
| | | | modules.
* ran reindent in preparation for the 1.1 releaseJarrod Millman2008-04-202-5/+3
|
* Fix typo.Travis Oliphant2008-04-031-1/+1
|
* Fix-up a few errors in oldnumeric.Travis Oliphant2008-04-011-3/+3
|
* fix-up imports in oldnumeric/ma.pyTravis Oliphant2008-04-011-6/+6
|
* Add old ma.py interface to oldnumeric compatibility layer so that it stays ↵Travis Oliphant2008-04-011-7/+2262
| | | | the same.
* Fix typo from last checkin.Travis Oliphant2008-03-251-1/+1
|
* Improve support for old pickles.Travis Oliphant2008-03-252-19/+49
|
* NotImplementedError is the exception, not NotImplementedRobert Kern2008-03-241-4/+4
|
* Fix oldnumeric compatibility with maTravis Oliphant2008-03-131-2/+2
|
* Add setupscons.py for pure python packagesDavid Cournapeau2008-01-071-0/+8
|
* more janitorial workJarrod Millman2007-12-292-40/+40
|
* ran reindent.py to clean up whitespaceJarrod Millman2007-10-293-6/+3
|
* using faster string methods rather than deprecated string moduleJarrod Millman2007-10-292-3/+2
|
* fixed typoJarrod Millman2007-10-291-1/+1
|
* Fix randint. Closes ticket #552.Stefan van der Walt2007-07-231-6/+4
|
* Clean up setup() calls.Pearu Peterson2007-05-111-1/+1
|
* Fix compatibility layer definition of stdTravis Oliphant2007-05-041-1/+2
|
* Add a few more functions to arrayfns compatibility file and fix typo.Travis Oliphant2007-04-021-12/+28
|
* Add the arrayfns compatibility library -- not finished.Travis Oliphant2007-04-021-0/+82
|
* clean up unused imports and bad whitespaceTim Leslie2007-01-092-28/+25
|
* Whitespace cleanup.Stefan van der Walt2007-01-0816-60/+49
|
* Fix typo in oldnumeric and add Rick White's improvement to histogram for ↵Travis Oliphant2006-12-141-1/+1
| | | | large arrays.
* Don't share __all__ between numarray.linear_algebra and ↵Stefan van der Walt2006-11-222-3/+3
| | | | oldnumeric.linear_algebra.
* Fix the fromfunction routine to use float as default. Update oldnumeric and ↵Travis Oliphant2006-09-282-4/+7
| | | | numarray compatibility modules.
* Add oldtypecodes to oldnumeric.typeconv so that old Numeric character codes ↵Travis Oliphant2006-09-251-1/+18
| | | | can be identified.
* Switch order of .put arguments to match the function call. Eliminate ↵Travis Oliphant2006-09-221-6/+6
| | | | .putmask as a method and make it only a function.
* Fix problem with alter_code1.pyTravis Oliphant2006-09-211-1/+1
|
* oldnumeric.argmin should use numpy.argminRobert Kern2006-09-191-1/+1
|
* Add one more import possibility.Travis Oliphant2006-09-191-0/+2
|