[essreduce] Too many separators are displayed in the FlatDataViewer where one direction has only one dim

Open Beginner friendly
#938 0 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
69/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start by locating FlatDataViewer and reading how it places separators when horizontal has one dimension and vertical has two. Reproduce with the Loki example in the issue; the report says a separator appears at every pixel. Done when separators are limited to the appropriate dimension boundaries in this case.

Written by the indexing model from the issue text.

Description

essreduce

Tried with loki data

FlatDataViewer(data.hist()["loki_detector_0"], horizontal=["pixel"], vertical=["tube", "straw"], figsize=(5, 8), cmax=3, separators='red')

and because horizontal is given only one dim, it makes a separator on every pixel:

Figure 1 (84) Figure 1 (83)
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.