DataBaseInfo#
- class torch_ecg.databases.DataBaseInfo(title: str, about: str | Sequence[str], usage: Sequence[str], references: Sequence[str], note: str | Sequence[str] | None = None, issues: str | Sequence[str] | None = None, status: str | None = None, doi: str | Sequence[str] | None = None)[source]#
Bases:
CitationMixinA dataclass to store the information of a database.
- format_database_docstring(indent: str | None = None) str[source]#
Format the database docstring from the information stored in the dataclass.
The docstring will use the reStructuredText format.
- Parameters:
indent (str, optional) – Indent of the docstring. If not specified, then 4 spaces will be used.
- Returns:
The formatted docstring.
- Return type:
Note
An environment variable
DB_BIB_LOOKUPcan be set toTrueto enable the lookup of the bib entries.