Skip to main content

wongutils

https://xkcd.com/1205/

Python utilities for simulation data, black hole calculations, and visualization.

Install

pip install wongutils

What's included

  • wongutils.geometry: coordinate transforms, Kerr metrics, and interpolation.
  • wongutils.grmhd: AthenaK and iHARM snapshots, meshblocks, and fluid utilities.
  • wongutils.grrt: image filtering, synchrotron emission, and ipole helpers.
  • wongutils.photonring: analytic photon orbits and critical curves.
  • wongutils.algorithms: Newton's method and finite-difference Jacobians.
  • wongutils.visit: tools for editing VisIt session and plot settings.

The ipole helpers require a separately installed ipole executable.

Quickstart

import numpy as np
from wongutils.geometry.metrics import get_gcov_ks_from_ks

gcov = get_gcov_ks_from_ks(0.5, 10.0, np.pi / 2)
print(gcov.shape)  # (4, 4)

Development

pip install -e . pytest
pytest tests/

MIT licensed; see LICENSE in the repository.

Metadata

Release files for wongutils 0.1.12

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

Source distribution (sdist)

Source distribution for wongutils 0.1.12
File Size Uploaded
wongutils-0.1.12.tar.gz 56.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wongutils 0.1.12
File Interpreter ABI Platform
wongutils-0.1.12-py3-none-any.whl Python 3 none any Details

Total release size: 122.5 kB

Release files / wongutils-0.1.12.tar.gz

Download URL wongutils-0.1.12.tar.gz
Size 56.0 kB
Tags Source
SHA-256 checksum
How to use checksums
49696402e81154ca5461c515647d319ddbd3bd1f0f5ddbca32c28fee8324d271
BLAKE2b-256 checksum
How to use checksums
86ed356b693abd5861f20a0783db8f012247971cef3f661d2b6898a59f710487
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release files / wongutils-0.1.12-py3-none-any.whl

Download URL wongutils-0.1.12-py3-none-any.whl
Size 66.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c0efe2d3262aa25a6abd34aa26098d8ef78ac2bc47dc2301c833970ba268c6b
BLAKE2b-256 checksum
How to use checksums
4e5c24ee375c1e392a5d11eaae8f6dcb08a4ee14530d60040a1cd7911899421c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.1.12 This release

2 release files

0.1.11

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.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