Skip to main content

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 wplanes

wterm_data = wplanes(
  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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ddfacet_kernels-0.1.1.tar.gz (70.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ddfacet_kernels-0.1.1-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file ddfacet_kernels-0.1.1.tar.gz.

File metadata

  • Download URL: ddfacet_kernels-0.1.1.tar.gz
  • Upload date:
  • Size: 70.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ddfacet_kernels-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ba0be9c193b43560533c853a6a6b6440ea7461efabd8986f57591cf6d26ba2a7
MD5 ffda1bfaac4391910e2d04a3149a7780
BLAKE2b-256 e5f5c1b7330d7e151513dbf6821eb36f1fe61c6f81186b5ee634fbf665ff49d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for ddfacet_kernels-0.1.1.tar.gz:

Publisher: ci.yml on saopicc/ddfacet-kernels

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ddfacet_kernels-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ddfacet_kernels-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 97b52ad17538d001e457ec862240e14daeb05adb0d6bf0c810555d7697747563
MD5 7a103db979206e3cf05f7916f71aca06
BLAKE2b-256 41536bf3676df0267215615c276f6ea9c9bd897515c3104a72bd464f4eafc4ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for ddfacet_kernels-0.1.1-py3-none-any.whl:

Publisher: ci.yml on saopicc/ddfacet-kernels

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page