fix: 拆除后工参改用拆除日下一周的周一
停闭后一周的指标周三就有、下一周周一的工参周四才取,中间这一天周边站先按拆除前工参算,并在结果说明里写明。
This commit is contained in:
@@ -131,7 +131,7 @@ def evaluate_site(
|
||||
wanted_after = after_monday(group.removal, today)
|
||||
if after is None and wanted_after is not None:
|
||||
notes.append(f"{wanted_after} 的工参没取到,周边站按拆除前工参算")
|
||||
# 拆除后工参是拆除当周周一的,待拆小区通常还在里面;算周边站和取指标时去掉它们。
|
||||
# 拆掉的小区有时还留在拆除后工参里;算周边站和取指标时去掉它们。
|
||||
own = {cell["cgi"] for cell in targets} | set(group.cgis)
|
||||
pool = [cell for cell in (gongcan.cells(city, after.day) if after is not None and after.day != before_day else before_cells) if cell["cgi"] not in own]
|
||||
center = target_center(targets)
|
||||
@@ -158,6 +158,10 @@ def evaluate_site(
|
||||
for label, period, month in (("停闭前", before_period, before_month), ("停闭后", after_period, after_month)):
|
||||
if period is not None and period.month is None:
|
||||
notes.append(f"{label}的 4G MR 用 {month:%Y-%m} 的月数据,平台要到 {ready_day(month_span(month)[1])} 才有,4G 小区的 MR 暂时空着")
|
||||
if after is None and wanted_after is None and after_window is not None:
|
||||
# 停闭后一周的指标周三就有,下一周周一的工参要到周四才取,中间差一天。
|
||||
later = monday_of(group.removal) + timedelta(days=7)
|
||||
notes.append(f"拆除后工参用 {later} 的,要到 {ready_day(later)} 才取,周边站先按拆除前工参算")
|
||||
by_site: dict[str, list[dict]] = {}
|
||||
for cell in pool:
|
||||
name = cell.get("cell_name") or ""
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""评估取数。
|
||||
|
||||
工参:本系统的工参快照(CellData_4G/5G),每周一一份。拆除前用拆除日上一周的周一,拆除后用拆除日当周的周一;
|
||||
工参:本系统的工参快照(CellData_4G/5G),每周一一份。拆除前用拆除日上一周的周一,拆除后用拆除日下一周的周一;
|
||||
库里还没有的周一用提交人的大数据平台凭证经 OpenCode 补取,本系统账号没有凭证时借号池里的账号。
|
||||
指标从即席查询按小区清单取,一次取一周(周一到周日):
|
||||
4G 流量、质量、扇区、频段取「[管理视图]重要场景-小区周粒度」,4G 的 MR 取「MR报表_小区粒度_月」(只有月数据);
|
||||
|
||||
Reference in New Issue
Block a user