Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Mar 15, 2024
1 parent 88f5f90 commit 213baef
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions swiftsimio/visualisation/power_spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ def deposition_to_power_spectrum(

box_size = box_size[0] / folding
npix = deposition.shape[0]
pixel_size = box_size / npix

# Convert to overdensity
mean_deposition = np.mean(deposition.v)
Expand All @@ -291,8 +290,6 @@ def deposition_to_power_spectrum(
fft = np.fft.fftn(overdensity / np.prod(deposition.shape))
fourier_amplitudes = (fft * fft.conj()).real * box_size ** 3

kfreq = np.fft.fftfreq(n=npix, d=pixel_size)

# Calculate k-value spacing (centered FFT)
dk = 2 * np.pi / (box_size)

Expand Down

0 comments on commit 213baef

Please sign in to comment.