Skip to content

Commit 1312399

Browse files
authored
Merge pull request #73 from v0lta/improved-docs
Improved docs
2 parents 38901ce + 2cdd64c commit 1312399

37 files changed

+751
-93
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ exclude =
3737
.eggs,
3838
data.
3939
src/ptwt/__init__.py
40-
max-line-length = 88
40+
max-line-length = 90
4141
max-complexity = 20
4242
import-order-style = pycharm
4343
application-import-names =

CITATION.bib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ @thesis{Blanke2021
1515
annote = {Gbachelor},
1616
year = {2021},
1717
school = {Institut f\"ur Numerische Simulation, Universit\"at Bonn}
18-
}
18+
}

README.rst

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,15 @@ Welcome to the PyTorch wavelet toolbox. This package implements:
5151
This toolbox extends `PyWavelets <https://pywavelets.readthedocs.io/en/latest/>`_. In addition to boundary wavelets, we provide GPU and gradient support via a PyTorch backend.
5252
Complete documentation is available at: https://pytorch-wavelet-toolbox.readthedocs.io/en/latest/ptwt.html
5353

54+
This toolbox is independent work. Meta or the PyTorch team have not endorsed it.
5455

5556
**Installation**
5657

5758
Install the toolbox via pip or clone this repository. In order to use ``pip``, type:
5859

5960
.. code-block:: sh
6061
61-
$ pip install ptwt
62+
pip install ptwt
6263
6364
6465
You can remove it later by typing ``pip uninstall ptwt``.
@@ -158,7 +159,7 @@ Reconsidering the 1d case, try:
158159
The process for the 2d transforms ``MatrixWavedec2``, ``MatrixWaverec2`` works similarly.
159160
By default, a separable transformation is used.
160161
To use a non-separable transformation, pass ``separable=False`` to ``MatrixWavedec2`` and ``MatrixWaverec2``.
161-
Separable transformations use a 1d transformation along both axes, which might be faster since fewer matrix entries
162+
Separable transformations use a 1D transformation along both axes, which might be faster since fewer matrix entries
162163
have to be orthogonalized.
163164

164165

@@ -181,11 +182,11 @@ After cloning the repository, moving into the main directory, and installing ``n
181182

182183
.. code-block:: sh
183184
184-
$ nox --session test
185+
nox --session test
185186
186187
187188
188-
to run all existing tests.
189+
for all existing tests.
189190

190191
Citation
191192
""""""""
@@ -194,25 +195,9 @@ If you use this work in a scientific context, please cite the following:
194195

195196
.. code-block::
196197
197-
@phdthesis{handle:20.500.11811/9245,
198-
author = {{Moritz Wolter}},
199-
title = {Frequency Domain Methods in Recurrent Neural Networks for Sequential Data Processing},
200-
school = {Rheinische Friedrich-Wilhelms-Universität Bonn},
201-
year = 2021,
202-
month = jul,
203-
url = {https://hdl.handle.net/20.500.11811/9245}
204-
}
205-
206-
If you use the boundary wavelet support, please additionally cite:
207-
208-
.. code-block::
209-
210-
@thesis{Blanke2021,
211-
author = {Felix Blanke},
212-
title = {{Randbehandlung bei Wavelets für Faltungsnetzwerke}},
213-
type = {Bachelor's Thesis},
214-
annote = {Gbachelor},
215-
year = {2021},
216-
school = {Institut f\"ur Numerische Simulation, Universit\"at Bonn}
217-
}
218-
198+
@article{ptwt_2023,
199+
author = {Wolter, Moritz and Blanke, Felix and Garcke, Jochen and Hoyt, Charles Tapley},
200+
title = {ptwt - The PyTorch Wavelet Toolbox},
201+
journal = {Journal of Machine Learning Research},
202+
year = {2023}
203+
}

docs/_static/shannon.png

21 KB
Loading

docs/conf.py

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
# -- Project information -----------------------------------------------------
2020

2121
project = "PyTorch-Wavelet-Toolbox"
22-
copyright = "2022, Moritz Wolter"
23-
author = "Moritz Wolter"
24-
22+
copyright = "2024, the ptwt-team"
2523

2624
# -- General configuration ---------------------------------------------------
2725

@@ -32,9 +30,11 @@
3230
"sphinx.ext.napoleon",
3331
"sphinx.ext.autodoc",
3432
"sphinx.ext.intersphinx",
33+
"sphinx.ext.mathjax",
3534
"sphinx.ext.todo",
3635
"sphinx.ext.coverage",
3736
"sphinx.ext.viewcode",
37+
"sphinxcontrib.bibtex",
3838
]
3939

4040
napoleon_google_docstring = True
@@ -58,28 +58,27 @@
5858
# a list of builtin themes.
5959
#
6060

61-
html_theme = "alabaster"
62-
html_sidebars = {
63-
"**": [
64-
"about.html",
65-
"navigation.html",
66-
"searchbox.html",
67-
]
68-
}
61+
html_theme = "sphinx_book_theme"
6962

7063
html_theme_options = {
71-
"github_user": "v0lta",
72-
"github_repo": "PyTorch-Wavelet-Toolbox",
73-
"github_banner": "false",
74-
"show_related": "true",
75-
"page_width": "auto",
76-
"sidebar_width": "250px",
64+
"show_toc_level": 2,
65+
"repository_url": "https://github.com/v0lta/PyTorch-Wavelet-Toolbox",
66+
"use_repository_button": True,
67+
"navigation_with_keys": False,
7768
}
7869

70+
html_favicon = "_static/favicon.ico"
71+
html_logo = "_static/shannon.png"
7972

8073
html_favicon = "favicon/favicon.ico"
8174

8275
# Add any paths that contain custom static files (such as style sheets) here,
8376
# relative to this directory. They are copied after the builtin static files,
8477
# so a file named "default.css" will overwrite the builtin "default.css".
85-
# html_static_path = ['_static']
78+
html_static_path = ["_static"]
79+
80+
81+
bibtex_bibfiles = ["literature.bib"]
82+
83+
# numbered figures
84+
numfig = True

docs/examples.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Wavelet transforms by example
2+
=============================
3+
4+
Worked examples are available in the examples folder of the `GitHub repository <https://github.com/v0lta/PyTorch-Wavelet-Toolbox/tree/main/examples>`_ .
5+

docs/figures/convert.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
convert -density 250 fwt.pdf -quality 100 fwt.png

docs/figures/db6.pdf

33.8 KB
Binary file not shown.

docs/figures/db6.png

63.8 KB
Loading

0 commit comments

Comments
 (0)