Public-Health-Scotland / Public-Health-Scotland/python-training

Problem of using gradethis for code checking

Open
#17 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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.

Image

An error will also show in my render console:

Image

Another example is the code chunk to calculate mean value:

Image

The error showing in my render console:

Image

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.