Skip to content

Commit

Permalink
Update package and module imports to use the new package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitnelav committed Jul 24, 2024
1 parent dfe54cf commit 677ea0c
Show file tree
Hide file tree
Showing 28 changed files with 115 additions and 101 deletions.
2 changes: 2 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ build:
os: "ubuntu-22.04"
tools:
python: "3.10"
apt_packages:
- graphviz

python:
install:
Expand Down
2 changes: 1 addition & 1 deletion acoustic_toolbox/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
Acoustic Toolbox
=========
================
The acoustic_toolbox module.
Expand Down
8 changes: 4 additions & 4 deletions acoustic_toolbox/cepstrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def complex_cepstrum(x, n=None):
.. math:: c[n] = F^{-1}\\left{\\log_{10}{\\left(F{x[n]}\\right)}\\right}
where :math:`x_[n]` is the input signal and :math:`F` and :math:`F_{-1}
where :math:`x_[n]` is the input signal and :math:`F` and :math:`F_{-1}`
are respectively the forward and backward Fourier transform.
See Also
Expand Down Expand Up @@ -121,7 +121,7 @@ def real_cepstrum(x, n=None):
.. math:: c[n] = F^{-1}\left{\log_{10}{\left|F{x[n]}\right|}\right}
where :math:`x_[n]` is the input signal and :math:`F` and :math:`F_{-1}
where :math:`x_[n]` is the input signal and :math:`F` and :math:`F_{-1}`
are respectively the forward and backward Fourier transform. Note that
contrary to the complex cepstrum the magnitude is taken of the spectrum.
Expand Down Expand Up @@ -165,7 +165,7 @@ def inverse_complex_cepstrum(ceps, ndelay):
.. math:: x[n] = F^{-1}\left{\exp(F(c[n]))\right}
where :math:`c_[n]` is the input signal and :math:`F` and :math:`F_{-1}
where :math:`c_[n]` is the input signal and :math:`F` and :math:`F_{-1}`
are respectively the forward and backward Fourier transform.
See Also
Expand Down Expand Up @@ -233,7 +233,7 @@ def minimum_phase(x, n=None):
References
----------
.. [1] Soo-Chang Pei, Huei-Shan Lin. Minimum-Phase FIR Filter Design Using
.. `[1]` Soo-Chang Pei, Huei-Shan Lin. Minimum-Phase FIR Filter Design Using
Real Cepstrum. IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS-II:
EXPRESS BRIEFS, VOL. 53, NO. 10, OCTOBER 2006
Expand Down
2 changes: 1 addition & 1 deletion acoustic_toolbox/octave.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The following is an example on how to use :class:`acoustic_toolbox.octave.Octave`.
.. literalinclude:: ../examples/octave.py
.. literalinclude:: ../../examples/example_octave.py
"""
import numpy as np
Expand Down
4 changes: 1 addition & 3 deletions acoustic_toolbox/standards/iso_tr_25417_2007.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
in noise measurement documents prepared by ISO Technical Committee TC 43,
Acoustics, Subcommittee SC 1, Noise, together with their symbols and units, with
the principal aim of harmonizing the terminology used in ISO25417 : (http://www.iso.org/iso/home/store/catalogue_tc/catalogue_detail.htm?csnumber=42915).
.. inheritance-diagram:: acoustic_toolbox.standards.iso_tr_25417_2007
"""

import numpy as np

REFERENCE_PRESSURE = 2.0e-5
Expand Down
2 changes: 2 additions & 0 deletions docs/source/ambisonics.rst
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.. automodule:: acoustic_toolbox.ambisonics
:noindex:
:members:
3 changes: 2 additions & 1 deletion docs/source/bands.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.. automodule:: acoustic_toolbox.bands

:noindex:
:members:
4 changes: 3 additions & 1 deletion docs/source/building.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.. automodule:: acoustic_toolbox.building

:noindex:
:members:

2 changes: 2 additions & 0 deletions docs/source/cepstrum.rst
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.. automodule:: acoustic_toolbox.cepstrum
:noindex:
:members:
21 changes: 20 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Configuration file for the Sphinx documentation builder.

import sys
import os

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('../..'))

# -- Project information

project = 'Acoustic-Toolbox'
Expand All @@ -17,19 +25,30 @@
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.intersphinx',
"sphinx.ext.inheritance_diagram",
]

intersphinx_mapping = {
'python': ('https://docs.python.org/3/', None),
'sphinx': ('https://www.sphinx-doc.org/en/master/', None),
'scipy': ('https://docs.scipy.org/doc/scipy/', None),
'numpy': ('https://numpy.org/doc/stable/', None),
'pandas': ('https://pandas.pydata.org/docs/', None),
'matplotlib': ('https://matplotlib.org/stable/', None)
}

intersphinx_disabled_domains = ['std']

templates_path = ['_templates']

# autodoc_default_options = {
# 'members': True,
# }

# -- Options for HTML output

html_theme = 'sphinx_rtd_theme'

# -- Options for EPUB output
epub_show_urls = 'footnote'

# graphviz_dot = 'dot'
10 changes: 2 additions & 8 deletions docs/source/criterion.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
Criterion
=========

.. toctree::
:maxdepth: 2

.. inheritance-diagram:: acoustic_toolbox.criterion
.. automodule:: acoustic_toolbox.criterion
:show-inheritance:
:noindex:
:members:

2 changes: 2 additions & 0 deletions docs/source/decibel.rst
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.. automodule:: acoustic_toolbox.decibel
:noindex:
:members:
1 change: 1 addition & 0 deletions docs/source/descriptors.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.. automodule:: acoustic_toolbox.descriptors
:no-members:

2 changes: 2 additions & 0 deletions docs/source/directivity.rst
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.. automodule:: acoustic_toolbox.directivity
:noindex:
:members:
2 changes: 2 additions & 0 deletions docs/source/doppler.rst
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.. automodule:: acoustic_toolbox.doppler
:noindex:
:members:
3 changes: 2 additions & 1 deletion docs/source/imaging.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.. automodule:: acoustic_toolbox.imaging

:noindex:
:members:
54 changes: 46 additions & 8 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,21 +1,59 @@
.. acoustic-toolbox documentation master file, created by
sphinx-quickstart on Fri Aug 16 09:40:59 2013.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
.. acoustic-toolbox documentation master file
Acoustic Toolbox
================

Welcome to the documentation of the acoustic-toolbox module!
=====================================================

API Reference
#############

This section contains a description of all classes and functions.

Signal class
------------

.. toctree::
:maxdepth: 1

Contents:
signal

Modules
-------

.. toctree::
:maxdepth: 1

reference

ambisonics
atmosphere
bands
building
cepstrum
criterion
decibel
generator
descriptors
directivity
doppler
imaging
octave
power
reflection
room
utils
weighting
quantity

Standards
---------

The ``acoustic_toolbox.standards`` module consists of modules where all code and
values are according to the respective standard.

.. toctree::
:maxdepth: 1

standards

Indices and tables
==================
Expand Down
2 changes: 2 additions & 0 deletions docs/source/octave.rst
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.. automodule:: acoustic_toolbox.octave
:noindex:
:members:
2 changes: 2 additions & 0 deletions docs/source/power.rst
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.. automodule:: acoustic_toolbox.power
:noindex:
:members:
4 changes: 2 additions & 2 deletions docs/source/quantity.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.. automodule:: acoustic_toolbox.quantity


:noindex:
:members:
66 changes: 0 additions & 66 deletions docs/source/reference.rst

This file was deleted.

2 changes: 2 additions & 0 deletions docs/source/reflection.rst
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.. automodule:: acoustic_toolbox.reflection
:noindex:
:members:
2 changes: 2 additions & 0 deletions docs/source/room.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.. automodule:: acoustic_toolbox.room
:noindex:
:members:

4 changes: 3 additions & 1 deletion docs/source/signal.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.. automodule:: acoustic_toolbox.signal
:no-members:
:noindex:
:members:

5 changes: 3 additions & 2 deletions docs/source/standards.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.. automodule:: acoustic_toolbox.standards
:show-inheritance:

:noindex:
:members:

1 change: 0 additions & 1 deletion docs/source/turbulence.rst

This file was deleted.

2 changes: 2 additions & 0 deletions docs/source/utils.rst
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.. automodule:: acoustic_toolbox.utils
:noindex:
:members:
2 changes: 2 additions & 0 deletions docs/source/weighting.rst
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.. automodule:: acoustic_toolbox.weighting
:noindex:
:members:

0 comments on commit 677ea0c

Please sign in to comment.