Skip to content

Commit

Permalink
Deleted cvs version files
Browse files Browse the repository at this point in the history
  • Loading branch information
teoliphant committed Oct 2, 2005
1 parent a4cbbb1 commit 90d92f2
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 24 deletions.
4 changes: 0 additions & 4 deletions Lib/__cvs_version__.py

This file was deleted.

4 changes: 0 additions & 4 deletions Lib/fftpack/__cvs_version__.py

This file was deleted.

4 changes: 0 additions & 4 deletions Lib/linalg/__cvs_version__.py

This file was deleted.

4 changes: 0 additions & 4 deletions Lib/special/__cvs_version__.py

This file was deleted.

30 changes: 30 additions & 0 deletions Lib/utils/limits.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
""" Machine limits for Float32 and Float64.
"""

__all__ = ['float_epsilon','float_tiny','float_min',
'float_max','float_precision','float_resolution',
'double_epsilon','double_tiny','double_min','double_max',
'double_precision','double_resolution']

from scipy.base import finfo, single, float_

single_epsilon = finfo(single).epsilon
single_tiny = finfo(single).tiny
single_max = finfo(single).huge
single_min = -single_max
single_precision = finfo(single).precision
single_resolution = finfo(single).resolution

float_epsilon = finfo(float_).epsilon
float_tiny = finfo(float_).tiny
float_max = finfo(float_).huge
float_min = -float_max
float_precision = finfo(float_).precision
float_resolution = finfo(float_).resolution

if __name__ == '__main__':
print 'single epsilon:',single_epsilon
print 'single tiny:',single_tiny
print 'float epsilon:',float_epsilon
print 'float tiny:',float_tiny

1 change: 1 addition & 0 deletions TOCHANGE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ Changes that should be made someday:
* distributions heavy use of extract and insert (could use fancy indexing -- but we should wait until we learn how slow fancy indexing is....)
* Use of old Numeric C-API. Using it means an extra C-level function cal think that's a problem, but...
* Make use of type addition to extend certain ufuncs with cephes quad types.
* Use finfo(foo).bar instead of limits.foo_bar
16 changes: 8 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
# requires scipy.distutils (though, f2py can be installed without
# scipy.distutils).

scipy_core_dir = os.path.join(os.getcwd(),'scipy_core')
if os.path.isdir(scipy_core_dir):
ppath = os.environ.setdefault('PYTHONPATH',scipy_core_dir)
if ppath != scipy_core_dir:
ppath = '%s%s%s' % (scipy_core_dir,os.pathsep,ppath)
os.environ['PYTHONPATH'] = ppath
sys.path.insert(0,scipy_core_dir)
#scipy_core_dir = os.path.join(os.getcwd(),'scipy_core')
#if os.path.isdir(scipy_core_dir):
# ppath = os.environ.setdefault('PYTHONPATH',scipy_core_dir)
# if ppath != scipy_core_dir:
# ppath = '%s%s%s' % (scipy_core_dir,os.pathsep,ppath)
# os.environ['PYTHONPATH'] = ppath
#sys.path.insert(0,scipy_core_dir)

try:
import scipy.distutils
Expand All @@ -61,7 +61,7 @@ def setup_package(ignore_packages=[]):
# Applying the same commands to scipy_core.
# Results can be found in scipy_core directory.
c = '%s %s %s' % (sys.executable,
os.path.abspath(os.path.join('scipy_core','setup.py')),
os.path.abspath(os.path.join('scipy_core','setup.py')),
' '.join(sys.argv[1:]))
print c
s = os.system(c)
Expand Down

0 comments on commit 90d92f2

Please sign in to comment.