-
Notifications
You must be signed in to change notification settings - Fork 25
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: Two critical fixes to Eurotherm #58
base: master
Are you sure you want to change the base?
Conversation
Instead of checking `is_alive()` on each call of the callback, start the timer outside the callback so it happens exactly once. Using `is_alive()` raised errors once the timer stopped because it returns `False` when the thread *is started* but is also dead.
Codecov Report
@@ Coverage Diff @@
## master #58 +/- ##
==========================================
+ Coverage 42.46% 52.24% +9.77%
==========================================
Files 10 11 +1
Lines 584 691 +107
==========================================
+ Hits 248 361 +113
+ Misses 336 330 -6
Continue to review full report at Codecov.
|
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.
These changes look good to me
we should solve the Travis error first |
The failure looked like it was due to flake8 issues in code not touched by this PR, power-cycled to re-run against current master to see if that just fixes it. |
I used this against the
caproto.ioc_examples.thermo_sim
IOC for the tutorialand found a couple bugs.