changed structure of first write

This commit is contained in:
Sakimori 2025-07-21 15:58:36 -04:00
parent c383ac76e1
commit 8d0629c6cf
No known key found for this signature in database

View file

@ -81,8 +81,7 @@ def addBurst(values):
#the full filterbanks use 64GB in RAM, so we write out a truncated version and load that instead.
filWriter = Writer(filterbankObj, outdir="./", outname = f"{basename}_trunc", nstart = 0, nsamp = samples)
spectra = filterbankObj.get_data(0, samples)
filWriter.to_fil(data=spectra)
filWriter.to_fil()
#replace filterbankObj object and reload spectra (spectra should be the same but just in case)
filterbankObj = Your(path.join("./", f"{basename}_trunc.fil"))
spectra = filterbankObj.get_data(0, samples)