From 45d7e21336f0958ce66260f4e76c44ffcb273ec1 Mon Sep 17 00:00:00 2001 From: Jacob Wilkins Date: Fri, 11 Oct 2024 15:44:57 +0100 Subject: [PATCH] Switch to fftfreq --- janus_core/processing/post_process.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/janus_core/processing/post_process.py b/janus_core/processing/post_process.py index 421a61da..ac5c0971 100644 --- a/janus_core/processing/post_process.py +++ b/janus_core/processing/post_process.py @@ -1,5 +1,5 @@ """Module for post-processing trajectories.""" - +1;4000;35c from collections.abc import Sequence from itertools import combinations_with_replacement from typing import Optional, Union @@ -278,7 +278,7 @@ def compute_vaf( if fft: vafs = np.fft.fft(vafs, axis=0) - lags = 1. / lags + lags = np.fft.fftfreq(nsteps, time_step) vafs = ( lags,