Two ways to leave records out of an analysis, and open questions about Label.withholds

Aperta
#201 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Documentazione
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
python
Ambito
analytics

Direzione di ricerca

Start with Label.withholds and AnalysisSpec.exclude_labels in the wind_up package, and with wind_up.labels.USES, to see how each exclusion reaches the v0 method. The open decision is which mechanism a site-wide label should use, and the maintainers need to settle that before any change. Done means that decision is recorded, the Label docstring says whether a withheld record still counts as running for wake exposure, and the withholds type annotation accepts a plain set under mypy.

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

Descrizione

v1

There are two ways to leave records out of an analysis: Label(withholds={"uplift", ...}) (withholds the record of every turbine carrying the label, references included) and AnalysisSpec.exclude_labels (drops only the subjects' records). Both end up reaching the v0 method as the same kind of exclusion. Nothing says which to reach for, and a label flagging a condition that is true on every turbine at once (e.g. a site-wide curtailment or icing event) could plausibly be meant either way.

Two smaller points on the same field:

  • Label.withholds only names two uses (wind_up.labels.USES = ("uplift", "northing")); it's not stated anywhere whether a withheld record still counts as "running" for another turbine's wake exposure. Worth a sentence in the Label docstring either way.
  • withholds is typed frozenset[str]; passing a plain set (e.g. withholds={"northing"}) works at runtime but fails mypy. AbstractSet[str] or Collection[str] would accept both without changing behaviour.

Related to #188 (a label withholding from every use), but distinct: that one is about covering future uses automatically, this one is about the overlap between Label.withholds and AnalysisSpec.exclude_labels, and the waking question.

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.