Skip to main content

Fast matrix-based visibility simulator with interface to CPU and GPU

Project description

https://github.com/hera-team/matvis/workflows/Tests/badge.svg https://badge.fury.io/py/vis-cpu.svg https://codecov.io/gh/hera-team/matvis/branch/main/graph/badge.svg https://img.shields.io/badge/code%20style-black-000000.svg

Fast matrix-based visibility simulator capable of running on CPU and GPU.

Description

matvis is a fast Python matrix-based interferometric visibility simulator with both CPU and GPU implementations.

It is applicable to wide field-of-view instruments such as the Hydrogen Epoch of Reionization Array (HERA) and the Square Kilometre Array (SKA), as it does not make any approximations of the visibility integral (such as the flat-sky approximation). The only approximation made is that the sky is a collection of point sources, which is valid for sky models that intrinsically consist of point-sources, but is an approximation for diffuse sky models.

An example wrapper for the main matvis simulator function is provided in this package (matvis.simulate_vis()).

Features

  • Matrix-based algorithm is fast and scales well to large numbers of antennas.

  • Supports both CPU and GPU implementations as drop-in replacements for each other.

  • Supports both dense and sparse sky models.

  • Includes a wrapper for simulating multiple frequencies and setting up the simulation.

  • No approximations of the visibility integral (such as the flat-sky approximation).

  • Arbitrary primary beams per-antenna using the pyuvdata.UVBeam class.

Limitations

  • Currently no support for polarized sky models.

  • Currently no way of taking advantage of baseline redundancy to speed up simulations.

  • Diffuse sky models must be pixelised, which may not be the best basis-function for some sky models.

Installation

pip install matvis.

If you want to use the GPU functions, install with pip install matvis[gpu].

Developers

Run pre-commit install before working on this code.

Read the Docs

https://matvis.readthedocs.io/en/latest/

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

matvis-1.3.3.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

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

matvis-1.3.3-py2.py3-none-any.whl (2.1 MB view details)

Uploaded Python 2Python 3

File details

Details for the file matvis-1.3.3.tar.gz.

File metadata

  • Download URL: matvis-1.3.3.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for matvis-1.3.3.tar.gz
Algorithm Hash digest
SHA256 9af8005c2c1222ac878ab5480d89493cf9d978839309b284c6b4e2d782dda8b6
MD5 6a8c18a7667479ab7f65e481e14c4d12
BLAKE2b-256 a5f5dcfe2c209f1873a8c5ca1c8fb56ca7132dfc230b855cfb72f76bd9fd4344

See more details on using hashes here.

Provenance

The following attestation bundles were made for matvis-1.3.3.tar.gz:

Publisher: publish-to-pypi.yaml on HERA-Team/matvis

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

File details

Details for the file matvis-1.3.3-py2.py3-none-any.whl.

File metadata

  • Download URL: matvis-1.3.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for matvis-1.3.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6d023212184c310881d9179a672f43c954ade10c4a810dec4723c3b6ad9e2c30
MD5 be8a535ff10170048cd7dd96bfecc9b3
BLAKE2b-256 e4e9f7a8426a3980a172f376b5bc4db3d9c00f7db5ba3c1cd303f03c37b2e96e

See more details on using hashes here.

Provenance

The following attestation bundles were made for matvis-1.3.3-py2.py3-none-any.whl:

Publisher: publish-to-pypi.yaml on HERA-Team/matvis

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