[ESSSPECTROSCOPY] The containers don't record the vertical axis used for the sample-table rotation

Open Beginner friendly
#935 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
64/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
data

Research direction

Start by locating rotate_to_sample_table_momentum_transfer and how its output container stores incident_beam as a scalar coordinate. Check the related tests for the rotation and output metadata. Add the gravity vector as a scalar coordinate on the output container; done when readers can identify the gravity used, with a test covering it.

Written by the indexing model from the issue text.

Description

essspectroscopy

rotate_to_sample_table_momentum_transfer rotates about -gravity/|gravity| from the GravityVector parameter, but no output container carries the gravity vector. A reader has to assume the default, and a run made with a different gravity vector can't be told apart.

Suggestion: keep gravity as a scalar coordinate, as incident_beam is.

Checked on scipp 26.11.0, scippneutron 26.10.0, essreduce 26.11.1, essspectroscopy 26.11.3.

Dominant language
Python
Stars
3
Forks
6
Avg merge
2d 7h
Merged PRs (30d)
36

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.