`CombinedSlicer` retains range selection when switching to single-handle
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 79/100
Research direction
The reproducer points to CombinedSlicer in plopp.widgets.slicing. Read its mode toggle and value handling, then run the reproducer and check the relevant slicer tests. The issue is fixed when switching to single-handle mode makes slicer.value report (0, 0) while slicer.int_slicer.value remains 0.
Written by the indexing model from the issue text.
Description
Switching from the slice handle to single entry handle does sometimes not update the selected range.
Here is a minimal reproducer:
import scipp as sc
from plopp.widgets.slicing import CombinedSlicer
slicer = CombinedSlicer(
dim="x", size=2, coord=sc.arange("x", 2, unit=None)
)
print(slicer.value) # (0, 1)
# Equivalent to clicking the single-handle mode button.
slicer.slider_toggler.value = "-o-"
print(slicer.int_slicer.value) # 0: displayed single index
print(slicer.value) # (0, 1): expected (0, 0)
- Dominant language
- Python
- Stars
- 12
- Forks
- 6
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 5
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/plopp
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
-
Tool `click` method does not work with button=2Possibly taken @jokasimr claimed this 101 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Matplotlib's plt.show() does not workPossibly taken @nvaytet claimed this 77 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
help wanted
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
CI flake: test-windows times out spawning Node in tests/test_antigravity_node_hooks.py (develop red)Openarea/ci P2
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days
-
benchmark
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
mozilla-ai/cq#601 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
intcomma returns exponential notation for large floatsPossibly taken @Omarinho12345 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
python-humanize/humanize#521 ·
Maintainers usually reply within 1 day