Skip to main content

pyhough

DOI PyPI version License

pyhough is a Python package implementing the (Generalized) Frequency-Hough transform for searching (transient) continuous gravitational waves from:

  • Asymmetrically rotating neutron stars
  • Planetary-mass primordial black hole (PBH) binaries
  • Newborn neutron stars

This method maps time-frequency tracks from spectrograms (e.g., created by PyFstat) into the frequency–spindown parameter space, allowing efficient searches for weak, long-duration gravitational-wave signals.

The frequency-Hough Transform can be applied to either the spectrogram directly after thresholding (and selecting local maxima) to create the peakmap

The Generalized frequency-Hough transform is implemented, but no Python codes exist yet to inject and recover PBH inspirals or signals from newborn neutron stars. Help is welcome on these fronts.


Features

  • Construct time–frequency peakmaps from preprocessed data
  • Doppler correction for sources in the sky
  • Standard Frequency-Hough transform for persistent CW signals
  • Generalized Frequency-Hough transform for transient or chirping signals

Installation

pip install pyhough

Contributions

Contributions are welcome, especially in the following areas:

  • Signal injection and recovery tools for PBH binaries and newborn neutron stars

  • Unit tests and test coverage

  • Improving documentation and usage examples

  • Feel free to open issues or submit pull requests!

If you use this code, please cite the public, version-independent Zenodo entry:

DOI

and also cite the papers that are the basis behind the codes:

The frequency-Hough has been developed by the Rome Virgo group for all-sky searches for continuous waves from non-axisymmetric, rotating neutron stars and can be cited as:

@article{Astone:2014esa,
    author = "Astone, Pia and Colla, Alberto and D'Antonio, Sabrina and Frasca, Sergio and Palomba, Cristiano",
    title = "{Method for all-sky searches of continuous gravitational wave signals using the frequency-Hough transform}",
    eprint = "1407.8333",
    archivePrefix = "arXiv",
    primaryClass = "astro-ph.IM",
    doi = "10.1103/PhysRevD.90.042002",
    journal = "Phys. Rev. D",
    volume = "90",
    number = "4",
    pages = "042002",
    year = "2014"
}

The Generalized Frequency-Hough transform has been developed by the Rome Virgo group for transient continuous-wave searches for newborn neutron stars and can be cited as:

@article{Miller:2018rbg,
    author = "Miller, Andrew and others",
    title = "{Method to search for long duration gravitational wave transients from isolated neutron stars using the generalized frequency-Hough transform}",
    eprint = "1810.09784",
    archivePrefix = "arXiv",
    primaryClass = "astro-ph.IM",
    doi = "10.1103/PhysRevD.98.102004",
    journal = "Phys. Rev. D",
    volume = "98",
    number = "10",
    pages = "102004",
    year = "2018"
}

It has been further generalized to search for gravitational waves from inspiraling planetary-mass primordial black hole binaries:

@article{Miller:2020kmv,
    author = "Miller, Andrew L. and Clesse, S\'ebastien and De Lillo, Federico and Bruno, Giacomo and Depasse, Antoine and Tanasijczuk, Andres",
    title = "{Probing planetary-mass primordial black holes with continuous gravitational waves}",
    eprint = "2012.12983",
    archivePrefix = "arXiv",
    primaryClass = "astro-ph.HE",
    doi = "10.1016/j.dark.2021.100836",
    journal = "Phys. Dark Univ.",
    volume = "32",
    pages = "100836",
    year = "2021"
}

@article{Miller:2024jpo,
    author = "Miller, Andrew L. and Aggarwal, Nancy and Clesse, Sebastien and De Lillo, Federico and Sachdev, Surabhi and Astone, Pia and Palomba, Cristiano and Piccinni, Ornella J. and Pierini, Lorenzo",
    title = "{Method to search for inspiraling planetary-mass ultracompact binaries using the generalized frequency-Hough transform in LIGO O3a data}",
    eprint = "2407.17052",
    archivePrefix = "arXiv",
    primaryClass = "astro-ph.IM",
    doi = "10.1103/PhysRevD.110.082004",
    journal = "Phys. Rev. D",
    volume = "110",
    number = "8",
    pages = "082004",
    year = "2024"
}

Release files for pyhough 0.0.15

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

Source distribution (sdist)

Source distribution for pyhough 0.0.15
File Size Uploaded
pyhough-0.0.15.tar.gz 1.5 MB Details

Built distribution (wheel)

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

Total release size: 1.6 MB

Release files / pyhough-0.0.15.tar.gz

Download URL pyhough-0.0.15.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
f1c82315f3e860d549949fbb3efff8ebf2f3c2faee431085186439b8e2068d86
BLAKE2b-256 checksum
How to use checksums
b356c77184c05b4b460937b386d8f1ded2f156bd8605806fbbb515856df44110
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.13

Release files / pyhough-0.0.15-py3-none-any.whl

Download URL pyhough-0.0.15-py3-none-any.whl
Size 52.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1af00edadcd12db1a758e286bbe706f41d2c3c3d173ceb85b28fcab24e5f53df
BLAKE2b-256 checksum
How to use checksums
c43dc72592515e770098b14a3d9b3467bc7a63b096a1406175081d083543f42b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.0.15 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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