Skip to content

Fix numpy warning when stats don't exist #3251

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

Merged
merged 1 commit into from
Jan 18, 2020
Merged

Fix numpy warning when stats don't exist #3251

merged 1 commit into from
Jan 18, 2020

Conversation

ervteng
Copy link
Contributor

@ervteng ervteng commented Jan 17, 2020

A numpy divide by 0 warning would be thrown when there aren't any episodes between summaries. This PR outputs a proper empty StatsSummary when there aren't any episodes.

Note: This doesn't actually fix any bugs, just avoids doing the divide-by-0.

@ervteng ervteng merged commit a591234 into master Jan 18, 2020
@delete-merged-branch delete-merged-branch bot deleted the develop-fix0stats branch January 18, 2020 00:53
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants