Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyCE

A Python library for projects related to Configurational Entropy (CE) — an information-theoretic measure of spatial complexity for field configurations.

Installation

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.

Modules

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

Example

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 integration

Documentation

The 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/.

License

MIT

About

A Python library for projects related to Configurational Entropy (CE) — an information-theoretic measure of spatial complexity for field configurations. Code for simulating oscillons, boson stars, and instantons in scalar field theory.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages