|
|
8 stundas atpakaļ | |
|---|---|---|
| .. | ||
| README.md | 2 nedēļas atpakaļ | |
| __init__.py | 3 nedēļas atpakaļ | |
| analyze.py | 3 nedēļas atpakaļ | |
| angle_bins.py | 2 nedēļas atpakaļ | |
| audit_wave_metadata.py | 2 nedēļas atpakaļ | |
| availability.py | 3 nedēļas atpakaļ | |
| bin_plot.py | 2 nedēļas atpakaļ | |
| bins_common.py | 2 nedēļas atpakaļ | |
| cn_names.py | 2 nedēļas atpakaļ | |
| common_residual_analysis.py | 8 stundas atpakaļ | |
| event_bins.py | 2 nedēļas atpakaļ | |
| event_scan.py | 3 nedēļas atpakaļ | |
| event_shape_audit.py | 2 nedēļas atpakaļ | |
| event_trend_summary.py | 8 stundas atpakaļ | |
| extract_from_db.py | 3 nedēļas atpakaļ | |
| finalize_pseudo_online.py | 8 stundas atpakaļ | |
| indicator_features.py | 3 nedēļas atpakaļ | |
| local_evolution_analysis.py | 8 stundas atpakaļ | |
| lookback_scan.py | 3 nedēļas atpakaļ | |
| make_event_dashboard.py | 8 stundas atpakaļ | |
| make_report.py | 2 nedēļas atpakaļ | |
| make_spring_dashboard.py | 8 stundas atpakaļ | |
| make_table.py | 2 nedēļas atpakaļ | |
| make_trend_dashboard.py | 8 stundas atpakaļ | |
| make_unit_shape_timeline.py | 8 stundas atpakaļ | |
| metric_trace.py | 2 nedēļas atpakaļ | |
| new_unit_events.py | 8 stundas atpakaļ | |
| one_page.py | 2 nedēļas atpakaļ | |
| pair_plot.py | 2 nedēļas atpakaļ | |
| pseudo_online_detection.py | 8 stundas atpakaļ | |
| repair_compare.py | 3 nedēļas atpakaļ | |
| run_segments.py | 2 nedēļas atpakaļ | |
| scan_bins.py | 2 nedēļas atpakaļ | |
| segment_compare.py | 2 nedēļas atpakaļ | |
| shape_analysis.py | 3 nedēļas atpakaļ | |
| spring_compare.py | 8 stundas atpakaļ | |
| summarize_pseudo_online.py | 8 stundas atpakaļ | |
| summary_features.py | 2 nedēļas atpakaļ | |
| trend.py | 3 nedēļas atpakaļ | |
| watch.py | 2 nedēļas atpakaļ | |
| 伪在线局部故障检测方案.md | 8 stundas atpakaļ | |
| 基线模板待优化.md | 8 stundas atpakaļ | |
| 季节交替跨机组证据.md | 8 stundas atpakaļ | |
| 观察记录.md | 2 nedēļas atpakaļ | |
从 wave_file + wave_sample_one(每文件一个首周期)抽取单周期功图特征,用于找气阀/活塞故障特征。只读、抽样、不建模。
级配(现场确认):一级=2/4/6 缸、二级=3/5 缸、三级=1 缸;气体从 2/4/6 进,1 缸压缩后出,压力逐级升高。
cd backend
python indicator_features/extract_from_db.py \
--unit 7 --cylinders 二 四 六 --sides 盖侧 轴侧 \
--start 2026-05-01 --end 2026-05-22 --per-day 3 \
--output cache/indicator/7_1stage_valve_202605.csv
--per-day N:每个测点每天最多取 N 个文件(均匀取样),控制拉取量。对照分析(同级缸间 / 同缸双腔 / 本缸自身基线,含通道 QC):
python indicator_features/analyze.py cache/indicator/7_1stage_valve_202605.csv
p_suction、p_discharge、p_span、pressure_ratiosuction_frac、discharge_fraccompression_slope、expansion_slope、corner_sharpnessindicated_work、imep(注意:需物理相位锚定,当前不可靠)∮P dV 目前不可用;需用键相/相位对齐后再算。见 观察记录.md。
整周期统计会互相抵消,故障可能只在某个小角度区间。把每周期按键相 0-360° 切成 36 个 10° 箱,箱内直接在原始点上算 23 个特征(不重采样),再做同点前后对比;另外每周期还算 13 个阀时序特征。
cn_names.py。# 0) 看某机组的 rpm>0 运行段(开机表按数据本身统计)
python indicator_features/run_segments.py --unit 7
# 1) 逐周期逐箱抽特征(只读,rpm>0;--bin-deg 可选 5/10/15/20)
python indicator_features/angle_bins.py --unit 7 \
--start 2025-04-30 --end 2026-06-07 --per-day 3 \
--output cache/indicator/bins/7_all.csv
# 2) 同点前后对比(--normalize span 压工况;--z 变化阈值;前段取事件前最近运行段)
python indicator_features/event_bins.py --unit 7 \
--csv cache/indicator/bins/7_all.csv --normalize span --z 2 \
--pre-days 6 --post-days 30 --max-gap 45 --trend-days 60 \
--out cache/indicator/bins/event_final_7.csv
# 3) 跨事件候选汇总(事件×测点×角度箱 合并指标;含“整体/局部”范围列)
python indicator_features/summary_features.py \
--csv cache/indicator/bins/event_final_7.csv cache/indicator/bins/event_final_8.csv cache/indicator/bins/event_final_9.csv \
--threshold 2 --out cache/indicator/bins/summary_final.csv
# 4) 生成中文交付(CSV + 特征汇总.md)
cd indicator_features && python3 make_report.py && cd ..
# 5) 单指标全时间轴演化轨迹(查事件前是否有长期渐变)
python indicator_features/metric_trace.py --csv cache/indicator/bins/7_all.csv \
--unit 7 --cylinder 二 --side 盖侧 --bin-start 140 --metric std \
--out cache/indicator/bins/plots/7号_二缸盖侧_140-150_波动随时间.png
# 6) 单点 停机前/开机后 三联简图(左 平均压力 / 中 波动 / 右 关注段随时间)
python indicator_features/pair_plot.py --csv cache/indicator/bins/7_all.csv \
--unit 7 --date 2026-05-21 --cylinder 二 --side 盖侧 --highlight 140-150 \
--series-metric std --out cache/indicator/bins/plots/7号_2026-05-21_二缸盖侧_140-150.png
--normalize span:压力幅度类指标除以本周期压力幅度,压掉负荷/压比变化。cache/indicator/bins/results_cn/。