Visualisasi pembobotan CPMK + rekap kelas tertimbang bobot RPS

- Metodologi: kartu "Alur Pembobotan per MK" (Komponen RPS -> Sub-CPMK -> CPMK,
  CPMK -> CPL skor maks resmi, perbandingan porsi RPS vs skor maks)
- Peta Visual: mode "Bobot (skor maks resmi)" pada diagram alur, label persen
  (tiap CPL 100%), angka mentah Tabel 10.2/10.3 di tooltip
- rollup_mk: Sub-CPMK -> CPMK kini tertimbang bobot kisi-kisi RPS (sebelumnya
  rata sederhana), sama dengan jalur per mahasiswa; semua pemanggil diperbarui
- Uji: rekap kelas = rata-rata capaian per mahasiswa

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Power BI Dev
2026-11-16 07:03:21 +07:00
co-authored by Claude Opus 5.5
parent 7013ebd541
commit 199c217c3b
9 changed files with 477 additions and 26 deletions
+14
View File
@@ -70,6 +70,20 @@ pm = {"kode": "MK09", "cpls": [{"kode": "CPL-02"}],
r = hitung.rollup_mk(pm, {"mode": "agregat", "agregat": {"sa": 90, "sb": 40}}, 70)
cek(abs(r["cpl"]["CPL-02"]["skor"] - 80.0) < 1e-9, f"rollup_mk CPL = (80·90 + 20·40)/100 = {r['cpl']['CPL-02']['skor']:.1f}")
# 5b) rollup_mk: Sub-CPMK → CPMK tertimbang bobot kisi-kisi RPS (sama dengan jalur per mahasiswa)
pw = {"kode": "MK10", "cpls": [{"kode": "CPL-02"}],
"cpmks": [{"kode": "A", "cpl": ["CPL-02"], "subs": [{"kode": "s1"}, {"kode": "s2"}]}]}
skor_maks["MK10"] = {"A": 100.0}
nd = {"mode": "agregat", "agregat": {"s1": 90, "s2": 60}}
cek(abs(hitung.rollup_mk(pw, nd, 70)["cpmk"]["A"]["skor"] - 75.0) < 1e-9, "tanpa bobot RPS → rata sederhana (90+60)/2 = 75")
rw = hitung.rollup_mk(pw, nd, 70, {"s1": 30.0, "s2": 10.0})
cek(abs(rw["cpmk"]["A"]["skor"] - 82.5) < 1e-9, f"bobot RPS 30:10 → (30·90 + 10·60)/40 = {rw['cpmk']['A']['skor']:.1f}")
nm = {"mode": "per_mahasiswa", "mahasiswa": [{"npm": "m1", "skor": {"s1": 90, "s2": 60}},
{"npm": "m2", "skor": {"s1": 70, "s2": 100}}]}
kelas = hitung.rollup_mk(pw, nm, 70, {"s1": 30.0, "s2": 10.0})["cpmk"]["A"]["skor"]
per_mhs = hitung.sebaran_cpmk(pw, nm, 70, {"s1": 30.0, "s2": 10.0})["A"]["rata_mhs"]
cek(abs(kelas - per_mhs) < 1e-9, f"rekap kelas ({kelas:.2f}) = rata-rata capaian per mahasiswa ({per_mhs:.2f})")
# 6) Panduan Kurikulum APTIKOM 2024 hal. 117: 50 mhs → 30 di atas, 5 sesuai, 15 di bawah 50,01
from app import cqi
pa = {"kode": "MK08", "cpls": [{"kode": "CPL-08"}],