Skip to main content

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.

Metadata

Release files for ddfacet-kernels 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ddfacet-kernels 0.1.3
File Size Uploaded
ddfacet_kernels-0.1.3.tar.gz 25.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ddfacet-kernels 0.1.3
File Interpreter ABI Platform
ddfacet_kernels-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 46.0 kB

Release files / ddfacet_kernels-0.1.3.tar.gz

Download URL ddfacet_kernels-0.1.3.tar.gz
Size 25.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5c1a71aad039f8d8f157427f267437e4b6e5006f0801752298718350495c865f
BLAKE2b-256 checksum
How to use checksums
32dbd85cb0990a22dcae19f30b2966158771083c7b4e990bdd4b7a8e8e1924b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 13, 2025.

Transparency log

Release files / ddfacet_kernels-0.1.3-py3-none-any.whl

Download URL ddfacet_kernels-0.1.3-py3-none-any.whl
Size 20.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b0c3a42dcb514d0b6274193de0c6d43ec9b9e93c9e82a4a8cc023cd25040b5a
BLAKE2b-256 checksum
How to use checksums
90939e25311e4f412a5c36449ffb970330d063cccf5ddeb25ac18ddedb8f34fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 13, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page