Skip to main content

Logo

ClassiPyGRB is a Python 3 package to download, process, visualize and classify Gamma-Ray-Bursts (GRBs) from the Swift/BAT Telescope (https://swift.gsfc.nasa.gov/about_swift/bat_desc.html) database. It is distributed over the GNU General Public License Version 2 (1991). Please, read the complete description of the method and its application to GRBs in this publication.

Attribution

If you use this code in a publication, please refer to the package by its name and cite Garcia-Cifuentes et al.(2023) -> arXiv link. Any question, please email Keneth Garcia-Cifuentes.

Dependencies

This repository requires Python 3.8 or high, and a list of packages downloaded automatically (numpy, scikit-learn, etc). In addition, it is required to install all the dependencies related to Tkinter, Pillow, and ImageTK. In Debian-based distros you can install these packages by running the following commands:

$ sudo apt-get install python3-tk
$ sudo apt-get install python3-pil python3-pil.imagetk

Other data management packages as Numpy or Pandas will be required in Documentation.

Installation

The latest sources from ClassiPyGRB are avaiable by cloning the repository:

$ git clone https://github.com/KenethGarcia/ClassiPyGRB
$ cd ClassiPyGRB
$ pip install .

Or, using pip:

$ pip install ClassiPyGRB@git+https://github.com/KenethGarcia/ClassiPyGRB

or by using the stable PyPI compiled version:

$ pip install ClassiPyGRB

Features

In ClassiPyGRB, it is possible to retrieve data from the Swift/BAT catalog by a three-line code:

from ClassiPyGRB import SWIFT
swift = SWIFT(res=64)
df = swift.obtain_data(name='GRB211211A')

Moreover, you can plot a light curve using one single line:

swift.plot_any_grb(name='GRB060614')

You can do specialized tasks to see the convergence of t-Distributed Stochastic Neighbor Embedding (TSNE):

convergence

or use a Graphical User Interface (GUI) to analyze the embeddings obtained by TSNE:

GUI

We strongly encourage you to read the Documentation of ClassiPyGRB before start. This documentation includes all the details and follow-up for managing and processing data from Swift/BAT, performing TSNE, plotting and animating their results, and how to use the internal GUI. Moreover, we developed intuitive notebooks to support you in your research.

Enhancement and Support

ClassiPyGRB is a open-source package where all kinds of contributions are welcome. Whether you want to report a bug or submit a pull request, your feedback, comments and suggestions will be very welcome.

Here are some ways you can get involved in this project:

  • Report a bug or issue on our GitHub Issues page.
  • Suggest a new feature or improvement by opening a new issue.
  • Submit a pull request with your code changes or enhancements.
  • Share ClassiPyGRB on social media or with your colleagues.

We appreciate your interest in this package. Please, do not hesitate to email Keneth Garcia to discuss any topic related to ClassiPyGRB.

Metadata

Release files for ClassiPyGRB 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ClassiPyGRB 1.0.0
File Size Uploaded
ClassiPyGRB-1.0.0.tar.gz 287.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ClassiPyGRB 1.0.0
File Interpreter ABI Platform
ClassiPyGRB-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 558.0 kB

Release files / ClassiPyGRB-1.0.0.tar.gz

Download URL ClassiPyGRB-1.0.0.tar.gz
Size 287.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7275a08d6a8838c73392db8f87179d571962c54abaa3543813e7a9079c39e2dc
BLAKE2b-256 checksum
How to use checksums
7977d30aa4b268795d2c1b3b1ba9129cb64de40a41d817ef1ce638a28b6e9f4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.7

Release files / ClassiPyGRB-1.0.0-py3-none-any.whl

Download URL ClassiPyGRB-1.0.0-py3-none-any.whl
Size 270.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c1dc6a123946b10d226d0a2778fc8a7fa174b2d6a6cd55051f3579090703912
BLAKE2b-256 checksum
How to use checksums
143d3befd0a7475dcb9c7b05b8fed012f3cb9a3cbf0dd3aeeeb3f19d578833d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.7

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page