WDM-GW-wavelets 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wdm_gw_wavelets-0.0.1/LICENSE +21 -0
- wdm_gw_wavelets-0.0.1/PKG-INFO +121 -0
- wdm_gw_wavelets-0.0.1/README.md +84 -0
- wdm_gw_wavelets-0.0.1/pyproject.toml +61 -0
- wdm_gw_wavelets-0.0.1/setup.cfg +4 -0
- wdm_gw_wavelets-0.0.1/src/WDM/__init__.py +12 -0
- wdm_gw_wavelets-0.0.1/src/WDM/code/__init__.py +0 -0
- wdm_gw_wavelets-0.0.1/src/WDM/code/discrete_wavelet_transform/WDM.py +1588 -0
- wdm_gw_wavelets-0.0.1/src/WDM/code/discrete_wavelet_transform/__init__.py +0 -0
- wdm_gw_wavelets-0.0.1/src/WDM/code/noise/__init__.py +0 -0
- wdm_gw_wavelets-0.0.1/src/WDM/code/noise/periodogram.py +60 -0
- wdm_gw_wavelets-0.0.1/src/WDM/code/plotting/__init__.py +0 -0
- wdm_gw_wavelets-0.0.1/src/WDM/code/plotting/plotting.py +168 -0
- wdm_gw_wavelets-0.0.1/src/WDM/code/time_delay_filters/__init__.py +0 -0
- wdm_gw_wavelets-0.0.1/src/WDM/code/time_delay_filters/filters.py +105 -0
- wdm_gw_wavelets-0.0.1/src/WDM/code/utils/Meyer.py +108 -0
- wdm_gw_wavelets-0.0.1/src/WDM/code/utils/__init__.py +0 -0
- wdm_gw_wavelets-0.0.1/src/WDM/code/utils/utils.py +173 -0
- wdm_gw_wavelets-0.0.1/src/WDM_GW_wavelets.egg-info/PKG-INFO +121 -0
- wdm_gw_wavelets-0.0.1/src/WDM_GW_wavelets.egg-info/SOURCES.txt +26 -0
- wdm_gw_wavelets-0.0.1/src/WDM_GW_wavelets.egg-info/dependency_links.txt +1 -0
- wdm_gw_wavelets-0.0.1/src/WDM_GW_wavelets.egg-info/requires.txt +16 -0
- wdm_gw_wavelets-0.0.1/src/WDM_GW_wavelets.egg-info/top_level.txt +1 -0
- wdm_gw_wavelets-0.0.1/tests/test_WDM.py +276 -0
- wdm_gw_wavelets-0.0.1/tests/test_dual_basis.py +38 -0
- wdm_gw_wavelets-0.0.1/tests/test_plotting.py +26 -0
- wdm_gw_wavelets-0.0.1/tests/test_time_delay_filters.py +80 -0
- wdm_gw_wavelets-0.0.1/tests/test_utils.py +71 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 CHRISTOPHER J MOORE (cjm96)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: WDM_GW_wavelets
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A fast, JAX-based Python implementation of the Wilson-Daubechies-Meyer (WDM) wavelet transform for the time-frequency analysis of gravitational wave data.
|
|
5
|
+
Author-email: "Christopher J. Moore" <cjm96@cam.ac.uk>, Tomasz Kinowski <tk593@cam.ac.uk>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/cjm96/WDM_GW_wavelets
|
|
8
|
+
Project-URL: Repository, https://github.com/cjm96/WDM_GW_wavelets
|
|
9
|
+
Project-URL: Issues, https://github.com/cjm96/WDM_GW_wavelets/issues
|
|
10
|
+
Project-URL: Documentation, https://cjm96.github.io/WDM_GW_wavelets/
|
|
11
|
+
Keywords: gravitational waves,wavelets,WDM,time-frequency analysis,signal processing,astronomy
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Development Status :: 3 - Alpha
|
|
16
|
+
Classifier: Topic :: Scientific/Engineering
|
|
17
|
+
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
18
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
19
|
+
Requires-Python: >=3.11
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: numpy
|
|
23
|
+
Requires-Dist: scipy
|
|
24
|
+
Requires-Dist: matplotlib
|
|
25
|
+
Requires-Dist: jax
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: pytest; extra == "dev"
|
|
28
|
+
Requires-Dist: astropy; extra == "dev"
|
|
29
|
+
Requires-Dist: ipykernel; extra == "dev"
|
|
30
|
+
Provides-Extra: docs
|
|
31
|
+
Requires-Dist: sphinx>=7.0; extra == "docs"
|
|
32
|
+
Requires-Dist: sphinx-rtd-theme; extra == "docs"
|
|
33
|
+
Requires-Dist: sphinx-autobuild; extra == "docs"
|
|
34
|
+
Requires-Dist: myst-parser; extra == "docs"
|
|
35
|
+
Requires-Dist: sphinx-autodoc-typehints; extra == "docs"
|
|
36
|
+
Dynamic: license-file
|
|
37
|
+
|
|
38
|
+
<p align="center">
|
|
39
|
+
<img src="./logo_images/logo.png" alt="logo" width="350"/>
|
|
40
|
+
</p>
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
# WDM_GW_wavelets
|
|
44
|
+
|
|
45
|
+
A fast, JAX-based Python implementation of the Wilson-Daubechies-Meyer (WDM) wavelet
|
|
46
|
+
transform for the time-frequency analysis of gravitational wave data.
|
|
47
|
+
|
|
48
|
+
👉 https://cjm96.github.io/WDM_GW_wavelets/
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
# Getting Started
|
|
52
|
+
|
|
53
|
+
To install the package, clone the repository and use pip.
|
|
54
|
+
Run the following in the directory cotaining pyproject.toml.
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pip install -e .
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
In Python you should then be able to `import WDM`.
|
|
61
|
+
Try running the example notebook `getting_started.ipynb`.
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
# Documentation
|
|
65
|
+
|
|
66
|
+
👉 https://cjm96.github.io/WDM_GW_wavelets/
|
|
67
|
+
|
|
68
|
+
Documentation is built using `sphinx`.
|
|
69
|
+
You will need to ensure you have this installed; this can be done by installing with the docs extras.
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
pip install .[docs]
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Build the docs by running the following command.
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
cd ./docs
|
|
79
|
+
make clean
|
|
80
|
+
make html
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Open the local documentation files using your browser.
|
|
84
|
+
|
|
85
|
+
``` bash
|
|
86
|
+
open ./docs/build/html/index.html
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
If you need to rebuild the `sphinx` docs, then run the following command.
|
|
90
|
+
|
|
91
|
+
``` bash
|
|
92
|
+
cd ./docs
|
|
93
|
+
make clean
|
|
94
|
+
sphinx-build ./source ./build
|
|
95
|
+
make html
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
# Testing
|
|
100
|
+
|
|
101
|
+
To check that everything is working as expected you can run the unit tests.
|
|
102
|
+
|
|
103
|
+
The tests are run with `pytest`.
|
|
104
|
+
You will first need to ensure you have this installed; this can be done by installing with dev extras.
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
pip install .[dev]
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
You will then be able to run all the tests.
|
|
111
|
+
(Make sure you are in the directory cotaining the pyproject.toml file.)
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
python -m pytest
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
# Authors
|
|
119
|
+
|
|
120
|
+
- Christopher J. Moore
|
|
121
|
+
- Tomasz Kinowski
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="./logo_images/logo.png" alt="logo" width="350"/>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
# WDM_GW_wavelets
|
|
7
|
+
|
|
8
|
+
A fast, JAX-based Python implementation of the Wilson-Daubechies-Meyer (WDM) wavelet
|
|
9
|
+
transform for the time-frequency analysis of gravitational wave data.
|
|
10
|
+
|
|
11
|
+
👉 https://cjm96.github.io/WDM_GW_wavelets/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# Getting Started
|
|
15
|
+
|
|
16
|
+
To install the package, clone the repository and use pip.
|
|
17
|
+
Run the following in the directory cotaining pyproject.toml.
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pip install -e .
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
In Python you should then be able to `import WDM`.
|
|
24
|
+
Try running the example notebook `getting_started.ipynb`.
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# Documentation
|
|
28
|
+
|
|
29
|
+
👉 https://cjm96.github.io/WDM_GW_wavelets/
|
|
30
|
+
|
|
31
|
+
Documentation is built using `sphinx`.
|
|
32
|
+
You will need to ensure you have this installed; this can be done by installing with the docs extras.
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
pip install .[docs]
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Build the docs by running the following command.
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
cd ./docs
|
|
42
|
+
make clean
|
|
43
|
+
make html
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Open the local documentation files using your browser.
|
|
47
|
+
|
|
48
|
+
``` bash
|
|
49
|
+
open ./docs/build/html/index.html
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
If you need to rebuild the `sphinx` docs, then run the following command.
|
|
53
|
+
|
|
54
|
+
``` bash
|
|
55
|
+
cd ./docs
|
|
56
|
+
make clean
|
|
57
|
+
sphinx-build ./source ./build
|
|
58
|
+
make html
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
# Testing
|
|
63
|
+
|
|
64
|
+
To check that everything is working as expected you can run the unit tests.
|
|
65
|
+
|
|
66
|
+
The tests are run with `pytest`.
|
|
67
|
+
You will first need to ensure you have this installed; this can be done by installing with dev extras.
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
pip install .[dev]
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
You will then be able to run all the tests.
|
|
74
|
+
(Make sure you are in the directory cotaining the pyproject.toml file.)
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
python -m pytest
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
# Authors
|
|
82
|
+
|
|
83
|
+
- Christopher J. Moore
|
|
84
|
+
- Tomasz Kinowski
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "WDM_GW_wavelets"
|
|
3
|
+
version = "0.0.1"
|
|
4
|
+
authors = [
|
|
5
|
+
{ name="Christopher J. Moore", email="cjm96@cam.ac.uk"},
|
|
6
|
+
{ name="Tomasz Kinowski", email="tk593@cam.ac.uk"}
|
|
7
|
+
]
|
|
8
|
+
description = "A fast, JAX-based Python implementation of the Wilson-Daubechies-Meyer (WDM) wavelet transform for the time-frequency analysis of gravitational wave data."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
requires-python = ">=3.11"
|
|
12
|
+
|
|
13
|
+
dependencies = [
|
|
14
|
+
"numpy",
|
|
15
|
+
"scipy",
|
|
16
|
+
"matplotlib",
|
|
17
|
+
"jax",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
classifiers = [
|
|
21
|
+
"Programming Language :: Python :: 3",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
"Operating System :: OS Independent",
|
|
24
|
+
"Development Status :: 3 - Alpha",
|
|
25
|
+
"Topic :: Scientific/Engineering",
|
|
26
|
+
"Topic :: Scientific/Engineering :: Astronomy",
|
|
27
|
+
"Topic :: Scientific/Engineering :: Physics",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
keywords = [
|
|
31
|
+
"gravitational waves",
|
|
32
|
+
"wavelets",
|
|
33
|
+
"WDM",
|
|
34
|
+
"time-frequency analysis",
|
|
35
|
+
"signal processing",
|
|
36
|
+
"astronomy",
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
[project.optional-dependencies]
|
|
40
|
+
dev = [
|
|
41
|
+
"pytest",
|
|
42
|
+
"astropy",
|
|
43
|
+
"ipykernel",
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
docs = [
|
|
47
|
+
"sphinx>=7.0",
|
|
48
|
+
"sphinx-rtd-theme",
|
|
49
|
+
"sphinx-autobuild",
|
|
50
|
+
"myst-parser",
|
|
51
|
+
"sphinx-autodoc-typehints",
|
|
52
|
+
]
|
|
53
|
+
|
|
54
|
+
[project.urls]
|
|
55
|
+
Homepage = "https://github.com/cjm96/WDM_GW_wavelets"
|
|
56
|
+
Repository = "https://github.com/cjm96/WDM_GW_wavelets"
|
|
57
|
+
Issues = "https://github.com/cjm96/WDM_GW_wavelets/issues"
|
|
58
|
+
Documentation = "https://cjm96.github.io/WDM_GW_wavelets/"
|
|
59
|
+
|
|
60
|
+
[tool.setuptools.packages.find]
|
|
61
|
+
where = ["src"]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import jax
|
|
2
|
+
jax.config.update("jax_enable_x64", True)
|
|
3
|
+
|
|
4
|
+
from .code.utils import Meyer, utils
|
|
5
|
+
|
|
6
|
+
from .code.plotting import plotting
|
|
7
|
+
|
|
8
|
+
from .code.noise import periodogram
|
|
9
|
+
|
|
10
|
+
from .code.discrete_wavelet_transform import WDM
|
|
11
|
+
|
|
12
|
+
from .code.time_delay_filters import filters
|
|
File without changes
|