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

Bug fix to drawDiscrete #715

Merged
merged 2 commits into from
Jun 17, 2020
Merged

Bug fix to drawDiscrete #715

merged 2 commits into from
Jun 17, 2020

Conversation

edmundcrawley
Copy link
Contributor

These two lines can be run outside the loop, avoiding an error when N<events.size and also saving time.
The error occurs when j=0 and event_draws is empty (X[event_draws] throws an error).

These two lines can be run outside the loop, avoiding an error when N<events.size and also saving time.
The error occurs when j=0 and event_draws is empty (X[event_draws] throws an error).
@sbenthall
Copy link
Contributor

This is a good catch.

I wonder why the ConsAggShockModel is using the exact_match in the solver.
This is not standard across the library.

That question should not block this PR though, which is great.
The test is failing because of the difference in random number generation.
If you could push a commit that changes the value in the assert statement so it passes, that would do.

@mnwhite
Copy link
Contributor

mnwhite commented Jun 17, 2020 via email

@sbenthall
Copy link
Contributor

Thanks for explaining that, Matt.
I see now why exact_match is used here.

I'm less clear why it is used here, and not in other places.
It would be nice if there were a consistent, documented interface for choosing it, especially if it matters for the interpretation of the output.

@sbenthall sbenthall merged commit d93e80c into econ-ark:master Jun 17, 2020
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.

3 participants