Skip to content
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 variables never used lgtm warnings in dle.py. #542

Merged
merged 2 commits into from
May 15, 2020

Conversation

duncanhobbs
Copy link
Contributor

This PR addresses these lgtm alerts for dle.py.

@coveralls
Copy link

coveralls commented May 10, 2020

Coverage Status

Coverage decreased (-0.002%) to 93.919% when pulling 59c8283 on duncanhobbs:lgtm-warn-dle into 0e56dba on QuantEcon:master.

quantecon/dle.py Outdated
@@ -69,15 +69,14 @@ def __init__(self, information, technology, preferences):
self.nb, self.nh = self.llambda.shape
self.nd, self.nc = self.phic.shape
self.nz, self.nw = self.c2.shape
junk, self.ng = self.phig.shape
self.junk, self.ng = self.phig.shape
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say this should be

Suggested change
self.junk, self.ng = self.phig.shape
_, self.ng = self.phig.shape

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for pointing this out. I updated the PR accordingly.

Copy link
Member

@oyamad oyamad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mmcky mmcky merged commit 9d0fb5b into QuantEcon:master May 15, 2020
@duncanhobbs duncanhobbs deleted the lgtm-warn-dle branch May 16, 2020 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants