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

ecl ekf tools: code refactoring to separate visualization from analysis #9377

Merged

Conversation

JohannesBrand
Copy link
Contributor

@JohannesBrand JohannesBrand commented Apr 27, 2018

This pull request refactors the code of the ecl_ekf analysis tools to enabling running the analysis separately from the visualization and results output. The main functionality of the tool hasn't changed and it can still be run as before.

  • move the analysis part of process_logdata_ekf to a function in a new file analyse_logdata_ekf:
    • add a flag to switch plotting on/off
    • return a dictionary with the analysis results
  • process_logdata_ekf:
    • call the analysis function
    • add a command line argument to switch plotting on/off
    • add a command line argument for reading the thresholds from a separate file

- move code that is needed for general analysis out of plot scope
…ocessing

- move the analysis parts of the process_logdata_ekf script to
the 'analyse_ekf' function in a new file analyse_logdata_ekf.py
- return a test_results dictionary from analyse_ekf
- still process log loading, preprocessing and results file output in
process_logdata_ekf
- add command line argument to toggle plotting
- add command line argument to use different dictionary to check_level_dict.csv
@LorenzMeier LorenzMeier merged commit b98cd6e into PX4:master Apr 27, 2018
@JohannesBrand JohannesBrand deleted the pr-tools-ecl-ekf-separate-plots-analysis branch May 11, 2018 07:28
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