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

Convert AutoAnalyseRawData script to Python #454

Merged
merged 5 commits into from
May 18, 2018
Merged

Conversation

crankyoldgit
Copy link
Owner

Mostly a direct port from the Bash shell code to python
Some minor features were dropped. Some new ones added.
Old script removed.

Mostly a direct port from the Bash shell code to python
Some minor features were dropped. Some new ones added.
Rename python analysis script to snake_case format.
@crankyoldgit
Copy link
Owner Author

ATTN reviewers. If you don't know Python, please say so, and I'll find someone who does.

* Make analyse script code unittest-able.
* Improve raw data parsing for analyse script.
* Add some unit tests for analyse script.
* Update Makefile(s) to use 'run_tests' to run their tests.
* Add python unit & lint tests into Travis
@crankyoldgit
Copy link
Owner Author

Friendly reviewer ping. (If you don't know python, please say so. :)

@crankyoldgit crankyoldgit requested a review from darshkpatel May 17, 2018 12:31
Copy link
Collaborator

@sillyfrog sillyfrog left a comment

Choose a reason for hiding this comment

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

Only done a visual look over it, but it's looking good. I think Python will be a much better fit :)
We are (were) predominantly a Python shop at work, so very familiar with it. Something we found always worked well is PEP8'ing all code, and recently we have moved to black - I'm happy to do do this conversion once the PR is merged if you are OK with it.
Thanks!

@crankyoldgit
Copy link
Owner Author

I've gone with google variant of PEP8 style guide. It's pretty much the same. Mostly because we are using the Google C++ style guide/linter.

Also, I've installed yapf by google, which automatically formats the python code to either PEP8 or PEP8/Google style.

@crankyoldgit crankyoldgit merged commit 531dc66 into master May 18, 2018
@crankyoldgit crankyoldgit deleted the analyse_python branch May 18, 2018 05:06
@crankyoldgit crankyoldgit mentioned this pull request May 20, 2018
crankyoldgit added a commit that referenced this pull request May 20, 2018
**[Bug Fixes]**
- Fix crash in IRMQTTServer when compiled under Arduino IDE. (#455)
- Default bit length not set for RCMM in IRMQTTServer example. (#456)
- Bad acknowledgements for some A/C protocols in IRMQTTServer example. (#460)

**[Features]**
- Allow disabling the use of delay() calls. (#450)
- Initial support for G.I. Cable protocol. (#458)
- Support of Hitachi A/C 13 & 53 byte messages. (#461)

**[Misc]**
- Auto Analyse Raw Data script converted to Python. (#454)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants