[esssans] Better interface for defining wavelength bins and bands

Đang mở
#779 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
data

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
3
Fork
6
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
35

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của scipp/ess

Tất cả issue của scipp/ess

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.