Skip to content

add module for spin filter#243

Merged
vijayvarma392 merged 9 commits into
mainfrom
filter_spin
Mar 30, 2026
Merged

add module for spin filter#243
vijayvarma392 merged 9 commits into
mainfrom
filter_spin

Conversation

@md-arif-shaikh
Copy link
Copy Markdown
Collaborator

No description provided.

@md-arif-shaikh md-arif-shaikh marked this pull request as draft March 9, 2026 16:49
@md-arif-shaikh
Copy link
Copy Markdown
Collaborator Author

Implements filtering of spin-induced sub-orbitalscale oscillations in amplitude/frequency. Follows the procedure described in Sec. 2.7 of https://arxiv.org/pdf/2507.08345

@md-arif-shaikh
Copy link
Copy Markdown
Collaborator Author

Hi @vijayvarma392, at this point I would like to have comments on this PR. I have prepared a diagnostic pdf for precessing NR cases for the LVK review. Here is a version with about 20 cases.
qc_precessing_filtering_demo.pdf

@md-arif-shaikh md-arif-shaikh marked this pull request as ready for review March 17, 2026 05:50
@md-arif-shaikh
Copy link
Copy Markdown
Collaborator Author

Comparing eSpEC vs egw at initial times
eSpec_vs_egw_filter_demo

@md-arif-shaikh
Copy link
Copy Markdown
Collaborator Author

@vijayvarma392 just a reminded that we need to merge this as soon as possible for the LVK review.

Copy link
Copy Markdown
Owner

@vijayvarma392 vijayvarma392 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only minor comments, looks good otherwise.



def _pn_model(t, t_merger, A, power):
"""Post-Newtonian model for secular trend.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a reference for this formula if you have one

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

f"Unknown fit data type: {data_type}. "
f"Allowed data types are: {allowed_data_types}")

power = -3.0/8.0 if data_type == "omega" else -1.0/4.0
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add reference

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread gw_eccentricity/spin_filter.py Outdated

We set the requirement for filtering to True when the mode asymmetry
becomes greater than a threshold fraction of (2, 2) mode in the
coprecessing frame.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refer to the section of the paper where this is discussed. Do similar references throughout this code, as necessary.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

def _get_fcut_fecc_fspin(t, data, f_spin_guess,
fspin_lo_frac, fspin_hi_frac,
fecc_lo_frac, fecc_hi_frac, verbose):
"""Get f_cutoff, f_ecc, and f_spin from the amplitude spectrum.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refer to the section in the paper

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@md-arif-shaikh
Copy link
Copy Markdown
Collaborator Author

@vijayvarma392 can you have another look?

@md-arif-shaikh
Copy link
Copy Markdown
Collaborator Author

@vijayvarma392 gentle reminder.

@vijayvarma392 vijayvarma392 merged commit 24c03b2 into main Mar 30, 2026
3 checks passed
@vijayvarma392 vijayvarma392 deleted the filter_spin branch March 30, 2026 16:09
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.

2 participants