Fruitbat
Fruitbat: A Python Package for Estimating Redshifts of Fast Radio Bursts - Published in JOSS (2019)
Science Score: 100.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 2 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org -
✓Committers with academic emails
1 of 2 committers (50.0%) from academic institutions -
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Keywords
astronomy
astrophysics
dispersion
dm
frb
measure
python
radio
redshift
Scientific Fields
Mathematics
Computer Science -
84% confidence
Last synced: 4 months ago
·
JSON representation
·
Repository
A fast radio burst (FRB) redshift estimation package written in Python.
Basic Info
- Host: GitHub
- Owner: abatten
- License: bsd-3-clause
- Language: Python
- Default Branch: master
- Homepage: https://fruitbat.readthedocs.io
- Size: 2.68 MB
Statistics
- Stars: 17
- Watchers: 3
- Forks: 5
- Open Issues: 3
- Releases: 4
Topics
astronomy
astrophysics
dispersion
dm
frb
measure
python
radio
redshift
Created almost 7 years ago
· Last pushed almost 4 years ago
Metadata Files
Readme
License
Citation
README.rst
|PyPI| |Python| |License| |Travis| |Docs| |CodeCov| |JOSS| |ASCL|
|Logo|
*FRUITBAT* is an open source python package used to estimate the redshift of
Fast Radio Bursts (FRB) from their dispersion measure. *FRUITBAT* combines
various dispersion measure (DM) and redshift relations with the YMW16 galactic
dispersion measure model into a single easy to use API.
Documentation
-------------
The documentation for *FRUITBAT* can be found at https://fruitbat.readthedocs.io/.
Installation
------------
You can install the latest release of *FRUITBAT* from PyPi_ by running
the following::
pip install fruitbat
You can install the latest development version of *FRUITBAT* by cloning
this repository::
git clone https://github.com/abatten/fruitbat
cd fruitbat
pip install .
If you are installing the latest development version of *FRUITBAT* then you
will also need to install git-lfs. Instructions for installing git-lfs for
your operating system can be found here_.
Linux Users
***********
If you are installing *FRUITBAT* on a linux machine you may see this 'error':
``ERROR: Failed building wheel for pyymw16``. This does not mean the installation
failed. The C++ bindings were compiled using MacOS and needed to be recompiled
for your machine. The installation process does this for you. You should still
be able to run *FRUITBAT* normally.
.. _PyPi: https://pypi.python.org/pypi/fruitbat
.. _here: https://help.github.com/en/articles/installing-git-large-file-storage
Requirements
------------
Below are the listed requirements for running *FRUITBAT* and the purpose for
each requirement.
- numpy: Array manipulation
- scipy: Modules for integration and interpolation
- astropy: Modules for cosmology, coordinates, constants and units
- matplotlib: Modules for plotting
- pandas: Reading csv files from FRBCAT
- pyymw16: Python wrapper for YMW16 galactic dispersion measure model.
- e13tools: Utility tools for writing docstrings.
Usage
-----
If you want to get started using *FRUITBAT* there is a `Getting Started`_
section of the documentation made just for you! Otherwise the tl;dr is the
following:
Most of the calculations will be centred around the `Frb class`_. You can
can define an instance of the `Frb class`_ with a dispersion measure.
To calculate the redshift of the FRB use the method
`calc_redshift`_.
::
>>> import fruitbat
>>> FRB121102 = fruitbat.Frb(557, dm_excess=369)
>>> FRB121102.calc_redshift()
The `calc_redshift`_ function can also be passed a method and/or a cosmology.
The method will specify which DM-redshift relation to assume and the cosmology
will specify which cosmology to assume.
::
>>> FRB121102.calc_redshift(method="Zhang2018", cosmology="Planck18")
It is also possible to specify the coordinates of the burst and use the
`calc_dm_galaxy`_ function to calculate the DM contribution from the Milky Way
using the YMW16 or NE2001 galactic electron distribution model. Performing
`calc_dm_galaxy`_ will automatically calculate the excess dispersion measure
for the redshift calculation.
::
>>> FRB190222 = fruitbat.Frb(500, raj="12:34:43.5", decj="2:34:15.2")
>>> FRB190222.calc_dm_galaxy()
>>> FRB190222.calc_redshift()
.. _Frb class: https://fruitbat.readthedocs.io/en/latest/api/fruitbat.Frb.html
.. _calc_redshift: https://fruitbat.readthedocs.io/en/latest/api/fruitbat.Frb.html#fruitbat.Frb.calc_redshift
.. _calc_dm_galaxy: https://fruitbat.readthedocs.io/en/latest/api/fruitbat.Frb.html#fruitbat.Frb.calc_dm_galaxy
.. _Getting Started: https://fruitbat.readthedocs.io/en/latest/user_guide/getting_started
Issues and Contributing
-----------------------
If there is a feature of *FRUITBAT* that currently does not exist, but you
would like it to, you can contribute by openning a `Github Issue`_ and
outlining the feature. Similar to contributing, if you find a problem with
*FRUITBAT* or are having difficulties using *FRUITBAT* please do not
hesitate to open a `Github Issue`_.
.. _Github Issue: https://github.com/abatten/fruitbat/issues
Referencing Fruitbat
--------------------
If you use *FRUITBAT* in your research, we would like it if you could add an
acknowledgement statement "Some of the results of this paper have been derived
using the *FRUITBAT* package" and reference `our paper`_.
.. _our paper: https://ui.adsabs.harvard.edu/abs/2019JOSS....4.1399B/abstract
::
@ARTICLE{2019JOSS....4.1399B,
author = {{Batten}, Adam},
title = "{Fruitbat: A Python Package for Estimating Redshifts of Fast Radio Bursts}",
journal = {The Journal of Open Source Software},
keywords = {Astrophysics - Instrumentation and Methods for Astrophysics, Astrophysics - High Energy Astrophysical Phenomena},
year = "2019",
month = "May",
volume = {4},
number = {37},
pages = {1399},
doi = {10.21105/joss.01399},
archivePrefix = {arXiv},
eprint = {1905.04294},
primaryClass = {astro-ph.IM},
adsurl = {https://ui.adsabs.harvard.edu/abs/2019JOSS....4.1399B},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
.. |Logo| image:: logo/fruitbat_logo.svg
:alt: Fruitbat Logo
.. |PyPI| image:: https://img.shields.io/pypi/v/fruitbat.svg?label=PyPI
:target: https://pypi.python.org/pypi/fruitbat
:alt: PyPI - Latest Release
.. |Python| image:: https://img.shields.io/pypi/pyversions/fruitbat.svg?label=Python
:target: https://pypi.python.org/pypi/fruitbat
:alt: PyPI - Python Versions
.. |Travis| image:: https://travis-ci.com/abatten/fruitbat.svg?branch=master
:target: https://travis-ci.com/abatten/fruitbat
.. |Docs| image:: https://readthedocs.org/projects/fruitbat/badge/?version=latest
:target: https://fruitbat.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. |CodeCov| image:: https://codecov.io/gh/abatten/fruitbat/branch/master/graph/badge.svg
:target: https://codecov.io/gh/abatten/fruitbat
:alt: Code Coverage
.. |License| image:: https://img.shields.io/pypi/l/fruitbat.svg?colorB=purple&label=License
:target: https://github.com/abatten/fruitbat/raw/master/LICENSE
:alt: PyPI - License
.. |JOSS| image:: http://joss.theoj.org/papers/634bb69f2445c7457bea5dbc0b83e650/status.svg
:target: http://joss.theoj.org/papers/634bb69f2445c7457bea5dbc0b83e650
:alt: JOSS Review Status
.. |ASCL| image:: https://img.shields.io/badge/ascl-1911.010-blue.svg?colorB=262255"
:target: http://ascl.net/1911.010
:alt: ascl:1911.010
Owner
- Name: Adam Batten
- Login: abatten
- Kind: user
- Location: Melbourne, VIC, Australia
- Company: Swinburne University of Technology
- Website: https://adambatten.com
- Twitter: adamjbatten
- Repositories: 4
- Profile: https://github.com/abatten
PhD Student at Swinburne University of Technology - Astrophysics || FRBs || IGM || Hydrodynamic Simulations
JOSS Publication
Fruitbat: A Python Package for Estimating Redshifts of Fast Radio Bursts
Published
May 09, 2019
Volume 4, Issue 37, Page 1399
Authors
Tags
python astrophysics frb redshift dispersion measure radio transientsCitation (CITATION)
If you use FRUITBAT in work or research that is published (in a journal
or as a dependancy to another package) we recommend and encourage you to
cite the FRUITBAT paper.
You can add the acknoledgement statement: “Some of the results of this paper
have been derived using the FRUITBAT python package.”
BibTeX entry for the citation is:
@ARTICLE{2019JOSS....4.1399B,
author = {{Batten}, Adam},
title = "{Fruitbat: A Python Package for Estimating Redshifts of Fast Radio Bursts}",
journal = {The Journal of Open Source Software},
keywords = {Astrophysics - Instrumentation and Methods for Astrophysics, Astrophysics - High Energy Astrophysical Phenomena},
year = "2019",
month = "May",
volume = {4},
number = {37},
pages = {1399},
doi = {10.21105/joss.01399},
archivePrefix = {arXiv},
eprint = {1905.04294},
primaryClass = {astro-ph.IM},
adsurl = {https://ui.adsabs.harvard.edu/abs/2019JOSS....4.1399B},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
GitHub Events
Total
Last Year
Committers
Last synced: 5 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| abatten | a****n@g****m | 207 |
| Danny Price | d****r@b****u | 1 |
Committer Domains (Top 20 + Academic)
berkeley.edu: 1
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 13
- Total pull requests: 38
- Average time to close issues: 3 months
- Average time to close pull requests: 11 days
- Total issue authors: 7
- Total pull request authors: 3
- Average comments per issue: 2.69
- Average comments per pull request: 0.47
- Merged pull requests: 35
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- zingale (5)
- astronmyphy (2)
- 0xCoto (2)
- Rigel7 (1)
- abatten (1)
- telegraphic (1)
Pull Request Authors
- abatten (35)
- telegraphic (2)
- 1313e (1)
Top Labels
Issue Labels
bug (5)
enhancement (4)
documentation (2)
question (1)
Pull Request Labels
enhancement (1)
bug (1)
documentation (1)
Packages
- Total packages: 1
-
Total downloads:
- pypi 23 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 6
- Total maintainers: 1
pypi.org: fruitbat
Calculate the redshift of a FRB from its dispersion measure
- Homepage: https://github.com/abatten/fruitbat
- Documentation: https://fruitbat.readthedocs.io
- License: BSD License
-
Latest release: 2.0.1
published over 4 years ago
Rankings
Dependent packages count: 10.1%
Forks count: 14.2%
Stargazers count: 14.2%
Average: 18.5%
Dependent repos count: 21.6%
Downloads: 32.5%
Maintainers (1)
Last synced:
4 months ago
Dependencies
requirements.txt
pypi
- astropy >=3.2.3
- e13tools >=0.5.3
- h5py >=2.10.0
- matplotlib >=2.2.4
- numpy >=1.16.0
- pandas >=0.22.0
- pygedm >=3.2.3
- scipy >=1.0.0
requirements_dev.txt
pypi
- check-manifest * development
- codecov * development
- pytest >=3.8.0 development
- pytest-cov * development
- pytest-mpl * development
