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 ""
|
||||
|
||||
Reference in New Issue
Block a user