-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update prettystr and reduce the number of options when tab-to-completing #13
Conversation
…ict the options to signals and the read method
…mvr bluesky.plan_stubs. I also added move and move_relative as aliases to mv and mvr with more descriptive names
@Jiemin-Li , @wen-hu sorry for the new pushes but I decided to extend the number of built-in plans loaded to all of them. I also added mv and mvr, I also wanted to add some non-abbreviated versions so I went with move, rel_move and relative_move as this matches the naming convention for built-in scans. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes are good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a good idea to take the pretty_print out from Devices/Signal so that we can use it anywhere.
This PR re-factors the
PrettyStr
class into two:PrettyStrForDevices
, andPrettyStrForSignals
. The first is used when the ophyd object in question has childsignals
that should be included in the 'print' and the second for when childsignals
should not be included.In addition this PR adds a custom
__dir__()
method to both of these classes to only show theread
method and the child signals when doing tab-to-complete. This is meant to aid users by only showing items that they will need to access and hence removing confusion.Finally it also includes some updates to some docstrings as they had gotten out of date with the significant number of recent PR merges.
@wen-hu and @Jiemin-Li please take a look and provide comments