Skip to main content

A python package for the intersection of pulsar accelerations and Galactic structure

Project description

PEEBEE

Copyright Tom Donlon, 2024 UAH

github user: thomasdonlon

Requires Python v.>3.6.0


A python package for the intersection between pulsar timing, accelerations, and Galactic structure. Currently, this package mainly includes convenience functions for various things I have needed to do in pulsar acceleration research. This package will also form the foundation for the pulsars.uah.edu backend.

CONTENTS

A non-exhaustive list of contents of the package is given below:

  • Ability to compute accelerations (including line-of-sight accelerations) for user-defined potentials (including support for gala and galpy potentials)
  • Convenience functions for computing Pdots, including the Shklovskii effect, Relativistic orbital decay, Galactic accelerations, etc.
  • An extensive model framework to build potentials and compute accelerations (3D and line-of-sight) at arbitrary locations
  • An optimization package to find the best-fit potential to a list of data

DOCUMENTATION

Read the docs here: https://peebee.readthedocs.io/en/latest/

INSTALLATION

For Users:

  1. Open your terminal, and run

python3 -m pip install peebee

Note that some potential models may only work if the gala and galpy packages are installed. However, peebee will install and run perfectly fine without these packages.

For Developers:

  1. Clone the peebee github repository

  2. Make the desired changes in the source code

  3. Navigate to the directory where you cloned the repo, and then run

python3 setup.py develop --user

(note, you will probably need to uninstall any previous versions of peebee you had on your machine before running this)

  1. To test your changes, insert import statements for the subpackages that you want to use in your .py files as you normally would:
import peebee.{peebee subpackage} 
<...>
  1. Once you are done making changes to the source code, put in a pull request to master

  2. Navigate to the directory where you cloned the repo, and then run

python3 setup.py develop --uninstall
pip3 install peebee 

Your changes will not be available in the main peebee build until a new release comes out.

TODO

MAJOR:

  • Add support for astropy units
  • Development tests to pass before pushing a new version

MINOR:

  • Agama potentials?

KNOWN ISSUES

  • Certain versions of astropy (v6.1.0) and gala (v1.8.1) result in an error being produced when computing accelerations using Gala potentials. This can be resolved by downgrading astropy to v5.3.0 or upgrading Gala to the most recent version.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

peebee-1.3.2.tar.gz (47.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

peebee-1.3.2-py3-none-any.whl (122.2 kB view details)

Uploaded Python 3

File details

Details for the file peebee-1.3.2.tar.gz.

File metadata

  • Download URL: peebee-1.3.2.tar.gz
  • Upload date:
  • Size: 47.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for peebee-1.3.2.tar.gz
Algorithm Hash digest
SHA256 39123014e15e4ff749187c5f9879536085e1b6b2d02b0034e62ba3c5d3be677e
MD5 d82d7f278127437084cfe2845e34baae
BLAKE2b-256 4a63b67089d9c061b7e0060999b531edc56440bc2a3fc9aaedbb832cdc04534b

See more details on using hashes here.

File details

Details for the file peebee-1.3.2-py3-none-any.whl.

File metadata

  • Download URL: peebee-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 122.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for peebee-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cee4d2698469223a50047556fd2f19cd190e7e97c0015565a06d9f6222ac1a48
MD5 289db1137e3257b55ae7cab5b4a87e4f
BLAKE2b-256 6ece91a59ed51b8e70378caf8950527b465cef15ba2d0ae3f81ac90375a086a8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page