[esssans] Better interface for defining wavelength bins and bands

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
python
領域
data

調査の方向性

Start by reading the existing WavelengthBins and WavelengthBands definitions and the sc.linspace usage described in the issue. The issue presents several competing interface ideas but does not identify files or tests; clarify the intended design with maintainers before starting. Done means an agreed interface for defining wavelength bins and bands, with behavior that matches that decision.

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

説明

esssans

Currently, we were defining the bands as a 1d variable with N+1 edges, where N is the number of bands that we want to have: sc.linspace("wavelength", 1.0, 13.0, 11, unit="angstrom").

It's a bit of a weird interface as the dimension name is wavelength, but it results in data that has a dimension band of size N.

Claude suggested that WavelengthBands should just be tuples of indices that index into the WavelengthBins. I'm not sure I like that so much...

I myself thought that maybe if we wish to have bands, we could give WavelengthBins as a DataGroup instead that contains bands. Then we combine all the entries in the group to construct a single set of wavelength bins. The bands would be each entry in the group.

But as you say, this could be a follow-up.

Originally posted by @nvaytet in https://github.com/scipp/ess/pull/726#discussion_r4183870136

主要言語
Python
スター
3
フォーク
6
平均マージ
2日 13時間
マージ済み PR(30日)
35

環境構築

はじめの一歩

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

scipp/ess のほかの issue

scipp/ess の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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