Skip to content

Fix variables never used lgtm warnings in dle.py.#542

Merged
mmcky merged 2 commits intoQuantEcon:masterfrom
duncanhobbs:lgtm-warn-dle
May 15, 2020
Merged

Fix variables never used lgtm warnings in dle.py.#542
mmcky merged 2 commits intoQuantEcon:masterfrom
duncanhobbs:lgtm-warn-dle

Conversation

@duncanhobbs
Copy link
Copy Markdown
Contributor

This PR addresses these lgtm alerts for dle.py.

@coveralls
Copy link
Copy Markdown

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.

Comment thread quantecon/dle.py Outdated
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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