A Python library for projects related to Configurational Entropy (CE) — an information-theoretic measure of spatial complexity for field configurations.
git clone https://github.com/EternalTime/pyCE.git
cd pyCE
pip install -e .Requires Python 3.8+. Dependencies (numpy, scipy, matplotlib, astropy, tqdm) are installed automatically.
| Module | Description |
|---|---|
pyCE.math |
Radial Fourier transforms and d-dimensional radial integration |
pyCE.cosmology |
Analysis of the Cosmic Microwave Background (Planck and WMAP angular power spectra; bundled WMAP 9-yr data) |
pyCE.instantons |
Generating and analyzing instantons |
pyCE.bosonstars |
Ground-state boson stars of the Einstein-Klein-Gordon system |
pyCE.oscillons |
Generating and analyzing oscillons |
pyCE.polytropes |
Polytropic models of stars |
import numpy as np
from pyCE.math import radialFT, radial_integrate
r = np.linspace(0, 10, 1000)
f = np.exp(-r**2)
ft, k = radialFT(3, f, r) # radial FT in d = 3
norm = radial_integrate(r, f**2, 3) # d-dimensional radial integrationThe documentation is hosted at damiansowinski.com/pyCE
(or run import pyCE; pyCE.docs() to open it). To build locally: make -C docs html
from the Sphinx sources in docs/.
MIT