scipp / scipp/tof

Dashboard improvements: add buttons to clear all choppers/detectors

Open
#126 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Could be useful to have buttons to clear all choppers/detectors in one go.
Note that when implementing this, we porbably also want to cleanup any event connections from the widgets.
So when removing a chopper widget, we need to unobserve_all() (or the button._click_handlers.callbacks = [] equivalent for buttons).

Also, by default, an instrument is loaded (Odin).
There should be an option in the dropdown menu to make an empty instrument that would clear everything and start fresh.

Contributor guide

Open the contributing guide

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.

Research direction

Start by locating the dashboard code that creates and removes chopper and detector widgets, then inspect the instrument dropdown that loads Odin. Done means the dashboard can clear all choppers and detectors, removes their event connections, and offers an empty instrument option that starts with everything cleared.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.