duckietown / gym-duckietown

Self-driving car simulator for the Duckietown universe
http://duckietown.org
Other
51 stars 19 forks source link

Undefined name: np.array(), instead of numpy.array() #13

Closed cclauss closed 6 years ago

cclauss commented 6 years ago

These changes align with line 2 which does import numpy as np.

flake8 testing of https://github.com/duckietown/gym-duckietown on Python 3.6.3

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./gym_duckietown/wrappers.py:28:16: F821 undefined name 'numpy'
        lVel = numpy.array([0.4, 0.5])
               ^
./gym_duckietown/wrappers.py:29:16: F821 undefined name 'numpy'
        rVel = numpy.array([0.5, 0.4])
               ^
./pytorch_rl/vec_env/__init__.py:62:9: F821 undefined name 'logger'
        logger.warn('Render not defined for %s'%self)
        ^
3     F821 undefined name 'numpy'
3