Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

ess.dream: mantle DETECTOR_BANK_SIZES has counter and strip swapped

Open Beginner friendly
#765 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
data

Research direction

Start in ess.dream.workflows and inspect DETECTOR_BANK_SIZES, comparing its dimension order with the DREAM detector ICD and the geometry file named in the issue. Swap the final counter and strip entries, then verify that folded detector ids preserve neighbouring strips along z and the counter relationship described in the issue.

Written by the indexing model from the issue text.

Description

DETECTOR_BANK_SIZES in ess.dream.workflows folds the mantle as

{"wire": 32, "module": 5, "segment": 6, "strip": 256, "counter": 2}

but the DREAM detector ICD (ESS-5462547, section 4.4.3) defines pixel = 256·(60·wire + 12·MU + 2·cassette + counter) + strip + 1, i.e. C-order (wire, module, segment, counter, strip). The geometry file (geometry-dream-no-shape-2026-06-09.nxs) agrees with the ICD: consecutive ids are neighbouring strips along z, and id + 256 is the other counter.

With the current order, folded strip jumps from z = +1078 mm back to -1091 mm at index 128, and counter is strip parity (adjacent strips 13 mm apart in z, same azimuth). Positions are folded with the same order, so anything that only uses coordinates is unaffected; anything selecting or labelling by strip/counter is not.

Fix: swap the last two entries.

Found while fixing the live-data logical views in scipp/esslivedata (they no longer use this dict).

Dominant language
Python
Stars
2
Forks
5
Avg merge
4d 16h
Merged PRs (30d)
21

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from scipp/ess

All issues in scipp/ess

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.