Skip to content

Rename internal functions in wfdb.plot.plot #386

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

Merged
merged 8 commits into from
Jun 8, 2022
Merged

Conversation

bemoody
Copy link
Collaborator

@bemoody bemoody commented Jun 7, 2022

A lot of functions in the package are only for the use of other functions in the package. Their interfaces are complicated, low-level, and generally not very useful to applications, so we want to make it clear that these functions are not part of the package API and their interfaces may change at any time.

The following functions in wfdb.plot.plot do not appear to be designed for applications to use:

  • get_plot_dims
  • create_figure
  • plot_signal
  • plot_annotation
  • plot_ecg_grids
  • calc_ecg_grids
  • label_figure
  • get_wfdb_plot_items

(get_plot_dims and create_figure have unit tests but nonetheless don't seem to be designed for application use. get_plot_dims is very implementation-specific, and create_figure is a handy but ultimately trivial wrapper around the (admittedly bonkers) matplotlib API.)

Rename these functions to indicate they are internal to the package.

Benjamin Moody added 8 commits June 7, 2022 10:14
This function is not in the wfdb module, is not listed in the
documentation, and shouldn't be used by applications directly.
This function is not in the wfdb module, is not listed in the
documentation, and shouldn't be used by applications directly.
This function is not in the wfdb module, is not listed in the
documentation, and shouldn't be used by applications directly.
This function is not in the wfdb module, is not listed in the
documentation, and shouldn't be used by applications directly.
This function is not in the wfdb module, is not listed in the
documentation, and shouldn't be used by applications directly.
This function is not in the wfdb module, is not listed in the
documentation, and shouldn't be used by applications directly.
This function is not in the wfdb module, is not listed in the
documentation, and shouldn't be used by applications directly.
This function is not in the wfdb module, is not listed in the
documentation, and shouldn't be used by applications directly.
@bemoody bemoody merged commit 2a6ce72 into main Jun 8, 2022
@bemoody bemoody deleted the rename-internal-plot branch June 8, 2022 20:18
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