DiamondLightSource / cothread

Cooperative Python Threads and EPICS Channel Access bindings
Apache License 2.0
12 stars 9 forks source link

Fix +array deprecation #60

Closed AlexanderWells-diamond closed 7 months ago

AlexanderWells-diamond commented 7 months ago

As of numpy 1.25.0 using a "+" on a non-numeric array is deprecated. Change all the instances of it in cothread to use numpy.copy instead.

Also adds some tests.

Also removes a warning related to the PV/ PV_array APIs being changed - they've been stable for many years now with no liklihood of them changing.

Fixes #20

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (db4f0fc) 68.93% compared to head (5eccee8) 74.29%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #60 +/- ## ========================================== + Coverage 68.93% 74.29% +5.35% ========================================== Files 15 15 Lines 2054 2054 ========================================== + Hits 1416 1526 +110 + Misses 638 528 -110 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.