TRASAL / frbpoppy

Fast Radio Burst Population Synthesis in Python
MIT License
27 stars 11 forks source link
astronomy fast-radio-bursts frb frbs population-synthesis

.. image:: docs/logo_text.png :scale: 50

Fast Radio Burst Population Synthesis | David Gardenier, Joeri van Leeuwen & Yuyang Wang | ASTRON & UvA


What's frbpoppy?


Establishing the origin and properties of Fast Radio Bursts (FRBs) is one of the biggest goals in radio astronomy. frbpoppy was called into life to help astronomers determine which FRB properties to expect. Designed to be simple in use and easy to adapt.


How can I install it?


  1. Determine if you can and want to install frbpoppy system wide (e.g. with sudo). Otherwise, first create and enter a virtual environment in python with e.g.: ::

    $ python3 -m venv # where is the install directory, e.g. ~/frbpoppy/virtualenv $ source /bin/activate # where is the same directory as above

  2. Ensure gfortran is installed on your system (used for NE2001).

  3. Get the files from the github repository: ::

    $ git clone https://github.com/TRASAL/frbpoppy

  4. It's important that frbpoppy is installed locally. Why? It means that you can play around with the code without having to dig into a system wide install. It also allows frbpoppy to create data files more easily. Ubuntu is supported, as should be Macs, however no tests have been done on Windows. Install frbpoppy locally by going to the downloaded directory and running ::

    $ python3 setup.py develop

  5. Run frbpoppy for the first time. Frbpoppy will automatically create lookup tables for complex calculations. Note this can take up to 2h on a modern machine (4 cores). Subsequent runs will be orders of magnitude faster. ::

    $ python3 examples/_starting_withfrbpoppy.py


How do I use it?


Check out the examples directory or the tests directory.


Which dependencies does frbpoppy have?


All requirements can be found in setup.py <https://github.com/TRASAL/frbpoppy/blob/master/setup.py>_ but are also expanded upon in the following list:

And if using an old version of Python (<v3.6):


How can I help?


Spotted a bug, or want to add some functionality? Simply open an issue <https://github.com/TRASAL/frbpoppy/issues/new> on github, or contact Joeri van Leeuwen <leeuwen@astron.nl> or Yuyang Wang <y.wang3@uva.nl>_ directly. Any help is appreciated!


Who are the authors?