Skip to content

Average grades in export [REBORN] - #2708

Open
Belissimo-T wants to merge 31 commits into
e-valuation:mainfrom
Belissimo-T:feat/2001
Open

Average grades in export [REBORN]#2708
Belissimo-T wants to merge 31 commits into
e-valuation:mainfrom
Belissimo-T:feat/2001

Conversation

@Belissimo-T

@Belissimo-T Belissimo-T commented Apr 20, 2026

Copy link
Copy Markdown
Collaborator

closes #2001

@Belissimo-T Belissimo-T changed the title Average grades in export REBORN Average grades in export [REBORN] Apr 20, 2026
@janno42
janno42 requested a review from richardebeling April 27, 2026 17:49
Comment thread evap/results/tests/test_exporters.py Outdated
Comment thread evap/results/tests/test_exporters.py Outdated
Comment thread evap/results/tests/test_exporters.py Outdated
Comment thread evap/results/tools.py
Comment on lines +124 to +132
def grade_average(self) -> float:
return (
sum(grade * count for count, grade in zip(self.counts, self.choices.grades, strict=True)) / self.count_sum
)

@property
def approval_average(self) -> float:
return self.approval_count / self.count_sum

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is https://github.com/e-valuation/EvaP/wiki/Calculation-of-Results still up to date, or do we need to update anything there?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think so.

Comment thread evap/results/exporters.py Outdated
@github-actions github-actions Bot added the Stale label Jul 7, 2026
Comment thread evap/results/tests/test_exporters.py Outdated
Comment thread evap/results/tests/test_exporters.py Outdated
Comment thread evap/results/exporters.py
Comment thread evap/results/exporters.py Outdated
Comment thread evap/results/exporters.py Outdated
Comment thread evap/results/exporters.py Outdated
Comment thread evap/results/exporters.py Outdated
@github-actions github-actions Bot removed the Stale label Jul 23, 2026
only include non-archived evaluations

@niklasmohrin niklasmohrin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please re-request once the youngsters have done their reviews :^)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add averages to results exports

4 participants