Closed cclauss closed 6 years ago
Undefined names have the potential to raise NameError at runtime.
flake8 testing of https://github.com/locuslab/mpc.pytorch on Python 3.7.0
$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
./mpc/lqr_step.py:140:16: F821 undefined name 'lqr' _lqr = lqr.LQR( ^ ./mpc/lqr_step.py:239:38: F821 undefined name 'Vtp1' Qt = C[t] + Ft_T.bmm(Vtp1).bmm(Ft) ^ ./mpc/lqr_step.py:241:42: F821 undefined name 'vtp1' qt = c[t] + Ft_T.bmm(vtp1.unsqueeze(2)).squeeze(2) ^ ./mpc/lqr_step.py:244:42: F821 undefined name 'Vtp1' qt = c[t] + Ft_T.bmm(Vtp1).bmm(ft.unsqueeze(2)).squeeze(2) + \ ^ ./mpc/lqr_step.py:245:34: F821 undefined name 'vtp1' Ft_T.bmm(vtp1.unsqueeze(2)).squeeze(2) ^ 5 F821 undefined name 'lqr' 5
Thanks!
Undefined names have the potential to raise NameError at runtime.
flake8 testing of https://github.com/locuslab/mpc.pytorch on Python 3.7.0
$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics