summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/code_generators/generate_numpy_api.py3
-rw-r--r--numpy/distutils/system_info.py7
-rwxr-xr-xnumpy/f2py/crackfortran.py8
-rw-r--r--numpy/linalg/lapack_lite/fortran.py2
-rw-r--r--numpy/linalg/linalg.py6
-rw-r--r--numpy/ma/core.py5
-rw-r--r--numpy/ma/mrecords.py1
7 files changed, 7 insertions, 25 deletions
diff --git a/numpy/core/code_generators/generate_numpy_api.py b/numpy/core/code_generators/generate_numpy_api.py
index 7997135bb..37975966f 100644
--- a/numpy/core/code_generators/generate_numpy_api.py
+++ b/numpy/core/code_generators/generate_numpy_api.py
@@ -177,9 +177,6 @@ def do_generate_api(targets, sources):
numpyapi_list = genapi.get_api_functions('NUMPY_API',
multiarray_funcs)
- # FIXME: ordered_funcs_api is unused
- ordered_funcs_api = genapi.order_dict(multiarray_funcs)
-
# Create dict name -> *Api instance
api_name = 'PyArray_API'
multiarray_api_dict = {}
diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py
index 82e864a5c..2846d754e 100644
--- a/numpy/distutils/system_info.py
+++ b/numpy/distutils/system_info.py
@@ -1342,8 +1342,6 @@ class atlas_info(system_info):
lapack = None
atlas_1 = None
for d in lib_dirs:
- # FIXME: lapack_atlas is unused
- lapack_atlas = self.check_libs2(d, ['lapack_atlas'], [])
atlas = self.check_libs2(d, atlas_libs, [])
if atlas is not None:
lib_dirs2 = [d] + self.combine_paths(d, ['atlas*', 'ATLAS*'])
@@ -3107,8 +3105,9 @@ def show_all(argv=None):
del show_only[show_only.index(name)]
conf = c()
conf.verbosity = 2
- # FIXME: r not used
- r = conf.get_info()
+ # we don't need the result, but we want
+ # the side effect of printing diagnostics
+ conf.get_info()
if show_only:
log.info('Info classes not defined: %s', ','.join(show_only))
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py
index 2f491ed7e..3ac9b80c8 100755
--- a/numpy/f2py/crackfortran.py
+++ b/numpy/f2py/crackfortran.py
@@ -2564,10 +2564,8 @@ def get_parameters(vars, global_params={}):
v = ''.join(tt)
elif iscomplex(vars[n]):
- # FIXME complex numbers may also have exponents
- if v[0] == '(' and v[-1] == ')':
- # FIXME, unused l looks like potential bug
- l = markoutercomma(v[1:-1]).split('@,@')
+ outmess(f'get_parameters[TODO]: '
+ f'implement evaluation of complex expression {v}')
try:
params[n] = eval(v, g_params, params)
@@ -2998,7 +2996,7 @@ def expr2name(a, block, args=[]):
def analyzeargs(block):
setmesstext(block)
- implicitrules, attrrules = buildimplicitrules(block)
+ implicitrules, _ = buildimplicitrules(block)
if 'args' not in block:
block['args'] = []
args = []
diff --git a/numpy/linalg/lapack_lite/fortran.py b/numpy/linalg/lapack_lite/fortran.py
index 3aaefb92f..fc09f0808 100644
--- a/numpy/linalg/lapack_lite/fortran.py
+++ b/numpy/linalg/lapack_lite/fortran.py
@@ -110,7 +110,7 @@ def getDependencies(filename):
for lineno, line in fortranSourceLines(fo):
m = external_pat.match(line)
if m:
- names = line = line[m.end():].strip().split(',')
+ names = line[m.end():].strip().split(',')
names = [n.strip().lower() for n in names]
names = [n for n in names if n]
routines.extend(names)
diff --git a/numpy/linalg/linalg.py b/numpy/linalg/linalg.py
index e150952e3..10f7f9ae0 100644
--- a/numpy/linalg/linalg.py
+++ b/numpy/linalg/linalg.py
@@ -128,10 +128,6 @@ def _realType(t, default=double):
def _complexType(t, default=cdouble):
return _complex_types_map.get(t, default)
-def _linalgRealType(t):
- """Cast the type t to either double or cdouble."""
- return double
-
def _commonType(*arrays):
# in lite version, use higher precision (always double or cdouble)
result_type = single
@@ -2275,8 +2271,6 @@ def lstsq(a, b, rcond="warn"):
raise LinAlgError('Incompatible dimensions')
t, result_t = _commonType(a, b)
- # FIXME: real_t is unused
- real_t = _linalgRealType(t)
result_real_t = _realType(result_t)
# Determine default rcond value
diff --git a/numpy/ma/core.py b/numpy/ma/core.py
index 152d17965..431114fe0 100644
--- a/numpy/ma/core.py
+++ b/numpy/ma/core.py
@@ -2839,11 +2839,6 @@ class MaskedArray(ndarray):
_data = ndarray.view(_data, type(data))
else:
_data = ndarray.view(_data, cls)
- # Backwards compatibility w/ numpy.core.ma.
- if hasattr(data, '_mask') and not isinstance(data, ndarray):
- _data._mask = data._mask
- # FIXME _sharedmask is never used.
- _sharedmask = True
# Process mask.
# Type of the mask
mdtype = make_mask_descr(_data.dtype)
diff --git a/numpy/ma/mrecords.py b/numpy/ma/mrecords.py
index d8434b0d3..6814931b0 100644
--- a/numpy/ma/mrecords.py
+++ b/numpy/ma/mrecords.py
@@ -375,7 +375,6 @@ class MaskedRecords(MaskedArray):
try:
if issubclass(dtype, ndarray):
output = ndarray.view(self, dtype)
- dtype = None
else:
output = ndarray.view(self, dtype)
# OK, there's the change