Skip to content

Document sampfreq, signame, wfdbdesc, wfdbtime and mrgann - #671

Merged
tompollard merged 1 commit into
mainfrom
docs-public-functions
Nov 23, 2026
Merged

tompollard merged 1 commit into
mainfrom
docs-public-functions

Conversation

@tompollard

Copy link
Copy Markdown
Member

Fixes #339.

Five public functions were missing from the documentation. They are now listed in the "WFDB Records" and "WFDB Annotations" sections of docs/io.rst and docs/wfdb.rst:

  • sampfreq, signame, wfdbdesc and wfdbtime, which print a record's sampling frequencies, signal names, description and times, like the WFDB tools of the same names;
  • mrgann, which merges two annotation files.

The examples in wfdbdesc and wfdbtime didn't render, and failed the docs build once included. A blank line in wfdbdesc's output is now written as <BLANKLINE>, and wfdbtime's notes are now sentences before each example rather than bullets that ran into the code.

The other functions in rdedfann's area that the issue mentions (read_edf, rdedfann, wfdb_to_edf and the other converters) are already documented in docs/convert.rst, which lists all members of each convert module. The DataSource functions are left out, since they are not used by the readers yet.

Testing

  • The Sphinx build with warnings as errors passes, and the five functions appear on both pages.
  • Ruff passes. The only code change is to two docstrings.

@tompollard 🟥 red 🦥 sloth · aspen

These public functions were not in the documentation. Add them to the
record and annotation sections of io.rst and wfdb.rst, and fix the
formatting of the wfdbdesc and wfdbtime examples so that they render
(and the docs build with warnings as errors passes).

Fixes #339.

@tompollard tompollard left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Reviewed commit 921ff6a. I found no issues. The five functions are now listed on the API pages, and the docstring edits fix the rendering problems. The rdedfann function raised in #339 is covered on the conversion page linked from the docs index. All CI checks pass; this is ready to merge.

@tompollard
tompollard merged commit 7d05cbd into main Nov 23, 2026
18 checks passed
@tompollard
tompollard deleted the docs-public-functions branch November 23, 2026 23:08
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.

Missing docs for rdedfann (and other functions)

1 participant