spectral
This is a collection of various spectral methods for numerical appraches.
-
Available Methods:
-
Chebyshev
-
Fourier
-
Sphercical Harmonics
-
Spin weighted spherical harmonics
-
Installing
pip install spectools
That gives the import-light part of the package -- spectools.chebyshev
and spectools.fourier -- which needs only numpy. It installs anywhere
numpy does, including Windows.
The spherical-harmonic and interpolation modules need more:
pip install spectools[spherical] # spectools.spherical, spectools.interpolation
pip install spectools[docs] # to build the documentation
Changed in 2026.09: waveformtools and sxstools used to be
unconditional requirements, so pip install spectools pulled them in even
for a user who only wanted a Chebyshev basis. They pull lalsuite, which
publishes no Windows wheel and no source distribution, and scri ->
spinsfast, which has no Windows wheel and does not build under MSVC -- so
the whole package was uninstallable on Windows. They are now the
[spherical] extra. recommonmark and sphinx-rtd-theme were also
runtime requirements and are documentation-build tools; they are now
[docs]. numpy was never declared at all and now is.
If you use spectools.spherical or spectools.interpolation, install
spectools[spherical]; a bare pip install spectools will no longer bring
their dependencies.
Citing this code
Please cite the latest version of this code if used in your work. This code was developed for use in the following works:
- News from Horizons in Binary Black Hole Mergers
- Tidal deformation of dynamical horizons in binary black hole mergers
We request you to also cite these. Thanks!
Installing this package
Dependencies
This module has the following dependencies:
- Standard packages (come with full anaconda installation)
- Optional dependencies (labelled [EXT])
- For use with PyCBC data analysis packages.
gmpy2
Recommended method
I recommend installing this module through pypi:
pip install spectral
Alternate method
Manual install directly from the git repo:
pip install git+https://github.com/vaishakp/spectral@main
Or from a clone:
- First, clone this repository:
git clone https://github.com/vaishakp/spectral.git
- Second, run python setup from the
spectraldirectory:
cd spectral
python setup.py install --prefix="<path to your preferred installation dir>"
Manually setup conda environment
- To create an environment with automatic dependency resolution and activate it, run
conda create env -f docs/environment.yml
conda activate wftools
Using this code
# Documentation
The documentation for this module is available at [Link to the Documentation](https://spectral.readthedocs.io/en/latest/). This was built automatically using Read the Docs.
In some case where the repo has run out of github CI minutes, the documentation is not automatically built. In such cases, we request the user to access the documentation through the `index.html` file in `docs` directory.
# Bug tracker
If you run into any issues while using this package, please report the issue on the [issue tracker](https://github.com/vaishakp/spectral/-/issues).
# Acknowledgements
This project has been hosted, as you can see, on github. Several github tools are used in the deployment of the code, its testing, version control.
The work of this was developed in aiding my PhD work at Inter-University Centre for Astronomy and Astrophysics (IUCAA, Pune, India)](https://www.iucaa.in/). The PhD is in part supported by the [Shyama Prasad Nukherjee Fellowship](https://csirhrdg.res.in/Home/Index/1/Default/2006/59) awarded to me by the [Council of Scientific and Industrial Research (CSIR, India)](https://csirhrdg.res.in/). Resources of the [Inter-University Centre for Astronomy and Astrophysics (IUCAA, Pune, India)](https://www.iucaa.in/) were are used in part.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spectools-2026.9.9.tar.gz.
File metadata
- Download URL: spectools-2026.9.9.tar.gz
- Upload date:
- Size: 988.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a79efc0296e3a37ac5778b4a3992c1fb082265358e60f25c7dd3675862b1514
|
|
| MD5 |
c8489fdbeb22923eb00bc8a05088e5ba
|
|
| BLAKE2b-256 |
1f0f4d2d899e1bcb114debdff4ad25fb9ab6f0dc1c6e0ce650ec750cb5754524
|
Provenance
The following attestation bundles were made for spectools-2026.9.9.tar.gz:
Publisher:
python-publish.yml on vaishakp/spectral
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spectools-2026.9.9.tar.gz -
Subject digest:
3a79efc0296e3a37ac5778b4a3992c1fb082265358e60f25c7dd3675862b1514 - Sigstore transparency entry: 2764795971
- Sigstore integration time:
-
Permalink:
vaishakp/spectral@1e7f59a7c7a9ac2917797ac223e8f0a4e43cf0fe -
Branch / Tag:
refs/heads/main - Owner: https://github.com/vaishakp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@1e7f59a7c7a9ac2917797ac223e8f0a4e43cf0fe -
Trigger Event:
push
-
Statement type:
File details
Details for the file spectools-2026.9.9-py3-none-any.whl.
File metadata
- Download URL: spectools-2026.9.9-py3-none-any.whl
- Upload date:
- Size: 105.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca7efb252dc62b38f42aa17af19732179ce8e91c12bdff5f7d9e2c89805a979d
|
|
| MD5 |
bbc9bf791d5094ed9a6167bc22d7b82a
|
|
| BLAKE2b-256 |
31378ce9c0e2acc419e2db23a03a5b0563001fcbd094633e82b7edb5709cbfc9
|
Provenance
The following attestation bundles were made for spectools-2026.9.9-py3-none-any.whl:
Publisher:
python-publish.yml on vaishakp/spectral
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spectools-2026.9.9-py3-none-any.whl -
Subject digest:
ca7efb252dc62b38f42aa17af19732179ce8e91c12bdff5f7d9e2c89805a979d - Sigstore transparency entry: 2764795981
- Sigstore integration time:
-
Permalink:
vaishakp/spectral@1e7f59a7c7a9ac2917797ac223e8f0a4e43cf0fe -
Branch / Tag:
refs/heads/main - Owner: https://github.com/vaishakp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@1e7f59a7c7a9ac2917797ac223e8f0a4e43cf0fe -
Trigger Event:
push
-
Statement type: