Public-Health-Scotland / Public-Health-Scotland/python-training
Problem of using gradethis for code checking
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
I found there is a limitation using gradethis package to assess the exercise code for python. It seems not agree to use a square bracket [ wrapped in a round bracket (. Even though I've set the solution in this way, it will still show message saying "A problem occurred with the grading code for this exercise". I guess it's because it can't evaluate python code properly.
An error will also show in my render console:
Another example is the code chunk to calculate mean value:
The error showing in my render console:
So I have to not using gradethis for now and possibly find another solution.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported gradethis failures with the square-bracket expression and the mean calculation in the exercise render, then inspect the render console errors. Compare how gradethis evaluates these Python examples and identify whether the grading path can handle them; done means both examples render and grade without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, r
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100