-
Notifications
You must be signed in to change notification settings - Fork 3
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
brief code review of 00-prep.py #9
Comments
This line is not needed:
but we should convert:
to
|
Isn't this code only called once? ipython-s6bm/ipython_profiles/profile_s6bm/startup/00-prep.py Lines 60 to 82 in ab45c8c
Seems that we could avoid creating a new function just for these once-only actions. |
In this code, a Device is created each time the code is called, used, then disposed. ipython-s6bm/ipython_profiles/profile_s6bm/startup/00-prep.py Lines 119 to 121 in ab45c8c
Seems like an expensive activity. Can the device creation be moved to the caller? Similar to changeset ab45c8c |
Consider replacing
with
Here is sample output (from my simulator):
|
Consider adding a call to ipython-s6bm/ipython_profiles/profile_s6bm/startup/99-help.py Lines 16 to 17 in ab45c8c
Here's example output from my simulator:
|
Improved sorting of imports. Deleted function getRunEngine. Default databroker to mongodb. Improved function hutch_light_on as suggested. Added print_RE_md() and show_ophyd_symbols() as suggested.
Since #8 (comment), a short code review seems timely.
The text was updated successfully, but these errors were encountered: