Skip to main content

Fast visibility simulator with interface to CPU and GPU

Project description

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

Fast visibility simulator capable of running on CPU and GPU.

Description

vis_cpu is a Python/numpy-based simulator for interferometer visibilities. It models the sky as an ensemble of point sources, each with their own frequency spectrum. Diffuse emission can be modelled by treating (e.g.) each pixel of a Healpix map as a separate source. The code is capable of modelling polarized visibilities and primary beams, but currently only a Stokes I sky model.

vis_cpu includes a separate pycuda-based implementation called vis_gpu. This is intended to keep feature parity with the vis_cpu code to the greatest extent possible.

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

Installation

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

Developers

Run pre-commit install before working on this code.

Read the Docs

https://vis-cpu.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

vis_cpu-1.1.0.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

vis_cpu-1.1.0-py2.py3-none-any.whl (2.0 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file vis_cpu-1.1.0.tar.gz.

File metadata

  • Download URL: vis_cpu-1.1.0.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for vis_cpu-1.1.0.tar.gz
Algorithm Hash digest
SHA256 edf7427a62dac49e3bbb945bf52b1f4b80360f81f9a9aebbfa6aa742ec57c6b5
MD5 966cdc5a89658f1172710bff99e39851
BLAKE2b-256 3f5d024f5130aa6af2d5cacc4900d2bd99429a0ed81883c472fae52ba480df97

See more details on using hashes here.

File details

Details for the file vis_cpu-1.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: vis_cpu-1.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for vis_cpu-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 812fa47871d2a9295b1a63732f34c37a61fd73857cd984c5944a4182bdb8ca0f
MD5 046f4897fe13cba9420ec752e32883d7
BLAKE2b-256 9c6272422941555f8a43ec7d1e08dcc007a5e3cde7e47dfc9ad9bdeec6231ef8

See more details on using hashes here.

Supported by

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