[ESSREDUCE] Mapping over components duplicates their shared transformation trunk
Maintainer thường phản hồi trong vòng 1 ngày
@SimonHeybrock đang làm issue này rồi.
Từ ngày 26/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Problem
Workflows that handle several components of one kind map over them:
wf[EmptyDetector[SampleRun]] = (
wf[EmptyDetector[SampleRun]]
.map({NeXusName[NXdetector]: names})
.reduce(func=merge_triplets)
)
The map copies the full subgraph per component, including the loading and processing of each component's depends_on chain. The chains usually share a common trunk. On BIFROST all 45 triplets (and the elastic monitor and the analyzers) end in the same links:
channel_i_j_*/transformations/... per triplet (5 links, via analyzer)
channel_i_arm/transformations/channel_i_arm_r0 shared by the 5 triplets of channel i
detector_tank/transformations/tank_angle shared by all, NXlog (a4)
sample_position/transformations/beam_axis shared by all, static
The graph has no node for the shared part. Each branch loads tank_angle from the file again, applies the time interval and the time filter to its own copy, and builds its own transformation. Consequences:
- No single node for a quantity of the shared trunk.
InstrumentAngle(a4) is one value for all detectors, but the detector chains exist only inside the mapped subgraph, so there is no single detector chain to take it from. scipp/ess#807 (for scipp/esslivedata#1318) works around this:extract_instrument_anglereads the angle from the elastic monitor's chain, which is not mapped. This relies on BIFROST having exactly one component on the tank that is not mapped. - Live data cannot replace a shared link after the map. esslivedata replaces moving-axis links with the latest stream value by inserting a provider for
NeXusTransformationChain[Component, SampleRun]. Once the map has copied the chain provider into every branch, an inserted provider has no effect on the branches.BifrostWorkflowmaps in its constructor, so a user of that workflow cannot patch the detector chains. The patch also has to be repeated for every component type whose chain passes through the link (detectors, monitors, analyzers). - Redundant work. The same log is read and processed once per branch, 45 times on BIFROST.
The same applies to any instrument with a moving component shared by several mapped components, e.g. a detector carriage carrying several banks.
Questions
- Should shared links be represented once in the graph rather than once per component? If so, at what level: per NeXus path, per chain prefix, or something else?
- Does scipp/ess#802 (BIFROST workflow without map-reduce) remove the problem for BIFROST? Does it remain for other workflows that map over components?
- Are there cases where branches must not share a link, e.g. different time filters per component?
Context: scipp/esslivedata#1427.
- 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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của scipp/ess
-
essreduce
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[ESSSPECTROSCOPY] The containers don't record the vertical axis used for the sample-table rotationĐang mởessspectroscopy
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
essspectroscopy
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
essspectroscopy
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[essreduce] A chopper with no `beam_position` is silently placed at 0°Có thể đã có người làm @TTsangSC đã nhận 2 ngày trước. Đang mởessreduce
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
scipp/ess#923 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Test: to_hijri() accepts datetime.datetime and uses only the date partCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởgood first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
omarelshamy25x/shamy-hijri#63 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
polish
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scoresCó thể đã có người làm @AshutoshSingh840 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
UKGovernmentBEIS/control-arena#992 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
mvalentsev/awesome-free-ai-coding#70 ·
Maintainer thường phản hồi trong vòng 1 ngày