-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix flake8 errors #470
Fix flake8 errors #470
Conversation
@@ -291,6 +290,7 @@ def test_goldstein_price(self): | |||
bounds = np.array([[-2., 2.], | |||
[-2., 2.]]) | |||
|
|||
# TODO: why is `bounds` not passed to the argument here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quantecon/tests/test_dle.py
Outdated
@@ -35,7 +35,7 @@ def setUp(self): | |||
deltah = np.array([[.9]]) | |||
thetah = np.array([[1]]) - deltah | |||
ub = np.array([[30, 0, 0]]) | |||
x0 = np.array([[5, 150,1,0,0]]).T | |||
# x0 = np.array([[5, 150, 1, 0, 0]]).T # unused |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@natashawatkins would you have time to check this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not used anywhere else in this file, but I can't figure out why it's there in the first place
quantecon/tests/test_kalman.py
Outdated
@@ -53,7 +53,7 @@ def test_stationarity(self): | |||
|
|||
|
|||
def test_update_using_stationary(self): | |||
A, Q, G, R = self.A, self.Q, self.G, self.R | |||
# A, Q, G, R = self.A, self.Q, self.G, self.R # unused |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@natashawatkins would you have time to check this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not used in this function - was probably just copied from above
quantecon/tests/test_lqcontrol.py
Outdated
@@ -81,7 +81,7 @@ def test_stationary_mat(self): | |||
lq_mat = self.lq_mat | |||
|
|||
f_answer = np.array([[-.95, -.95], [0., 0.]]) | |||
p_answer = np.array([[1., 0], [0., 0.]]) | |||
# p_answer = np.array([[1., 0], [0., 0.]]) # unused |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@natashawatkins would you have time to check this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't appear to be used
thanks @rht. I have tagged a few contributors to check a few of the F841 commented lines to make sure they aren't needed. |
quantecon/game_theory/game_generators/tests/test_bimatrix_generators.py
Outdated
Show resolved
Hide resolved
thanks for the updates @rht. |
@rht would you mind deleting the unused items that are current commented? |
thanks for review @natashawatkins |
Assuming that that means all the unused variables detected by F841: I have just removed them. |
There are few remaining,
but I have to keep the PR lean for now. |
OK - thanks @rht |
In particular: