From a98104b4744297f793a3d1227397818359ceb3ea Mon Sep 17 00:00:00 2001 From: Fabian Jankowski Date: Fri, 21 Jun 2024 00:06:36 +0200 Subject: [PATCH] Match what we do in the filterbank loader. We should consider the tscrunch factor too. --- scatfit/archive.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scatfit/archive.py b/scatfit/archive.py index e9f853b..d232ad6 100644 --- a/scatfit/archive.py +++ b/scatfit/archive.py @@ -351,9 +351,7 @@ def load_frb_data(filename, dm, fscrunch, tscrunch): # dedisperse cand.set_dm(dm) - dynspec = ( - cand.scrunched_data(f=fscrunch, t=tscrunch, select="left") / fscrunch # **0.5 - ) + dynspec = cand.scrunched_data(f=fscrunch, t=tscrunch, select="left") / fscrunch**0.5 cand.dynspec = dynspec times = np.arange(cand.nsamp // tscrunch) * cand.tsamp * tscrunch cand.tval = times