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

get_partial_grade returns full marks for a cell which should receive 0 #1339

Open
alexgbrandt opened this issue May 18, 2020 · 0 comments
Open

Comments

@alexgbrandt
Copy link

During autograding I noticed a few submissions brought up a warning including "expecting output to indicate partial credit and be single value between 0.0 and max_points." (Side note, in the warning message should "and be" -> "to be a" ?)

I thought this was weird, because I had written the test cases with the intention of using partial credit in this way, and that this warning only appeared when autograding some submissions.

After some digging I discovered those few submissions actually should be getting 0, but instead received full marks. I believe the issue is just in this following line. Should it be >= 0.0?

if (grade > 0.0):

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

No branches or pull requests

1 participant