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

Abierto
#201 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
20/100
Tipo de issue
Documentación
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
python
Área
analytics

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
29
Forks
13
Merge medio
1 d 6 h
PR fusionados (30 d)
33

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de resgroup/wind-up

Todos los issues de resgroup/wind-up

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.