Skip to content

feat: Add helper print commands to easily print avaliable devices and plans to user#1501

Merged
tpoliaw merged 7 commits intomainfrom
add_display_command_to_device_and_plan_cache
Apr 24, 2026
Merged

feat: Add helper print commands to easily print avaliable devices and plans to user#1501
tpoliaw merged 7 commits intomainfrom
add_display_command_to_device_and_plan_cache

Conversation

@oliwenmandiamond
Copy link
Copy Markdown
Contributor

@oliwenmandiamond oliwenmandiamond commented Apr 22, 2026

Add small feature to quickly show available devices and plans to user via printing their name from client.

>>> bc.print_devices()
psk1
psj1
dcm
psi2
jgap
fsj1
...

>>> bc.print_plans()
count(detectors, num=None, delay=None, metadata=None)
spec_scan(detectors, spec, metadata=None)
move(moves, group=None)
move_relative(moves, group=None)
set_absolute(movable, value, group=None, wait=None)
set_relative(movable, value, group=None, wait=None)
sleep(time)
wait(group=None, timeout=None)
...

@oliwenmandiamond oliwenmandiamond requested a review from a team as a code owner April 22, 2026 15:34
@oliwenmandiamond oliwenmandiamond changed the title Feat: Add helper show commands to easily print avaliable devices and plans to user feat: Add helper show commands to easily print avaliable devices and plans to user Apr 22, 2026
Copy link
Copy Markdown
Contributor

@tpoliaw tpoliaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think print_plans/print_devices would be more descriptive for what the functions are doing.

Comment thread src/blueapi/client/client.py Outdated
Comment thread src/blueapi/client/client.py Outdated
@oliwenmandiamond oliwenmandiamond changed the title feat: Add helper show commands to easily print avaliable devices and plans to user feat: Add helper print commands to easily print avaliable devices and plans to user Apr 22, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.28%. Comparing base (af06958) to head (7868c0a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1501   +/-   ##
=======================================
  Coverage   95.27%   95.28%           
=======================================
  Files          43       43           
  Lines        3173     3179    +6     
=======================================
+ Hits         3023     3029    +6     
  Misses        150      150           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tpoliaw tpoliaw merged commit de15ec5 into main Apr 24, 2026
19 checks passed
@tpoliaw tpoliaw deleted the add_display_command_to_device_and_plan_cache branch April 24, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants