Skip to content

Commit 7ad71b7

Browse files
authored
Doc fixes (#18)
* Docstring cleanup * A few more doc fixes * Just a little bit more
1 parent bd949dc commit 7ad71b7

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
naploeon_numpy_docstring = True
4444

4545
intersphinx_mapping = {
46+
"scipy": ("http://docs.scipy.org/doc/scipy/reference/", None),
4647
"matplotlib": ("https://matplotlib.org", None),
4748
"numpy": ("https://docs.scipy.org/doc/numpy/", None),
4849
"pydrobert.kaldi": ("https://pydrobert-kaldi.readthedocs.io/en/latest", None),

src/pydrobert/speech/config.py

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,13 @@
2525

2626

2727
USE_FFTPACK = False
28-
"""
28+
"""bool : Whether to use :mod:`scipy.fftpack`
29+
2930
The scipy implementation of the FFT can be much faster than the numpy one. This is set
30-
automatically to :obj:`True` if :func:`scipy.fftpack` can be imported. It can be set to
31+
automatically to :obj:`True` if :mod:`scipy.fftpack` can be imported. It can be set to
3132
:obj:`False` to use the numpy implementation.
33+
34+
:meta hide-value:
3235
"""
3336
try:
3437
from scipy import fftpack # noqa: F401
@@ -38,34 +41,35 @@
3841
pass
3942

4043
EFFECTIVE_SUPPORT_THRESHOLD = 5e-4
41-
"""
44+
"""float : Value considered roughly zero for support computations
45+
4246
No function is compactly supported in both the time and Fourier domains, but large
4347
regions of either domain can be very close to zero. This value serves as a threshold for
4448
zero. The higher it is, the more accurate computations will be, but the longer they will
4549
take
4650
"""
4751

4852
LOG_FLOOR_VALUE = 1e-5
49-
"""Value used as floor when taking log in computations"""
53+
"""float : Value used as floor when taking log in computations"""
5054

5155

5256
# N.B. libsndfile's sphere support currently can't decode as many sphere encodings
5357
# as _sphere.py can
5458
_BASE_SOUNDFILE_SUPPORTED_TYPES = {"wav", "ogg", "flac", "aiff"}
55-
_FULL_SOUNDFILE_SUPPORTED_TYPES: Set[str] = set()
59+
_FULL_SOUNDFILE_SUPPORTED_TYPES = set()
5660

5761
SOUNDFILE_SUPPORTED_FILE_TYPES: Set[str] = set()
58-
f"""
59-
A list of the types of files SoundFile will be responsible for reading. If
60-
:mod:`soundfile` can be imported, it's the intersection of
61-
:func:`soundfile.available_formats` with the set {_BASE_SOUNDFILE_SUPPORTED_TYPES}.
62+
"""set : A list of the types of files SoundFile will be responsible for reading
63+
64+
If :mod:`soundfile` can be imported, it's the intersection of
65+
:func:`soundfile.available_formats` with the set "wav", "ogg", "flac", and "aiff".
66+
67+
:meta hide-value:
6268
6369
See Also
6470
--------
6571
pydrobert.speech.util.read_signal
6672
Where this flag is used
67-
68-
:meta hide-value:
6973
"""
7074

7175
try:

0 commit comments

Comments
 (0)