Skip to content

Conversation

@prayush
Copy link
Contributor

@prayush prayush commented Apr 13, 2025

When generating ESIGMA waveforms, this PR will enable us to specify the initial conditions at a reference frequency, which can be larger than the starting GW frequency. Currently we only support the cases where the reference frequency is equal to or lower than the starting GW frequency.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

esigmapy/generator.py:213

  • The error message still references 'orbital_var_names' even though the valid names are now stored in 'all_orbital_var_names'. Please update the error message to reflect the correct variable.
f"{name} is not a valid orbital variable name. Available orbital variable names are: {orbital_var_names}."

@prayush prayush requested a review from Copilot April 13, 2025 19:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

esigmapy/generator.py:221

  • The backward integration branch computes orbital parameters using ls.SimInspiralESIGMADynamicsBackwardInTime and then immediately calls ls.SimInspiralENIGMADynamics with the updated parameters. Please add a clarifying comment to document the rationale behind this two-step integration process.
elif f_ref > f_lower:

mean_anomaly = l.data.data[-1]
f_start = f_lower
elif f_ref < f_lower:
itime = time.perf_counter()
Copy link

Copilot AI Apr 13, 2025

Choose a reason for hiding this comment

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

The variable 'itime' is assigned multiple times across different branches. If these timing measurements are important, consider consolidating them or adding comments to clarify their distinct purposes.

Suggested change
itime = time.perf_counter()
timing_data["f_ref_less_start"] = time.perf_counter() # Start timing when f_ref < f_lower

Copilot uses AI. Check for mistakes.
@prayush prayush force-pushed the backward_integration branch from 2af8da9 to 161b008 Compare April 13, 2025 19:37
@prayush prayush requested a review from kaushikush April 13, 2025 20:07
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.

1 participant