DIKU-EDU / remarks

A DSL for marking student work
BSD 3-Clause "New" or "Revised" License
3 stars 2 forks source link

Automate summation / quickfix bad sums #2

Closed oleks closed 7 years ago

oleks commented 7 years ago

Teaching assistants shouldn't be asked to sum things up correctly. It should be easy to sum up points starting from the bottom-most judgements.

oleks commented 7 years ago

There is now a plan for this, and it requires #5 .

oleks commented 7 years ago

To this end, I added a unification procedure: ce5e6576676848722c86e01458c2e2730dd7ab94

kirkedal commented 7 years ago

I have added a sum function to the properties, what sums values of a given propertyName in sub-judgements. Syntax is sum([propertyName]. PropertyInterp it adds :Total: sum(Total)and :MaxPoints: sum(MaxPoints) to all judgements. These sums are used for exportation.

If you define other fields, you can also take sum of them. It only sums from the sub-judgements where the propertyName exist; all other are treated as 0.

I don't know if this was what you were searching for.

oleks commented 7 years ago

I think so.