Skip to content

Update root_finding.py#560

Merged
mmcky merged 1 commit intoQuantEcon:masterfrom
alanlujan91:patch-1
Dec 22, 2020
Merged

Update root_finding.py#560
mmcky merged 1 commit intoQuantEcon:masterfrom
alanlujan91:patch-1

Conversation

@alanlujan91
Copy link
Contributor

when x0 >= 0, q0 is not initially assigned, but since this function is jitted, I believe q0 = 0.0 when referenced before assignment

to notice the error, remove @njit decorator and set x0 >= 0

when x0 >= 0, q0 is not initially assigned, but since this function is jitted, I believe q0 = 0.0 when referenced before assignment

to notice the error, remove @njit decorator and set x0 >= 0
@coveralls
Copy link

Coverage Status

Coverage remained the same at 94.074% when pulling 992f41d on alanlujan91:patch-1 into 805650a on QuantEcon:master.

@mmcky mmcky requested a review from jstac December 18, 2020 02:15
@mmcky
Copy link
Contributor

mmcky commented Dec 18, 2020

thanks @alanlujan91 for the PR. @jstac would you have any time to take a quick look at this?

Copy link
Member

@sglyon sglyon left a comment

Choose a reason for hiding this comment

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

LGTM!

@mmcky
Copy link
Contributor

mmcky commented Dec 22, 2020

thanks @sglyon

@mmcky mmcky merged commit 08a15f5 into QuantEcon:master Dec 22, 2020
@alanlujan91 alanlujan91 deleted the patch-1 branch December 22, 2020 19:45
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