Undefined name 'reduc'
cclauss opened this issue · 2 comments
cclauss commented
jeremymanning commented
Good catch @cclauss-- thanks!
cclauss commented
flake8 testing of https://github.com/ContextLab/hypertools on Python 3.6.3
$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
./hypertools/tools/procrustes.py:71:28: F821 undefined name '_offset_in'
mean = _offset_in
^
./hypertools/tools/procrustes.py:178:23: F821 undefined name '_offset_in'
if demean and _offset_in is not None:
^
./hypertools/tools/procrustes.py:179:21: F821 undefined name '_offset_in'
d = d - _offset_in
^
./hypertools/tools/procrustes.py:185:23: F821 undefined name '_offset_out'
if demean and _offset_out is not None:
^
./hypertools/tools/procrustes.py:186:20: F821 undefined name '_offset_out'
res += _offset_out
^
./tests/test_cluster.py:27:11: F821 undefined name 'hyp'
geo = hyp.plot(data, show=False)
^
./tests/test_reduce.py:38:9: F821 undefined name 'reduc'
reduc(data,ndims=4)
^
7 F821 undefined name '_offset_in'
7