There is a newer version of the record available.

Published August 22, 2025 | Version v0.1
Software Open

cjules0609/PromptX: v0.1

  • 1. ROR icon University of Nevada, Las Vegas
  • 2. EDMO icon University of Wisconsin-Madison
  • 3. ROR icon University of Hong Kong

Description

# PromptX

Prompt X-ray emission from neutron star mergers, calculated for structured relativistic outflows at any viewing angle.

## Overview

PromptX simulates the emission from gamma-ray burst (GRB) jets and magnetar-powered winds using phenomenological models. It supports Gaussian, power-law, and top-hat outflows, calculating spectra and light curves observed from arbitrary angles.

## Features

- Structured jet and wind emission modeling
- Doppler-boosted observer-frame calculations
- Light curve and spectrum generation across X-ray and gamma-ray bands

## System Compatibility

The code has currently only been tested on macOS. It may work on other operating systems, but has not been extensively tested or officially supported. All documentation assumes a Unix-based system (e.g., macOS or Linux).

## Installation

```bash
git clone https://github.com/cjules0609/promptx.git
cd promptx
pip install -r requirements.txt
```

## Example Usage

To run default examples:

   ```bash
   cd scripts/
   python examples.py
   ```

Outputs are saved to ./scripts/out directory.

## Documentation
Full documentation is available locally by following these steps:

1. Install Sphinx and ReadTheDocs theme:
   ```bash 
   pip install sphinx sphinx-rtd-theme
   ```

2. Build the HTML
   ```bash
   sphinx-build -b html docs/source docs/build
   ```

3. Open the HTML documentation
   ```bash
   open docs/build/index.html
   ```

## License
MIT License

## Acknowledgements
[Chen, Wang, and Zhang (2025)](https://doi.org/10.48550/arXiv.2505.01606).

Files

cjules0609/PromptX-v0.1.zip

Files (24.1 kB)

Name Size Download all
md5:3b7c3eea6df8518f584bf88ca6cbcd52
24.1 kB Preview Download

Additional details

Related works

Is supplement to
Software: https://github.com/cjules0609/PromptX/tree/v0.1 (URL)
Publication: arXiv:2505.01606 (arXiv)

Software

Repository URL
https://github.com/cjules0609/PromptX
Programming language
Python
Development Status
Active