Skip to content

Add PulsarPeriodogram class (Fixes #243)#961

Open
tsharan17 wants to merge 2 commits intoStingraySoftware:mainfrom
tsharan17:feat-pulsar-periodogram
Open

Add PulsarPeriodogram class (Fixes #243)#961
tsharan17 wants to merge 2 commits intoStingraySoftware:mainfrom
tsharan17:feat-pulsar-periodogram

Conversation

@tsharan17
Copy link
Copy Markdown

Description

This PR addresses issue #243 by implementing a high-level PulsarPeriodogram class. This allows users to easily run and visualize Epoch Folding and $Z^2_n$ searches on EventLists without manually managing frequency grids or plotting.

Changes Made

  • Added stingray/pulse/periodogram.py containing the PulsarPeriodogram class.
  • Exposed the class in stingray/pulse/__init__.py.
  • The class wraps epoch_folding_search and z_n_search.
  • Added a plot() method to visualize both statistics side-by-side.

Testing

  • Verified locally with a synthetic pulsar signal (5.0 Hz).
  • Confirmed that epoch_folding_search and z_n_search are called correctly.

Closes #243

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create periodogram for Epoch folding

1 participant