Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Better support for operations on `option[Vector[...]] `

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

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

評価

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

調査の方向性

まず、vector.awk、mask、cross を使って提供された Python の例を再現し、その後、option 型が vector 操作を通じてどのように表現され、伝播するかを追跡します。観測された型と期待される型を比較します。cross などの操作の後も外側の option が Vector レコードの外側に残れば完了です。

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

説明

bug
Vector Version

0.10.0

Python Version

3.10.7

OS / Environment

Linux (Ubuntu 22.04)
Conda-provisioned Python

Describe the bug

Outer options become inner-options after operations on vectors:

>>> x = vector.awk([{"x": 1, "y": 0, "z": 0}])
>>> y = vector.awk([{"x": 0, "y": 1, "z": 0}])
>>> x.cross(y).type
1 * Vector3D["x": int64, "y": int64, "z": int64]
>>> x.mask[[False]].cross(y).type
1 * Vector3D["x": ?int64, "y": ?int64, "z": ?int64]
Steps to Reproduce

Wrap a vector in an option type, and then operate on it e.g. with cross.

Expected Results

The option should survive outside the record.

Observed Results

The option moves inside the record.

Relevant log output

No response

主要言語
Python
スター
102
フォーク
45
平均マージ
5時間 54分
マージ済み PR(30日)
3

環境構築

はじめの一歩

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

scikit-hep/vector のほかの issue

scikit-hep/vector の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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