Upgrade.timing can't express a toggle that runs on its own schedule per turbine

オープン
#199 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
data

調査の方向性

Start with the Timing TypeAlias in facts.py, which currently allows a shared ToggleSchedule or DataFrame for toggles but a per-turbine mapping only for prepost dates. Then read how the v0 method's toggle handling consumes a two-level (turbine, timestamp) frame, since the request is to let toggle timing take that same shape per turbine. Done means one Upgrade can carry per-turbine toggle frames and the v0 method and its reference-turbine placebo use them without per-turbine Upgrade duplication.

索引モデルが issue の本文から書いたものです。

説明

v1

Upgrade.timing for a toggle accepts one shared ToggleSchedule or one shared frame (Timing: TypeAlias = pd.Timestamp | Mapping[str, pd.Timestamp] | ToggleSchedule | pd.DataFrame in facts.py) — a date can already be given per turbine, but a toggle signal can't. A controller that switches each turbine independently is a normal, often-wanted design (it decorrelates the turbines' states), and the toggle is usually also measured per turbine from each turbine's own parameter writes, so even a nominally shared schedule can need a per-turbine frame wherever one turbine missed a switch.

Today the only way to express this is one Upgrade (and one AnalysisSpec) per turbine, which has knock-on costs:

  • one physical change is no longer expressed as one Upgrade
  • a method that would otherwise process a whole group of turbines together (as the v0 binned method does) repeats its full preprocessing once per turbine instead
  • the group's net uplift can no longer come from the method itself, only from an external combination
  • a method that borrows one turbine's toggle as another (reference) turbine's placebo check gets a different placebo reading per analysis instead of one shared one

Suggestion: let timing be a mapping of turbine to frame too, the way it is already a mapping of turbine to date for a prepost upgrade. The v0 method's own toggle handling already reads a two-level (turbine, timestamp) frame internally, so this closes a gap between the two rather than adding a new shape.

主要言語
Python
スター
29
フォーク
13
平均マージ
1日 6時間
マージ済み PR(30日)
33

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

resgroup/wind-up のほかの issue

resgroup/wind-up の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。