Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 2nd monotonic requirement; fixes subtle bug affecting some CCE outputs #93

Merged
merged 4 commits into from
Jun 4, 2024

Conversation

keefemitman
Copy link
Contributor

@moble should be an easy review; fixes a bug that occurs when the output CCE data has time steps with differences ~1e-15, which are set to zero when doing -= float(radius) and screw up the monotonicity of the time array.

Comment on lines 609 to 614
time=WM_ref.t,
ell_max=WM_ref.ell_max,
time=WMs[list(WMs.keys())[0]].t,
ell_max=WMs[list(WMs.keys())[0]].ell_max,
Copy link
Owner

Choose a reason for hiding this comment

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

Why not still just use WM_ref here? No copy was made, so WM_ref should have been changed in the same way, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point; reverted back!

@keefemitman
Copy link
Contributor Author

@moble not sure why the latest commit is causing test_supertranslation_inverses to fail... none of the code changed is relevant to that function... is something I should investigate?

@moble
Copy link
Owner

moble commented Jun 4, 2024

I just made a commit that I thought should solve it, but I now realize won't do anything at all. In any case, this is possibly a bad test, and the failure certainly unrelated to this commit, so I'll just merge this and deal with any failures later. (Maybe I'll just disable the test if it keeps happening.)

@moble moble merged commit 644fd19 into moble:main Jun 4, 2024
4 checks passed
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