Skip to content

完成BPSK和QPSK调制实现#28

Open
WRX1234-code wants to merge 6 commits into
jwentong:mainfrom
WRX1234-code:main
Open

完成BPSK和QPSK调制实现#28
WRX1234-code wants to merge 6 commits into
jwentong:mainfrom
WRX1234-code:main

Conversation

@WRX1234-code
Copy link
Copy Markdown

我完成了任务1(BPSK调制)
我完成了任务2(QPSK调制)
生成了星座图

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

🤖 自动评分结果

提交者: @WRX1234-code

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

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

2️⃣  BPSK调制测试 (25分)
  通过测试: 0/7
  评分规则: 算法正确性15分 + 星座图10分
  得分: 0/25

3️⃣  QPSK调制测试 (25分)
  通过测试: 8/9
  评分规则: 算法正确性15分 + 星座图10分
  得分: 15/25

4️⃣  16-QAM调制测试 (20分)
  通过测试: 8/9
  评分规则: 算法正确性12分 + 星座图8分
  得分: 12/20

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

6️⃣  代码质量检查 (pylint)
  ❌ 代码质量较差 (2.59/10): -10分

7️⃣  选做任务加分
  ℹ️ 未完成选做任务: 0分

============================================================
总分: 22/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 FAILED                [ 14%]
grading/test_bpsk.py::TestBPSK::test_all_zeros FAILED                    [ 28%]
grading/test_bpsk.py::TestBPSK::test_all_ones FAILED                     [ 42%]
grading/test_bpsk.py::TestBPSK::test_symbol_values FAILED                [ 57%]
grading/test_bpsk.py::TestBPSK::test_random_sequence FAILED              [ 71%]
grading/test_bpsk.py::TestBPSK::test_large_sequence FAILED               [ 85%]
grading/test_bpsk.py::test_constellation_file_exists SKIPPED (BPSK星...) [100%]

=================================== FAILURES ===================================
_________________________ TestBPSK.test_basic_mapping __________________________
grading/test_bpsk.py:23: in test_basic_mapping
    assert len(symbols) == len(bits), "输出符号数量应等于输入比特数量"
E   AssertionError: 输出符号数量应等于输入比特数量
E   assert 2 == 4
E    +  where 2 = len(array([-0.70710678+0.70710678j, -0.70710678+0.70710678j]))
E    +  and   4 = len(array([0, 1, 0, 1]))
___________________________ TestBPSK.test_all_zeros ____________________________
grading/test_bpsk.py:34: in test_all_zeros
    assert np.allclose(np.real(symbols), 1), "全0比特应映射到全+1符号"
E   AssertionError: 全0比特应映射到全+1符号
E   assert False
E    +  where False = <function allclose at 0x7fd724526230>(array([0.70710678, 0.70710678, 0.70710678, 0.70710678, 0.70710678]), 1)
E    +    where <function allclose at 0x7fd724526230> = np.allclose
E    +    and   array([0.70710678, 0.70710678, 0.70710678, 0.70710678, 0.70710678]) = <function real at 0x7fd723b9eef0>(array([0.70710678+0.70710678j, 0.70710678+0.70710678j,\n       0.70710678+0.707
点击查看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.41s =========================

点击查看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.42s =========================

点击查看报告检查详情
==================================================
实验报告检查
==================================================
❌ 未找到实验报告文件 (REPORT.md)
扣分: -15分

最终报告得分: 0


💡 提示

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

评分时间: 2026/5/4 12:14:18

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

🤖 自动评分结果

提交者: @WRX1234-code

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

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

2️⃣  BPSK调制测试 (25分)
  通过测试: 6/7
  评分规则: 算法正确性15分 + 星座图10分
  得分: 15/25

3️⃣  QPSK调制测试 (25分)
  通过测试: 8/9
  评分规则: 算法正确性15分 + 星座图10分
  得分: 15/25

4️⃣  16-QAM调制测试 (20分)
  通过测试: 8/9
  评分规则: 算法正确性12分 + 星座图8分
  得分: 12/20

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

6️⃣  代码质量检查 (pylint)
  ❌ 代码质量较差 (3.11/10): -10分

7️⃣  选做任务加分
  ℹ️ 未完成选做任务: 0分

============================================================
总分: 37/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.43s =========================

点击查看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.40s =========================

点击查看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.41s =========================

点击查看报告检查详情
==================================================
实验报告检查
==================================================
❌ 未找到实验报告文件 (REPORT.md)
扣分: -15分

最终报告得分: 0


💡 提示

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

评分时间: 2026/5/4 12:21:47

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

🤖 自动评分结果

提交者: @WRX1234-code

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

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

2️⃣  BPSK调制测试 (25分)
  通过测试: 7/7
  评分规则: 算法正确性15分 + 星座图10分
  得分: 25/25

3️⃣  QPSK调制测试 (25分)
  通过测试: 9/9
  评分规则: 算法正确性15分 + 星座图10分
  得分: 25/25

4️⃣  16-QAM调制测试 (20分)
  通过测试: 9/9
  评分规则: 算法正确性12分 + 星座图8分
  得分: 20/20

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

6️⃣  代码质量检查 (pylint)
  ❌ 代码质量较差 (3.11/10): -10分

7️⃣  选做任务加分
  ℹ️ 未完成选做任务: 0分

============================================================
总分: 65/100
等级: D (及格)
============================================================

详细评分报告已保存到: 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 PASSED              [100%]

============================== 7 passed in 0.49s ===============================

点击查看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 PASSED              [100%]

============================== 9 passed in 0.42s ===============================

点击查看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 PASSED             [100%]

============================== 9 passed in 0.44s ===============================

点击查看报告检查详情
==================================================
实验报告检查
==================================================
❌ 未找到实验报告文件 (REPORT.md)
扣分: -15分

最终报告得分: 0


💡 提示

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

评分时间: 2026/5/4 12:45:32

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

🤖 自动评分结果

提交者: @WRX1234-code

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

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

2️⃣  BPSK调制测试 (25分)
  通过测试: 7/7
  评分规则: 算法正确性15分 + 星座图10分
  得分: 25/25

3️⃣  QPSK调制测试 (25分)
  通过测试: 9/9
  评分规则: 算法正确性15分 + 星座图10分
  得分: 25/25

4️⃣  16-QAM调制测试 (20分)
  通过测试: 9/9
  评分规则: 算法正确性12分 + 星座图8分
  得分: 20/20

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

6️⃣  代码质量检查 (pylint)
  ❌ 代码质量较差 (3.11/10): -10分

7️⃣  选做任务加分
  ℹ️ 未完成选做任务: 0分

============================================================
总分: 65/100
等级: D (及格)
============================================================

详细评分报告已保存到: 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 PASSED              [100%]

============================== 7 passed in 0.44s ===============================

点击查看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 PASSED              [100%]

============================== 9 passed in 0.40s ===============================

点击查看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 PASSED             [100%]

============================== 9 passed in 0.41s ===============================

点击查看报告检查详情
==================================================
实验报告检查
==================================================
❌ 未找到实验报告文件 (REPORT.md)
扣分: -15分

最终报告得分: 0


💡 提示

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

评分时间: 2026/5/4 13:31:27

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

🤖 自动评分结果

提交者: @WRX1234-code

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

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

2️⃣  BPSK调制测试 (25分)
  通过测试: 7/7
  评分规则: 算法正确性15分 + 星座图10分
  得分: 25/25

3️⃣  QPSK调制测试 (25分)
  通过测试: 9/9
  评分规则: 算法正确性15分 + 星座图10分
  得分: 25/25

4️⃣  16-QAM调制测试 (20分)
  通过测试: 9/9
  评分规则: 算法正确性12分 + 星座图8分
  得分: 20/20

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

6️⃣  代码质量检查 (pylint)
  ❌ 代码质量较差 (3.11/10): -10分

7️⃣  选做任务加分
  ℹ️ 未完成选做任务: 0分

============================================================
总分: 65/100
等级: D (及格)
============================================================

详细评分报告已保存到: 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 PASSED              [100%]

============================== 7 passed in 0.45s ===============================

点击查看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 PASSED              [100%]

============================== 9 passed in 0.42s ===============================

点击查看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 PASSED             [100%]

============================== 9 passed in 0.44s ===============================

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

评分详情:
  ⚠️ 字数不足 (0字,建议至少1000字)
  📋 章节完整性: 0/6 (0分)
  ⚠️ 图片引用不足 (0张,建议至少3张)

报告得分: 0/15

最终报告得分: 0


💡 提示

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

评分时间: 2026/5/4 13:39:20

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

🤖 自动评分结果

提交者: @WRX1234-code

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

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

2️⃣  BPSK调制测试 (25分)
  通过测试: 7/7
  评分规则: 算法正确性15分 + 星座图10分
  得分: 25/25

3️⃣  QPSK调制测试 (25分)
  通过测试: 9/9
  评分规则: 算法正确性15分 + 星座图10分
  得分: 25/25

4️⃣  16-QAM调制测试 (20分)
  通过测试: 9/9
  评分规则: 算法正确性12分 + 星座图8分
  得分: 20/20

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

6️⃣  代码质量检查 (pylint)
  ❌ 代码质量较差 (3.11/10): -10分

7️⃣  选做任务加分
  ℹ️ 未完成选做任务: 0分

============================================================
总分: 80/100
等级: B (良好)
============================================================

详细评分报告已保存到: 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 PASSED              [100%]

============================== 7 passed in 0.44s ===============================

点击查看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 PASSED              [100%]

============================== 9 passed in 0.41s ===============================

点击查看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 PASSED             [100%]

============================== 9 passed in 0.43s ===============================

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

评分详情:
  ✅ 字数达标 (4723字)
  📋 章节完整性: 6/6 (12分)
  ⚠️ 图片引用不足 (1张,建议至少3张)
  ✅ 包含代码示例 (1处)
  ✅ 包含参考文献

报告得分: 15/15

最终报告得分: 15


💡 提示

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

评分时间: 2026/5/4 13:50:22

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.

1 participant