Portofolio Loop 1 format APTIKOM: evaluasi per CPMK & tindak lanjut dari CQI
- Dua ambang Panduan Kurikulum APTIKOM 2024 hal. 117: Ambang Batas Kelulusan Mahasiswa (bawaan 50,01) & Ambang Batas Kelulusan MK (75 %). Status tercapai satu aturan (cqi.tercapai) untuk portofolio, CQI, dan Laporan CPL: % mahasiswa >= ambang >= target; data agregat memakai skor >= ambang. - % tuntas CPMK dihitung per mahasiswa (hitung.sebaran_cpmk: di atas/sesuai/di bawah ambang), bukan rata-rata % lulus Sub-CPMK; sebaran CPL dalam MK (sebaran_cpl_mk). - Portofolio: G.1 ketercapaian CPMK, G.2 CPL dengan % tuntas, catatan metode dibetulkan; H.1 hasil CQI periode lalu (skor awal -> sekarang), H.2 rencana CQI periode ini, H.3 kendala, H.4 statistik. Form menampilkan G & H + saran "Jadikan temuan CQI". - RPS menampilkan kedua ambang (form bagian G & lampiran kisi-kisi .docx). - Uji: contoh APTIKOM 30/5/15 dari 50 -> 70 % FAILED; konsistensi status portofolio = CQI; bagian G.1–H.3 tercetak. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
5653122407
commit
7ece0d8b15
+16
-1
@@ -72,7 +72,11 @@ cek(cp.get(f"/cqi/mk/{MK}").status_code == 200 and cd.get(f"/cqi/mk/{MK}").statu
|
||||
# 5. portofolio .docx memuat item CQI
|
||||
r = ck.get(f"/portofolio/{MK}/unduh")
|
||||
teks = " ".join(c.text for t in docx.Document(io.BytesIO(r.content)).tables for row in t.rows for c in row.cells)
|
||||
cek(f"CQI #{cid}" in teks and "Tambah praktikum dekomposisi" in teks, "portofolio .docx memuat item CQI + rencana")
|
||||
cek(f"CQI #{cid}" in teks and "Tambah praktikum dekomposisi" in teks, "portofolio .docx H.2 memuat item CQI + rencana")
|
||||
teks_p = " ".join(p.text for p in docx.Document(io.BytesIO(r.content)).paragraphs)
|
||||
cek(all(j in teks_p for j in ("G.1 Ketercapaian CPMK", "H.1 Tindak lanjut", "H.2 Rencana perbaikan", "H.3 Kendala")),
|
||||
"portofolio .docx: bagian G.1, H.1, H.2, H.3")
|
||||
cek("rata-rata sederhana (bagi rata)" not in teks_p, "catatan metode lama (keliru) tidak tercetak lagi")
|
||||
|
||||
# 6. simulasi tahun berikutnya → verifikasi
|
||||
lama = db.ambil_dok("nilai", MK)["data"]
|
||||
@@ -116,5 +120,16 @@ for c, nama, rute in ((ck, "kaprodi", ["/", "/cqi", "/cqi?loop=2", f"/cqi/{cid}"
|
||||
for u in rute:
|
||||
st = c.get(u, follow_redirects=False).status_code
|
||||
cek(st == 200, f"{nama} {u} → {st}")
|
||||
# 9. konsistensi: CPMK "belum tercapai" di portofolio = saran CQI + item CQI periode ini
|
||||
peta = main._terapkan_override_sub(db.peta_mk(MK), (db.ambil_rps(MK) or {}).get("data"))
|
||||
ev = main._evaluasi_porto(MK, peta, db.ambil_dok("nilai", MK)["data"], (db.ambil_rps(MK) or {}).get("data"))
|
||||
belum = {c["kode"] for c in ev["cpmk"] if c["tercapai"] is False}
|
||||
tercatat = {s["sasaran_kode"] for s in cqi.saran_loop1(MK)} | {i["sasaran_kode"] for i in ev["cqi_kini"] if i["sasaran_jenis"] == "CPMK"}
|
||||
cek(belum <= tercatat, f"setiap CPMK belum tercapai muncul di saran/item CQI: {sorted(belum)} ⊆ {sorted(tercatat)}")
|
||||
for s_ in cqi.saran_loop1(MK):
|
||||
cek(next(c for c in ev["cpmk"] if c["kode"] == s_["sasaran_kode"])["tercapai"] is False,
|
||||
f"saran {s_['sasaran_kode']} berstatus belum tercapai juga di portofolio")
|
||||
h = ck.get(f"/portofolio/{MK}").text
|
||||
cek("G. Evaluasi Ketercapaian CPMK" in h and "H.1" in h and "H.2" in h, "form portofolio menampilkan G & H.1–H.2")
|
||||
print("TOTAL GAGAL:", len(gagal))
|
||||
sys.exit(1 if gagal else 0)
|
||||
|
||||
Reference in New Issue
Block a user