[ESSSPECTROSCOPY] `save_sqw` writes a file Horace refuses when an axis has one bin
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
Research direction
Start in ess/bifrost/io/sqw.py at _make_dnd_metadata (around line 380) and trace how single_bin_defines_iax and dax are set for axes with one bin. Compare the generated metadata for u3: 1 and u3: 2, then check for tests covering save_sqw and read_sqw. Done when Horace accepts a file with a one-bin axis and the metadata lists only the plot axes.
Written by the indexing model from the issue text.
Description
With bin_sizes={'u1': 40, 'u2': 40, 'u3': 1, 'u4': 40}, Horace 4.2.0's read_sqw refuses the file: "number of display axes elements (4) have to be equal to the number of projection axes (3)". _make_dnd_metadata (ess/bifrost/io/sqw.py:380) sets single_bin_defines_iax true on every axis and dax to all four axes, whatever the bin counts. With 'u3': 2 Horace reads the file.
Suggestion: write dax over the plot axes only.
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
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from scipp/ess
-
essreduce
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Maintainers usually reply within 1 day
-
[ESSSPECTROSCOPY] The containers don't record the vertical axis used for the sample-table rotationOpenessspectroscopy
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
essspectroscopy
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
essspectroscopy
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
essreduce
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
Similar issues
-
[PORT] A2A: map audio file parts to audio content and ignore MIME parameters (TS→Py)Possibly taken A pull request linked to this issue is open or already merged. Openarea-a2a bug port python
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
strands-agents/harness-sdk#6697 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
TigreGotico/orthography2ipa#2950 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
TigreGotico/text2spoken#929 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Unstructured-IO/unstructured#4876 ·
Maintainers usually reply within 6 days