{"id":13521285,"url":"https://github.com/abatten/fruitbat","last_synced_at":"2026-04-09T00:32:34.668Z","repository":{"id":45583566,"uuid":"169852619","full_name":"abatten/fruitbat","owner":"abatten","description":"A fast radio burst (FRB) redshift estimation package written in Python.","archived":false,"fork":false,"pushed_at":"2022-01-11T14:05:19.000Z","size":2811,"stargazers_count":17,"open_issues_count":3,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-02-19T14:02:59.052Z","etag":null,"topics":["astronomy","astrophysics","dispersion","dm","frb","measure","python","radio","redshift"],"latest_commit_sha":null,"homepage":"https://fruitbat.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abatten.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-02-09T09:52:39.000Z","updated_at":"2023-09-25T04:47:00.000Z","dependencies_parsed_at":"2022-07-26T11:47:06.097Z","dependency_job_id":null,"html_url":"https://github.com/abatten/fruitbat","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/abatten/fruitbat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abatten%2Ffruitbat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abatten%2Ffruitbat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abatten%2Ffruitbat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abatten%2Ffruitbat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abatten","download_url":"https://codeload.github.com/abatten/fruitbat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abatten%2Ffruitbat/sbom","scorecard":{"id":159905,"data":{"date":"2025-08-11","repo":{"name":"github.com/abatten/fruitbat","commit":"ca350a3a65aaf6033efe094fbf23f8a319a65fb7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Warn: no topLevel permission defined: .github/workflows/traffic.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/12 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/abatten/fruitbat/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/abatten/fruitbat/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/traffic.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/abatten/fruitbat/traffic.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/traffic.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/abatten/fruitbat/traffic.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/traffic.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/abatten/fruitbat/traffic.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:33","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:34","Warn: downloadThenRun not pinned by hash: .github/workflows/test.yml:40","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"10 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h2x6-5jx5-46hf","Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: GHSA-6p56-wp2h-9hxr","Warn: Project is vulnerable to: PYSEC-2019-108 / GHSA-9fq2-x9r6-wfmf","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2020-73","Warn: Project is vulnerable to: PYSEC-2023-102","Warn: Project is vulnerable to: PYSEC-2023-114","Warn: Project is vulnerable to: PYSEC-2022-238 / GHSA-h3qr-fjhm-jphw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 25 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T13:04:18.468Z","repository_id":45583566,"created_at":"2025-08-16T13:04:18.468Z","updated_at":"2025-08-16T13:04:18.468Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31579971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astronomy","astrophysics","dispersion","dm","frb","measure","python","radio","redshift"],"created_at":"2024-08-01T06:00:32.232Z","updated_at":"2026-04-09T00:32:34.646Z","avatar_url":"https://github.com/abatten.png","language":"Python","funding_links":[],"categories":["Burst Analysis Software"],"sub_categories":[],"readme":"|PyPI| |Python| |License| |Travis| |Docs| |CodeCov| |JOSS| |ASCL|\n\n|Logo|\n\n*FRUITBAT* is an open source python package used to estimate the redshift of \nFast Radio Bursts (FRB) from their dispersion measure. *FRUITBAT* combines \nvarious dispersion measure (DM) and redshift relations with the YMW16 galactic \ndispersion measure model into a single easy to use API. \n\nDocumentation\n-------------\nThe documentation for *FRUITBAT* can be found at https://fruitbat.readthedocs.io/.\n\nInstallation\n------------\nYou can install the latest release of *FRUITBAT* from PyPi_ by running \nthe following::\n\n    pip install fruitbat\n\nYou can install the latest development version of *FRUITBAT* by cloning \nthis repository::\n    \n    git clone https://github.com/abatten/fruitbat\n    cd fruitbat\n    pip install .\n\nIf you are installing the latest development version of *FRUITBAT* then you \nwill also need to install git-lfs. Instructions for installing git-lfs for\nyour operating system can be found here_.\n\nLinux Users\n***********\nIf you are installing *FRUITBAT* on a linux machine you may see this 'error':\n``ERROR: Failed building wheel for pyymw16``. This does not mean the installation\nfailed. The C++ bindings were compiled using MacOS and needed to be recompiled\nfor your machine. The installation process does this for you. You should still\nbe able to run *FRUITBAT* normally.\n\n.. _PyPi: https://pypi.python.org/pypi/fruitbat \n.. _here: https://help.github.com/en/articles/installing-git-large-file-storage\n\n\nRequirements\n------------\nBelow are the listed requirements for running *FRUITBAT* and the purpose for\neach requirement.\n\n - numpy: Array manipulation\n\n - scipy: Modules for integration and interpolation\n\n - astropy: Modules for cosmology, coordinates, constants and units\n\n - matplotlib: Modules for plotting\n\n - pandas: Reading csv files from FRBCAT\n\n - pyymw16: Python wrapper for YMW16 galactic dispersion measure model.\n\n - e13tools: Utility tools for writing docstrings.\n\nUsage\n-----\nIf you want to get started using *FRUITBAT* there is a `Getting Started`_ \nsection of the documentation made just for you! Otherwise the tl;dr is the\nfollowing:\n\nMost of the calculations will be centred around the `Frb class`_. You can\ncan define an instance of the `Frb class`_ with a dispersion measure. \nTo calculate the redshift of the FRB use the method \n`calc_redshift`_.\n\n::\n\n    \u003e\u003e\u003e import fruitbat\n    \u003e\u003e\u003e FRB121102 = fruitbat.Frb(557, dm_excess=369)\n    \u003e\u003e\u003e FRB121102.calc_redshift()\n    \u003cQuantity 0.37581945\u003e\n    \nThe `calc_redshift`_ function can also be passed a method and/or a cosmology.\nThe method will specify which DM-redshift relation to assume and the cosmology\nwill specify which cosmology to assume.\n\n::\n\n    \u003e\u003e\u003e FRB121102.calc_redshift(method=\"Zhang2018\", cosmology=\"Planck18\")\n    \u003cQuantity 0.42166019\u003e\n\nIt is also possible to specify the coordinates of the burst and use the \n`calc_dm_galaxy`_ function to calculate the DM contribution from the Milky Way\nusing the YMW16 or NE2001 galactic electron distribution model. Performing \n`calc_dm_galaxy`_ will automatically calculate the excess dispersion measure \nfor the redshift calculation.\n\n::\n\n    \u003e\u003e\u003e FRB190222 = fruitbat.Frb(500, raj=\"12:34:43.5\", decj=\"2:34:15.2\")\n    \u003e\u003e\u003e FRB190222.calc_dm_galaxy()\n    \u003cQuantity 22.43696785 pc / cm3\u003e\n    \u003e\u003e\u003e FRB190222.calc_redshift()\n    \u003cQuantity 0.4808557\u003e\n\n.. _Frb class: https://fruitbat.readthedocs.io/en/latest/api/fruitbat.Frb.html\n.. _calc_redshift: https://fruitbat.readthedocs.io/en/latest/api/fruitbat.Frb.html#fruitbat.Frb.calc_redshift\n.. _calc_dm_galaxy: https://fruitbat.readthedocs.io/en/latest/api/fruitbat.Frb.html#fruitbat.Frb.calc_dm_galaxy\n.. _Getting Started: https://fruitbat.readthedocs.io/en/latest/user_guide/getting_started\n\nIssues and Contributing\n-----------------------\nIf there is a feature of *FRUITBAT* that currently does not exist, but you\nwould like it to, you can contribute by openning a `Github Issue`_ and \noutlining the feature. Similar to contributing, if you find a problem with\n*FRUITBAT* or are having difficulties using *FRUITBAT* please do not \nhesitate to open a `Github Issue`_.\n\n.. _Github Issue: https://github.com/abatten/fruitbat/issues\n\nReferencing Fruitbat\n--------------------\n\nIf you use *FRUITBAT* in your research, we would like it if you could add an \nacknowledgement statement \"Some of the results of this paper have been derived\nusing the *FRUITBAT* package\" and reference `our paper`_.\n\n.. _our paper: https://ui.adsabs.harvard.edu/abs/2019JOSS....4.1399B/abstract\n\n::\n\n    @ARTICLE{2019JOSS....4.1399B,\n           author = {{Batten}, Adam},\n            title = \"{Fruitbat: A Python Package for Estimating Redshifts of Fast Radio Bursts}\",\n          journal = {The Journal of Open Source Software},\n         keywords = {Astrophysics - Instrumentation and Methods for Astrophysics, Astrophysics - High Energy Astrophysical Phenomena},\n             year = \"2019\",\n            month = \"May\",\n           volume = {4},\n           number = {37},\n            pages = {1399},\n              doi = {10.21105/joss.01399},\n    archivePrefix = {arXiv},\n           eprint = {1905.04294},\n     primaryClass = {astro-ph.IM},\n           adsurl = {https://ui.adsabs.harvard.edu/abs/2019JOSS....4.1399B},\n          adsnote = {Provided by the SAO/NASA Astrophysics Data System}\n    }\n\n\n\n\n.. |Logo| image:: logo/fruitbat_logo.svg\n    :alt: Fruitbat Logo\n\n.. |PyPI| image:: https://img.shields.io/pypi/v/fruitbat.svg?label=PyPI\n    :target: https://pypi.python.org/pypi/fruitbat\n    :alt: PyPI - Latest Release\n\n.. |Python| image:: https://img.shields.io/pypi/pyversions/fruitbat.svg?label=Python\n    :target: https://pypi.python.org/pypi/fruitbat\n    :alt: PyPI - Python Versions\n\n.. |Travis| image:: https://travis-ci.com/abatten/fruitbat.svg?branch=master\n    :target: https://travis-ci.com/abatten/fruitbat\n\n.. |Docs| image:: https://readthedocs.org/projects/fruitbat/badge/?version=latest\n    :target: https://fruitbat.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\n.. |CodeCov| image:: https://codecov.io/gh/abatten/fruitbat/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/abatten/fruitbat\n    :alt: Code Coverage\n\n.. |License| image:: https://img.shields.io/pypi/l/fruitbat.svg?colorB=purple\u0026label=License\n    :target: https://github.com/abatten/fruitbat/raw/master/LICENSE\n    :alt: PyPI - License\n\n.. |JOSS| image:: http://joss.theoj.org/papers/634bb69f2445c7457bea5dbc0b83e650/status.svg\n    :target: http://joss.theoj.org/papers/634bb69f2445c7457bea5dbc0b83e650\n    :alt: JOSS Review Status\n\n.. |ASCL| image:: https://img.shields.io/badge/ascl-1911.010-blue.svg?colorB=262255\"\n    :target: http://ascl.net/1911.010\n    :alt: ascl:1911.010\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabatten%2Ffruitbat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabatten%2Ffruitbat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabatten%2Ffruitbat/lists"}