Package generating DDFacet W Kernels
Project description
This repository reproduces DDFacet’s W Projection Gridding Kernels to machine precision with only NumPy as a dependency.
License
Copyright (C) 2025 South African Radio Astronomy Observatory, Rhodes University, l’Observatoire de Paris
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Installation
$ pip install ddfacet-kernels
Usage
from ddfacet_kernels import facet_w_kernels
facet_data = facet_w_kernels(
nwplanes=7,
cell_size=0.2 # arc-seconds
support=15,
maxw=30000.,
npix=1025,
oversampling=11,
lmshift=(1e-5, 2e-5),
frequencies=np.linspace(.856e9, 2*.856e9, 4096)
)
Testing
The test suite depends on test data produced from the DDFacet code base
by the gen-test-data/gen_test_data.py script.
With the file test-data.pickle.xz generated by this script,
it is possible to run the entire test suite as follows:
$ virtualenv -p 3.10 venv
$ source venv/bin/activate
(venv) $ pip install -e .[tests]
(venv) $ py.test -s -vvv --ddf-test-data test-data.pickle.xz
The rest of the test suite will run without the --ddf-test-data argument. See the github actions workflow to see how to generate the test data.
Acknowledgements
Cyril Tasse and Sunrise Wang contributed valuable discussion and explanation on the Fourier Theory required to document this code base.
Project details
Release history Release notifications | RSS feed
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 ddfacet_kernels-0.1.3.tar.gz.
File metadata
- Download URL: ddfacet_kernels-0.1.3.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c1a71aad039f8d8f157427f267437e4b6e5006f0801752298718350495c865f
|
|
| MD5 |
dd9a5bd3d637323ec998c520a237338a
|
|
| BLAKE2b-256 |
32dbd85cb0990a22dcae19f30b2966158771083c7b4e990bdd4b7a8e8e1924b8
|
Provenance
The following attestation bundles were made for ddfacet_kernels-0.1.3.tar.gz:
Publisher:
ci.yml on saopicc/ddfacet-kernels
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ddfacet_kernels-0.1.3.tar.gz -
Subject digest:
5c1a71aad039f8d8f157427f267437e4b6e5006f0801752298718350495c865f - Sigstore transparency entry: 237205157
- Sigstore integration time:
-
Permalink:
saopicc/ddfacet-kernels@3c312ba13dd402a51b46be9ebd07920eb0174c4e -
Branch / Tag:
refs/tags/0.1.3 - Owner: https://github.com/saopicc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@3c312ba13dd402a51b46be9ebd07920eb0174c4e -
Trigger Event:
push
-
Statement type:
File details
Details for the file ddfacet_kernels-0.1.3-py3-none-any.whl.
File metadata
- Download URL: ddfacet_kernels-0.1.3-py3-none-any.whl
- Upload date:
- Size: 20.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b0c3a42dcb514d0b6274193de0c6d43ec9b9e93c9e82a4a8cc023cd25040b5a
|
|
| MD5 |
6639599fafce233632dcb33c4d228267
|
|
| BLAKE2b-256 |
90939e25311e4f412a5c36449ffb970330d063cccf5ddeb25ac18ddedb8f34fd
|
Provenance
The following attestation bundles were made for ddfacet_kernels-0.1.3-py3-none-any.whl:
Publisher:
ci.yml on saopicc/ddfacet-kernels
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ddfacet_kernels-0.1.3-py3-none-any.whl -
Subject digest:
0b0c3a42dcb514d0b6274193de0c6d43ec9b9e93c9e82a4a8cc023cd25040b5a - Sigstore transparency entry: 237205158
- Sigstore integration time:
-
Permalink:
saopicc/ddfacet-kernels@3c312ba13dd402a51b46be9ebd07920eb0174c4e -
Branch / Tag:
refs/tags/0.1.3 - Owner: https://github.com/saopicc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@3c312ba13dd402a51b46be9ebd07920eb0174c4e -
Trigger Event:
push
-
Statement type: