Sovereign 8s.is mirror of standardgalactic/discmodel
- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
Some checks failed
Tests / test (macos-latest, 3.10) (push) Has been cancelled
Tests / test (macos-latest, 3.11) (push) Has been cancelled
Tests / test (macos-latest, 3.12) (push) Has been cancelled
Tests / test (ubuntu-latest, 3.10) (push) Has been cancelled
Tests / test (ubuntu-latest, 3.11) (push) Has been cancelled
Tests / test (ubuntu-latest, 3.12) (push) Has been cancelled
Tests / test (windows-latest, 3.10) (push) Has been cancelled
Tests / test (windows-latest, 3.11) (push) Has been cancelled
Tests / test (windows-latest, 3.12) (push) Has been cancelled
Improve coverage, setup to ignore flex |
||
| .github/workflows | ||
| src/discmodel | ||
| tests | ||
| .gitignore | ||
| LICENSE | ||
| pyproject.toml | ||
| pytest.ini | ||
| README.md | ||
| setup.py | ||
| test_requirements.txt | ||
discmodel
Simple exponential disc generation for testing galaxy morphology routines.
Installation
Installation of discmodel currently proceeds from local builds after cloning this repository:
git clone https://github.com/ObservationalExpansions/discmodel.git
pip install .
Quickstart example
import discmodel
N= 1_000_000
a = 1.0
M = 1.0
rmax = 5.0
nbins = 100
mmax,nmax = 2,8
# generate N distributed points
D = discmodel.DiscGalaxy(N=N, a=a, M=M)
D.generate_image(rmax=rmax, nbins=nbins)
# now you have
D.img