BlueapiClient devices do not know about child devices until after user uses them
Mantenedores costumam responder em até 1 dia
@ZohebShaikh já está trabalhando nisso.
Desde 8/10/2026.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- python
- Domínio
- api, cli, developer-experience
Direção de pesquisa
Comece pelo caminho de carregamento e cache de dispositivos do BlueapiClient descrito na issue e, em seguida, rastreie como o DeviceManager fornece os dispositivos e os dispositivos filhos. Esclareça se o escopo inclui uma árvore de dispositivos ou repr e atributos reservados. A tarefa deve ser considerada concluída quando os dispositivos filhos estiverem disponíveis para autocompletar imediatamente após o carregamento, sem uma busca anterior.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
BlueapiClient asks blueapi server for all available devices and then caches them. This makes it so autocomplete now works on the terminal making it very handy when composing plans on command line. However, blueapi cannot handle child devices.
Very often, a device will hold a group of other devices / signals and need to be accessed to run plans. For example Motor stages will have x, y, z motor components. pgm devices have child signals/motors for energy.
So a very basic example would be
plans.set_absolute(pgm.energy, 500)
plans.set_absolute(stage.x, 10)
plans.set_absolute(stage.y, 20)
BlueapiClient has no idea these child devices of energy, x, and y exist so the user has to guess what is available.
How it works is if it doesn't exist from the cache, the device is requested from the server and then if it exists, it is then added to cache and then autocomplete now works. However, when loading devices, BlueapiClient should be aware of all devices on the server, including all child devices of a Device, so that automcomplete will work straight away rather than guessing first for all devices.
This is related to https://github.com/DiamondLightSource/dodal/issues/2208 because DeviceManager only provides the higher level devices to blueapi and not the device children so it has no concept of the child devices unless asked explicitly to check for it.
This would vastly improve the user experience using the client if you could print the device tree or the device __repr__ to show it (similiar to a plan __repr__ displays the plan signature) to know what is available to work with and that auto complete for child devices works from the start.
As we are going to have name clashes with device attributes and what blueapi needs, we should probably reserve in dodal device attributes so that they never have a model signal / sub device. Similar to how ophyd-async reserves bluesky key words. This could be done inside DeviceManager. When it loads in a device, it checks there are no signals / child devices with model as an attribute.
- Linguagem predominante
- Python
- Estrelas
- 14
- Forks
- 14
- Merge médio
- 2d 23h
- PRs com merge (30d)
- 27
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de DiamondLightSource/blueapi
-
support: low
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
DiamondLightSource/blueapi#1772 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
deployment dev-environment
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
DiamondLightSource/blueapi#1623 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Cannot Install SoftiocAbertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
DiamondLightSource/blueapi#1605 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
DiamondLightSource/blueapi#1494 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 45/100
DiamondLightSource/blueapi#1788 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de DiamondLightSource/blueapi
Issues semelhantes
-
flaky: test_fire_returns_thread_per_http_entry_on_head waits 5 s per dispatch worker on busy shardsAbertastatus/accepted type/bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
microsoft/apm#5309 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug vector-store
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
EverMind-AI/Raven#1413 ·
Mantenedores costumam responder em até 1 dia
-
Tests: parallel pyinstallcheck runs oversubscribe the machine through nested TBB and BLAS poolsTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 86/100
ACCESS-NRI/containerised-environments-infra#143 ·
Mantenedores costumam responder em até 2 dias