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

abstracting plotting #278

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

abstracting plotting #278

wants to merge 6 commits into from

Conversation

K20shores
Copy link
Collaborator

When checking out differences in TS1, I noticed that plotting no longer worked after we (correctly) added data headers in #273

This PR

  • moves all plotting to its own file and adds tests, also makes it easier to plot
  • corrects the readme examples
  • corrects some data output functionality so that we can output to a file and print to the terminal if the output type is csv

@adityakiran1423
Copy link
Collaborator

Hello @K20shores. Just one thing :
In src/acom_music_box/main.py (before changes where made to it) the plot_with_gnuplot function runs a finally block where data_file_path is deleted if generated after successfully plotting using gnu_plot.

However

In src/acom_music_box/plot_output.py the plot_with_gnuplot function doesn't seem to have a finally block for deleting data_file_path. Is this done for a specific reason?

I've reviewed all the other files changed in the PR, looks good to me!

@adityakiran1423
Copy link
Collaborator

Looks good to me!

@codecov-commenter
Copy link

codecov-commenter commented Nov 23, 2024

Codecov Report

Attention: Patch coverage is 90.27778% with 7 lines in your changes missing coverage. Please review.

Project coverage is 47.38%. Comparing base (70601c3) to head (c129388).

Files with missing lines Patch % Lines
src/acom_music_box/plot_output.py 88.70% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #278      +/-   ##
==========================================
+ Coverage   43.33%   47.38%   +4.05%     
==========================================
  Files          13       14       +1     
  Lines        1013     1034      +21     
==========================================
+ Hits          439      490      +51     
+ Misses        574      544      -30     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

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.

3 participants