Skip to main content

sycu exam

Project description

sycu_exam

sycu 算分程序 - 根据学生等级自动生成各项评分细则。

安装

poetry install

运行

poetry run sycu-exam

配置说明

配置文件: sycu_config.yaml

课程类型配置 (course_types)

common:
  course_types:
    # (课程关键字, 课程分数, 实训次数, 小组次数, 作业次数, 结课类型)
    JAVA: ["java", 3, 1, 1, 3, "exam"]
    ML: ["ml", 2, 1, 0, 0, "paper"]

年级配置 (grade_types)

common:
  grade_types: ["23", "24", "25"]

激活课程配置

couses:
  actived_course: ["JAVA", "ML"]
  JAVA:
    GradeType: ["SK24"]
    ClazzType: ["C1", "C2"]
    actived_model: "Two"
  ML:
    GradeType: ["SK23"]
    ClazzType: ["C1", "C2"]
    actived_model: "Two"

数据文件

  • 输入: data/{年级}/stu_{年级}_{班级}_{课程}.csv
  • 输出: grade/{年级}/grd_{年级}_{班级}_{课程}_{时间戳}.csv

等级对应分数

等级 分数范围
A 90+
A- 85-89
B+ 80-84
B 75-79
B- 70-74
C+ 65-69
C 62-64
D 50以下

测试

# 运行所有测试
poetry run pytest

# 运行单个测试
poetry run pytest tests/sycu_exam/test_random.py::test_randam_do -vs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sycu_exam-1.2.0.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sycu_exam-1.2.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file sycu_exam-1.2.0.tar.gz.

File metadata

  • Download URL: sycu_exam-1.2.0.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.9 Darwin/24.5.0

File hashes

Hashes for sycu_exam-1.2.0.tar.gz
Algorithm Hash digest
SHA256 8ab3bf3ad65867b3206b569759d88edf3b587c204747ddc85d656aad91e36f4a
MD5 dd1d46db389c20705c1ddd4352ee4e80
BLAKE2b-256 383915cf1ceeb00955bac025b24244f9f922f570bb054a5109620063d252a419

See more details on using hashes here.

File details

Details for the file sycu_exam-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: sycu_exam-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.9 Darwin/24.5.0

File hashes

Hashes for sycu_exam-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8d36d2f1984abe82e1691d3adf576411c4c47b0633bee9da067b96522827075
MD5 c18bc11ae1253d343309fbeb4279e4ce
BLAKE2b-256 09d0acd78e9422f2bff6edf5b46f964c93255cadfea3320e7960dc8f83b85510

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page