Skip to content
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

Remove support for threaded IO from rs232.SerialData #148

Merged
merged 3 commits into from
Dec 2, 2017

Conversation

jamessynge
Copy link
Contributor

It wasn't in use, complicates testing, and we may be able
to use newer features in PySerial toachieve the same result.

use anyway, and we may be able to use newer features in PySerial to
achieve the same result.
@jamessynge jamessynge requested a review from wtgee December 1, 2017 01:20
@codecov
Copy link

codecov bot commented Dec 1, 2017

Codecov Report

Merging #148 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           develop    #148   +/-   ##
=======================================
  Coverage     80.6%   80.6%           
=======================================
  Files           36      36           
  Lines         2527    2527           
  Branches       319     319           
=======================================
  Hits          2037    2037           
  Misses         386     386           
  Partials       104     104

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d13d60...7681e89. Read the comment docs.

wtgee
wtgee previously approved these changes Dec 1, 2017
Copy link
Member

@wtgee wtgee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works as expected with an Arduino attached. One caveat is that we need to change the write call to have a newline so that it conforms with the new PACE code, but that should be a separate PR>

def __init__(self,
port=None,
baudrate=115200,
threaded=None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm temped to say we should just add a *args, **kwargs and remove the threaded=None.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to rip out the param as soon as the PACE code is merged in here, as that way we don't accidentally accept bogus params.

@jamessynge
Copy link
Contributor Author

Merged in develop. Please review once travis is done, and merge into develop if OK.

Copy link
Member

@wtgee wtgee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@wtgee wtgee merged commit a436f2a into panoptes:develop Dec 2, 2017
@jamessynge jamessynge deleted the no-threaded-serial branch December 2, 2017 21:35
@wtgee wtgee mentioned this pull request Dec 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants