Skip to main content

Burst waveform

Build Status PyPI version License

This package hosts the python version of the burst waveform used in coherentWaveBurst(cWB) search.

Installation

Using pip

pip install burst-waveform

from source

make install

Usage

The Burst-Waveform package provides four burst waveform models: SineGaussian, SineGaussianQ, WhiteNoiseBurst, and Ringdown.

The waveforms can be generated by calling the instance of the waveform model after initializing it with the desired parameters.

For example, to generate a SineGaussianQ waveform,

from burst_waveform.models import SineGaussianQ
from matplotlib import pyplot as plt

params = {
    "amplitude": 1.0,
    "frequency": 300.0,
    "Q": 9
}

model = SineGaussianQ(params)
strain = model()

plt.plot(strain)
plt.show()

For WhiteNoiseBurst waveform,

from burst_waveform.models import WhiteNoiseBurst
import matplotlib.pyplot as plt

params = {
    'frequency': 300,
    'bandwidth': 50,
    'duration': 0.005,
    'inj_length': 1,
    'mode': 1
}

WNB = WhiteNoiseBurst(params)
wnb_strain = WNB()

plt.plot(wnb_strain)
plt.xlim(0.5 - 10 * params['duration'], 0.5 + 10 * params['duration'])
plt.show()

For Ringdown waveform,

import numpy as np
from burst_waveform.models import Ringdown
from matplotlib import pyplot as plt

params = {
    "tau": 0.3,
    "frequency": 10.0,
    "iota": np.pi / 2,  # inclination angle in radians (90 deg)
}

model = Ringdown(params)
hp, hc = model()

plt.plot(hp)
plt.plot(hc)
plt.show()

Metadata

Release files for burst-waveform 0.3.1

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

Source distribution (sdist)

Source distribution for burst-waveform 0.3.1
File Size Uploaded
burst_waveform-0.3.1.tar.gz 1.6 MB Details

Release files / burst_waveform-0.3.1.tar.gz

Download URL burst_waveform-0.3.1.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
904b621e07088f0fc402cb88ac060a395f902014933372f4ee887a01484e7aa0
BLAKE2b-256 checksum
How to use checksums
c65b4244baea1575bed8657f873d4441fea01f9b87eea5e04db8c729325bbd3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.21

Release history Release notifications | RSS feed

0.5.0

1 release file

0.4.1

1 release file

0.4.0

1 release file

This release

0.3.1 This release

1 release file

0.3.0

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.1.1

1 release file

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