Repository navigation
Fixes for ophyd async types mega merge - #593
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #593 +/- ##
==========================================
+ Coverage 80.00% 80.02% +0.01%
==========================================
Files 97 97
Lines 6806 6807 +1
==========================================
+ Hits 5445 5447 +2
+ Misses 1361 1360 -1
|
7827da8 to
2a3e1cb
Compare
DominicOram
left a comment
There was a problem hiding this comment.
Great, thanks. Minor comment
| ) | ||
| else: | ||
| return (tip_x_px, tip_y_px) | ||
| return (int(tip_xy_px[0]), int(tip_xy_px[1])) |
There was a problem hiding this comment.
Why do we need to do this cast? If I remove it the type checker is happy
There was a problem hiding this comment.
Should: Can we add coverage for this line please?
There was a problem hiding this comment.
The reason I added it was because move_pin_into_view is defined as returning Pixel which is tuple[int, int]
whereas trigger_and_return_pin_tip() now returns an instance of Tip which is defined as Array1D[np.int32] and whilst they are interchangeable for most purposes they aren't exactly the same type.
Notably == operator does not work the same for them, but I have also been bitten in the past when numpy primitives get laundered into variables that should be python natives.
1d448fa to
cf9e272
Compare
…meter injection fallout
e03fdef to
309e5ce
Compare
Fixes for compatibility with
bluesky/ophyd-async#594
Depends on DiamondLightSource/dodal#858, DiamondLightSource/dodal#814