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

Simplify fft + fix PeriodicSampling window #541

Merged
merged 15 commits into from
Jul 19, 2024
Merged

Simplify fft + fix PeriodicSampling window #541

merged 15 commits into from
Jul 19, 2024

Conversation

blegouix
Copy link
Collaborator

@blegouix blegouix commented Jul 12, 2024

Rely on the formula:

k=2*pi*(N-1)^2/N/(xmax-xmin)

equivalent to:

k=2*pi*(N-1)/(b-a)

To identify the coordinate of the last point of the spectral mesh.

Also fix the misalignment to numpy.fftfreq of the convention to describe a periodic window.

@blegouix blegouix self-assigned this Jul 12, 2024
@blegouix blegouix marked this pull request as draft July 12, 2024 12:49
@blegouix blegouix marked this pull request as ready for review July 12, 2024 12:57
@tpadioleau
Copy link
Member

Please add tests about the coordinates generated by init_fourier_space

@blegouix blegouix changed the title Simplify fft Simplify fft + fix PeriodicSampling window Jul 17, 2024
@blegouix blegouix marked this pull request as draft July 17, 2024 09:46
@blegouix blegouix marked this pull request as ready for review July 17, 2024 10:41
Copy link
Member

@tpadioleau tpadioleau left a comment

Choose a reason for hiding this comment

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

Looks simpler indeed

@blegouix blegouix mentioned this pull request Jul 18, 2024
blegouix and others added 2 commits July 18, 2024 17:08
Co-authored-by: Thomas Padioleau <thomas.padioleau@cea.fr>
Copy link
Member

@tpadioleau tpadioleau left a comment

Choose a reason for hiding this comment

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

Seems good to me

@blegouix blegouix merged commit f68884d into main Jul 19, 2024
9 checks passed
@blegouix blegouix deleted the simplify-fft branch July 19, 2024 07:26
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