powerbox

powerbox: A Python package for creating structured fields with isotropic power spectra - Published in JOSS (2018)

https://github.com/steven-murray/powerbox

Science Score: 95.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 6 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org, zenodo.org
  • Committers with academic emails
    3 of 6 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords from Contributors

mesh hydrology energy-system exoplanet hydraulic-modelling polygon gravitational-lensing geoscience ode
Last synced: 6 months ago · JSON representation

Repository

A python package for making arbitrarily structured, arbitrary-dimension boxes

Basic Info
  • Host: GitHub
  • Owner: steven-murray
  • License: other
  • Language: Jupyter Notebook
  • Default Branch: main
  • Size: 6.87 MB
Statistics
  • Stars: 26
  • Watchers: 5
  • Forks: 12
  • Open Issues: 13
  • Releases: 6
Created over 9 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License

README.rst

========
powerbox
========
.. image:: https://img.shields.io/pypi/v/powerbox.svg
    :target: https://pypi.python.org/pypi/powerbox
.. image:: https://travis-ci.org/steven-murray/powerbox.svg?branch=master
    :target: https://travis-ci.org/steven-murray/powerbox
.. image:: https://coveralls.io/repos/github/steven-murray/powerbox/badge.svg?branch=master
    :target: https://coveralls.io/github/steven-murray/powerbox?branch=master
.. image:: https://api.codacy.com/project/badge/Grade/5853411c78444a5a9c6ec4058c6dbda9
    :target: https://www.codacy.com/app/steven-murray/powerbox?utm_source=github.com&utm_medium=referral&utm_content=steven-murray/powerbox&utm_campaign=Badge_Grade
.. image:: https://zenodo.org/badge/72076717.svg
   :target: https://zenodo.org/badge/latestdoi/72076717
.. image:: http://joss.theoj.org/papers/10.21105/joss.00850/status.svg
   :target: https://doi.org/10.21105/joss.00850

**Make arbitrarily structured, arbitrary-dimension boxes and log-normal mocks.**

``powerbox`` is a pure-python code for creating density grids (or boxes) that have an
arbitrary two-point distribution (i.e. power spectrum). Primary motivations for creating
the code were the simple creation of log-normal mock galaxy distributions, but the
methodology can be used for other applications.

Features
--------
* Works in any number of dimensions.
* Really simple.
* Arbitrary isotropic power-spectra.
* Create Gaussian or Log-Normal fields
* Create discrete samples following the field, assuming it describes an over-density.
* Measure power spectra of output fields to ensure consistency.
* Seamlessly uses pyFFTW if available for ~double the speed.

Installation
------------
Simply ``pip install powerbox``. If you want ~2x speedup for large boxes, you can also
install ``pyfftw`` by doing ``pip install powerbox[all]``. If you are a conda user, you
may want to install ``numpy`` with conda first. If you want to develop ``powerbox``,
clone the repo and install with ``python -m pip install -e ".[dev]"``.

Acknowledgment
--------------
If you find ``powerbox`` useful in your research, please cite the Journal of Open Source Software paper at
https://doi.org/10.21105/joss.00850.

QuickLinks
----------
* Docs: https://powerbox.readthedocs.io
* Quickstart: http://powerbox.readthedocs.io/en/latest/demos/getting_started.html

Owner

  • Name: Steven Murray
  • Login: steven-murray
  • Kind: user
  • Location: Phoenix, AZ
  • Company: Arizona State University

JOSS Publication

powerbox: A Python package for creating structured fields with isotropic power spectra
Published
August 21, 2018
Volume 3, Issue 28, Page 850
Authors
Steven G. Murray ORCID
International Centre for Radio Astronomy Research (ICRAR), Curtin University, Bentley, WA 6102, Australia, ARC Centre of Excellence for All-Sky Astrophysics in 3 Dimensions (ASTRO 3D)
Editor
Arfon Smith ORCID
Tags
astronomy power spectrum signal analysis

GitHub Events

Total
  • Issues event: 1
  • Watch event: 2
  • Delete event: 2
  • Issue comment event: 12
  • Push event: 18
  • Pull request event: 10
  • Pull request review event: 9
  • Create event: 2
Last Year
  • Issues event: 1
  • Watch event: 2
  • Delete event: 2
  • Issue comment event: 12
  • Push event: 18
  • Pull request event: 10
  • Pull request review event: 9
  • Create event: 2

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 279
  • Total Committers: 6
  • Avg Commits per committer: 46.5
  • Development Distribution Score (DDS): 0.448
Past Year
  • Commits: 9
  • Committers: 3
  • Avg Commits per committer: 3.0
  • Development Distribution Score (DDS): 0.333
Top Committers
Name Email Commits
steven-murray s****y@c****u 154
DanielaBreitman d****n@m****a 63
pre-commit-ci[bot] 6****] 56
Jordan Mirocha m****j@g****m 4
dependabot[bot] 4****] 1
Aaron Ouellette a****2@i****u 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 22
  • Total pull requests: 84
  • Average time to close issues: over 1 year
  • Average time to close pull requests: 3 days
  • Total issue authors: 13
  • Total pull request authors: 8
  • Average comments per issue: 2.14
  • Average comments per pull request: 1.01
  • Merged pull requests: 77
  • Bot issues: 0
  • Bot pull requests: 64
Past Year
  • Issues: 1
  • Pull requests: 16
  • Average time to close issues: N/A
  • Average time to close pull requests: about 12 hours
  • Issue authors: 1
  • Pull request authors: 3
  • Average comments per issue: 0.0
  • Average comments per pull request: 1.31
  • Merged pull requests: 12
  • Bot issues: 0
  • Bot pull requests: 14
Top Authors
Issue Authors
  • steven-murray (7)
  • DanielaBreitman (3)
  • zhaotingchen (2)
  • PabloVD (1)
  • jordanflitter (1)
  • panstarrs (1)
  • bmbuncher (1)
  • florpi (1)
  • mirochaj (1)
  • mtlam (1)
  • egorssed (1)
  • liamstaras (1)
  • JianrongTan (1)
Pull Request Authors
  • pre-commit-ci[bot] (62)
  • steven-murray (7)
  • DanielaBreitman (7)
  • dependabot[bot] (3)
  • zhaotingchen (2)
  • andrinr (2)
  • ajouellette (1)
  • mirochaj (1)
Top Labels
Issue Labels
bug (3) enhancement (3)
Pull Request Labels
dependencies (3) github_actions (3) bug (2)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 1,757 last-month
  • Total dependent packages: 2
  • Total dependent repositories: 6
  • Total versions: 25
  • Total maintainers: 1
pypi.org: powerbox

Create arbitrary boxes with isotropic power spectra

  • Versions: 25
  • Dependent Packages: 2
  • Dependent Repositories: 6
  • Downloads: 1,757 Last month
Rankings
Dependent packages count: 4.7%
Dependent repos count: 6.0%
Average: 7.5%
Downloads: 11.8%
Maintainers (1)
Last synced: 6 months ago

Dependencies

pyproject.toml pypi
  • numpy >1.6.2
.github/workflows/deploy.yaml actions
  • actions/checkout main composite
  • actions/setup-python v4 composite
  • pypa/gh-action-pypi-publish release/v1 composite
.github/workflows/run-docs-code.yaml actions
  • actions/checkout master composite
  • actions/setup-python v4 composite
  • actions/upload-artifact v3 composite
.github/workflows/test-with-warnings.yaml actions
  • actions/checkout master composite
  • actions/setup-python v4 composite
  • codecov/codecov-action v2 composite
.github/workflows/testsuite.yaml actions
  • actions/checkout master composite
  • actions/setup-python v4 composite
  • codecov/codecov-action v2 composite