changed structure of first write
This commit is contained in:
parent
c383ac76e1
commit
8d0629c6cf
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue