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

Aperta
#199 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
data

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
29
Fork
13
Merge medio
1g 6h
PR unite (30g)
33

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di resgroup/wind-up

Tutte le issue di resgroup/wind-up

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.