-
Notifications
You must be signed in to change notification settings - Fork 8
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
Allow creating all devices when device instantiation(s) raise an exception #62
Conversation
- Fixes DiamondLightSource#56 - e.g. a = dict - e.g. from ophyd.utils import DisconnectedError
Codecov Report
@@ Coverage Diff @@
## main #62 +/- ##
==========================================
+ Coverage 84.93% 85.16% +0.22%
==========================================
Files 52 52
Lines 1660 1685 +25
==========================================
+ Hits 1410 1435 +25
Misses 250 250
... and 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@DiamondJoseph what is the state of this? Anything we can help with to get it merged? |
Going to close and resurrect when required |
From discussion: Should make this behaviour configurable |
Closes #58 but as an optional behaviour. Changes the behaviour of make_all_devices to not fail at the first exception, but to collect all exceptions from devices that failed to instantiate and raise an ExceptionBundle with them all (unless there is only 1 device, with no dependencies that fails to instantiate, then the raise is just delayed until all other devices are tried)
Requires #61 (to allow importing an Exception that is thrown by the device instantiation)