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

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
活発
技術スタック
python
領域
analytics

調査の方向性

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.

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

説明

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.

主要言語
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 を短くまとめたダイジェスト。