feat(review): 核对包改成医生读得懂;资料库超声一路只留给 agent 的参数
- ceus:灌注指标改为对病灶去暗区(roi_perf)和紫圈(roi_pan)两组算,roi_all 指标删除; D1–D4 仍要 roi_all、roi_perf 两条都过才定位(负责人 2026-10-17:医生要正常区与病灶对比看) - build/library:tic.json 只出两组 11 个指标与 7 个槽位的视频时间;医生截图挪进 ultrasound/keyframes/key.png,UltrasoundRoute 去掉 key_image、keyframes 多一个 key - review:TIC参数.csv 取代 TIC结果.csv;问题清单按原因对照表写成大白话,对照表外的原因报错; 程序原文进 snapshot/问题清单_原文.csv;说明.pdf 整份重写为合作者口吻 - 文档:结构.md、医生核对包、装配两个库、CEUS定量 任务书 04。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -78,7 +78,7 @@ def test_visibility_sex_and_age_only_in_clinical_route(tmp_path: Path) -> None:
|
||||
assert files == [
|
||||
"clinical/clinical.json",
|
||||
"mr/report.txt",
|
||||
"ultrasound/key.png",
|
||||
"ultrasound/keyframes/key.png",
|
||||
"ultrasound/report.txt",
|
||||
]
|
||||
clinical = json.loads((case_dir / "clinical/clinical.json").read_text(encoding="utf-8"))
|
||||
@@ -195,7 +195,7 @@ def test_key_image_pixels_kept_and_text_chunk_dropped(tmp_path: Path) -> None:
|
||||
with Image.open(source) as original:
|
||||
assert original.info.get("PatientName") == "should-not-survive"
|
||||
original_mode, original_pixels = original.mode, original.tobytes()
|
||||
copied = read_ultrasound(summary.library_dir, alias).key_image
|
||||
copied = read_ultrasound(summary.library_dir, alias).keyframes["key"]
|
||||
with Image.open(copied) as image:
|
||||
assert image.mode == original_mode
|
||||
assert image.tobytes() == original_pixels
|
||||
@@ -282,7 +282,7 @@ def test_key_image_one_bit_kept_as_is(tmp_path: Path) -> None:
|
||||
library_root = tmp_path / "library"
|
||||
(library_dir,) = list(library_root.iterdir())
|
||||
by_case = {r.case_no: r.alias for r in read_aliases(tmp_path / "answers" / library_dir.name)}
|
||||
copied = read_ultrasound(library_dir, by_case["002"]).key_image
|
||||
copied = read_ultrasound(library_dir, by_case["002"]).keyframes["key"]
|
||||
with Image.open(copied) as image:
|
||||
assert image.mode == "1"
|
||||
assert image.tobytes() == source.tobytes()
|
||||
|
||||
Reference in New Issue
Block a user