Skip to content

2024280385王继熠#8

Open
Wjaywhy wants to merge 2 commits into
jwentong:mainfrom
Wjaywhy:main
Open

2024280385王继熠#8
Wjaywhy wants to merge 2 commits into
jwentong:mainfrom
Wjaywhy:main

Conversation

@Wjaywhy
Copy link
Copy Markdown

@Wjaywhy Wjaywhy commented Apr 23, 2026

我完成了任务1(BPSK调制)
我完成了任务2(QPSK调制)
我完成了任务3(16-QAM调制)
我生成了BPSK、QPSK和16-QAM星座图
我完成了调制功能的基本测试,结果符合预期

Copilot AI review requested due to automatic review settings April 23, 2026 12:29
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

该 PR 主要完成了实验平台中 BPSK/QPSK/16‑QAM 的调制实现,并补全了(选做)解调函数;同时更新了教师指南与报告模板内容。

Changes:

  • src/modulation.py 实现 BPSK/QPSK/16‑QAM 调制(含输入合法性校验与归一化)
  • src/demodulation.py 实现 BPSK/QPSK/16‑QAM 解调(最近点/阈值判决)
  • 更新 TEACHER_GUIDE.md 的排版;将实验报告内容写入 REPORT_TEMPLATE.md

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/modulation.py 实现三种调制映射、归一化与输入校验,满足自动评分测试点
src/demodulation.py 补全三种解调算法,支持性能测试链路(选做)
TEACHER_GUIDE.md 文档排版调整(表格/空行等)
REPORT_TEMPLATE.md 报告模板被替换为具体个人报告内容(会影响评分脚本识别)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread REPORT_TEMPLATE.md Outdated
Comment on lines +1 to +7
# 实验报告

**实验名称**:数字调制解调实验
**学生姓名**:[你的姓名]
**学号**:[你的学号]
**实验日期**:2026年4月24日
**提交日期**:[提交日期]
**实验名称**:数字调制解调实验
**学生姓名**:王继熠
**学号**:2024280385
**实验日期**:2026年4月23日
**提交日期**:2026年4月23日
Copy link

Copilot AI Apr 23, 2026

Choose a reason for hiding this comment

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

当前仓库的自动评分脚本只会检查是否存在并评分 REPORT.md(见 grading/check_report.py 的文件名列表)。本PR把实验报告内容写进了 REPORT_TEMPLATE.md,但如果没有新增 REPORT.md,报告项会被判定为“未找到实验报告文件”。建议将该内容移到新建的 REPORT.md(或按要求的文件名),并把 REPORT_TEMPLATE.md 恢复为通用模板。

Copilot uses AI. Check for mistakes.
Comment thread TEACHER_GUIDE.md Outdated
- 勾选 `Template repository`(作为模板)

2. 将本地文件推送到远程仓库:
1. 将本地文件推送到远程仓库:
Copy link

Copilot AI Apr 23, 2026

Choose a reason for hiding this comment

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

这里的有序列表出现了两个连续的“1.”(第1步“创建仓库”后紧跟“将本地文件推送到远程仓库”仍标为1),容易让读者误解步骤顺序。建议将第二条改为“2.”,或保持 Markdown 自动编号但在文字中明确步骤序号。

Suggested change
1. 将本地文件推送到远程仓库:
2. 将本地文件推送到远程仓库:

Copilot uses AI. Check for mistakes.
@J1angJJ
Copy link
Copy Markdown

J1angJJ commented Apr 23, 2026

cool

@github-actions
Copy link
Copy Markdown

🤖 自动评分结果

提交者: @Wjaywhy

============================================================
数字调制解调实验 - 自动评分系统
============================================================

1️⃣  环境配置测试 (5分)
  ✅ 环境测试通过: +5分

2️⃣  BPSK调制测试 (25分)
  通过测试: 0/1
  得分: 0/25

3️⃣  QPSK调制测试 (25分)
  通过测试: 0/1
  得分: 0/25

4️⃣  16-QAM调制测试 (20分)
  通过测试: 0/1
  得分: 0/20

5️⃣  实验报告检查 (15分)
  报告得分: 15/15

6️⃣  代码质量检查 (pylint)
  ⚠️ 代码质量一般 (6.88/10): 0分

7️⃣  选做任务加分
  ✅ 解调功能已实现: +10分

============================================================
总分: 30/100
等级: F (不及格)
============================================================

详细评分报告已保存到: grade_report.json


📊 详细测试结果

点击查看BPSK测试详情
============================= test session starts ==============================
platform linux -- Python 3.11.15, pytest-9.0.3, pluggy-1.6.0 -- /opt/hostedtoolcache/Python/3.11.15/x64/bin/python
cachedir: .pytest_cache
rootdir: /home/runner/work/wireless-modulation-experiment/wireless-modulation-experiment
plugins: cov-7.1.0
collecting ... collected 7 items

grading/test_bpsk.py::TestBPSK::test_basic_mapping PASSED                [ 14%]
grading/test_bpsk.py::TestBPSK::test_all_zeros PASSED                    [ 28%]
grading/test_bpsk.py::TestBPSK::test_all_ones PASSED                     [ 42%]
grading/test_bpsk.py::TestBPSK::test_symbol_values PASSED                [ 57%]
grading/test_bpsk.py::TestBPSK::test_random_sequence PASSED              [ 71%]
grading/test_bpsk.py::TestBPSK::test_large_sequence PASSED               [ 85%]
grading/test_bpsk.py::test_constellation_file_exists SKIPPED (BPSK星...) [100%]

========================= 6 passed, 1 skipped in 0.36s =========================

点击查看QPSK测试详情
============================= test session starts ==============================
platform linux -- Python 3.11.15, pytest-9.0.3, pluggy-1.6.0 -- /opt/hostedtoolcache/Python/3.11.15/x64/bin/python
cachedir: .pytest_cache
rootdir: /home/runner/work/wireless-modulation-experiment/wireless-modulation-experiment
plugins: cov-7.1.0
collecting ... collected 9 items

grading/test_qpsk.py::TestQPSK::test_input_length_validation PASSED      [ 11%]
grading/test_qpsk.py::TestQPSK::test_output_length PASSED                [ 22%]
grading/test_qpsk.py::TestQPSK::test_gray_code_mapping PASSED            [ 33%]
grading/test_qpsk.py::TestQPSK::test_unit_energy PASSED                  [ 44%]
grading/test_qpsk.py::TestQPSK::test_four_constellation_points PASSED    [ 55%]
grading/test_qpsk.py::TestQPSK::test_phase_distribution PASSED           [ 66%]
grading/test_qpsk.py::TestQPSK::test_average_power PASSED                [ 77%]
grading/test_qpsk.py::TestQPSK::test_consecutive_pairs PASSED            [ 88%]
grading/test_qpsk.py::test_constellation_file_exists SKIPPED (QPSK星...) [100%]

========================= 8 passed, 1 skipped in 0.34s =========================

点击查看16-QAM测试详情
============================= test session starts ==============================
platform linux -- Python 3.11.15, pytest-9.0.3, pluggy-1.6.0 -- /opt/hostedtoolcache/Python/3.11.15/x64/bin/python
cachedir: .pytest_cache
rootdir: /home/runner/work/wireless-modulation-experiment/wireless-modulation-experiment
plugins: cov-7.1.0
collecting ... collected 9 items

grading/test_qam16.py::TestQAM16::test_input_length_validation PASSED    [ 11%]
grading/test_qam16.py::TestQAM16::test_output_length PASSED              [ 22%]
grading/test_qam16.py::TestQAM16::test_sixteen_constellation_points PASSED [ 33%]
grading/test_qam16.py::TestQAM16::test_iq_component_values PASSED        [ 44%]
grading/test_qam16.py::TestQAM16::test_power_normalization PASSED        [ 55%]
grading/test_qam16.py::TestQAM16::test_gray_code_mapping PASSED          [ 66%]
grading/test_qam16.py::TestQAM16::test_symbol_distribution PASSED        [ 77%]
grading/test_qam16.py::TestQAM16::test_corner_points PASSED              [ 88%]
grading/test_qam16.py::test_constellation_file_exists SKIPPED (16-QA...) [100%]

========================= 8 passed, 1 skipped in 0.39s =========================

点击查看报告检查详情
==================================================
实验报告检查
==================================================
✅ 找到报告文件: REPORT.md

评分详情:
  ✅ 字数达标 (6199字)
  📋 章节完整性: 6/6 (12分)
  ✅ 包含图片引用 (4张)
  ✅ 包含代码示例 (5处)
  ✅ 包含参考文献

报告得分: 15/15

最终报告得分: 15


💡 提示

  • 如果测试未通过,请查看上方的详细错误信息
  • 修改代码后重新提交会触发自动评分
  • 完整评分报告可在 Actions 的 Artifacts 中下载

评分时间: 2026/4/30 19:23:12

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants