-
Notifications
You must be signed in to change notification settings - Fork 318
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
Fix dir #15
Fix dir #15
Conversation
apparently I didn't rerun these tests after adding the in_notebook test...
Awesome! I'll try to check this out tomorrow, I'll be very happy with this. |
msg = "'{}' object has no attribute or {} item '{}'".format( | ||
obj.__class__.__name__, attr_dict, key) | ||
raise AttributeError(msg) from None | ||
class DelegateAttributes(object): |
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.
Much better name than safe_getatrr.
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.
That's because it's doing much better things 😄
If you're happy with this, give it a 💃 and I'll merge it in.
Just tested it out on my laptop. Got to say I'm very happy with it, I'll pull it in today 💃 |
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open
* Feature/monitor (#15) * First monitor commit, now 🍔 ! * polish things up * types for the masses * chore: Refactor monitor * fix: Add todo remove space * refactor * silm api * better monitor * fix: Add static files to pacakge setup * fix: Add websocket dependency * fix: Use http with webbrowser open * fix: Include static, add init * move server to onw scripts * feat: make monitor server standalone * fix: Sleep before thread starts! * fix: Update monitor GUI * Fix monitor for channel parameters (#61) * The monitor does not work correctly with ws34 * make websockets a soft dependency Everything but the monitor can be used without it * remove unused pass statment * add simple monitor readme
@AdriaanRol replaces the
safe_getattr
function with a mixin classDelegateAttributes
that handles delegation to both dictionary keys (and can handle multiple dictionaries, likeparameters
andfunctions
) and objects (makingDataArray
behave like anumpy.ndarray
) and updates__dir__
sodir()
and autocomplete work.Also (sorry, right after saying PRs should be single-topic 😱 ) two small fixes: I had forgotten
Station.snapshot
, and I broke the tests with my last addition to the subprocess PR.