first key removal
This commit is contained in:
parent
f58d2ec3b6
commit
0c69743767
|
@ -125,8 +125,12 @@ def addBurst(values):
|
|||
#and save the new plot
|
||||
show_dynamic(injectedSpectra, f"{basename} Dynamic Spectra and {values.dm} DM Pulse", save=True)
|
||||
#now generate new filterbank file
|
||||
|
||||
sigprocObj = make_sigproc_object(**(filterbankObj.your_header.__dict__))
|
||||
#build header from original file
|
||||
headerDic = filterbankObj.your_header.__dict__
|
||||
#remove extraneous keys
|
||||
for key in ['filelist']:
|
||||
headerDic.pop(key, None)
|
||||
sigprocObj = make_sigproc_object(**headerDic)
|
||||
newName = f"{basename}_injected.fil"
|
||||
sigprocObj.write_header(newName)
|
||||
sigprocObj.append_spectra(injectedSpectra, newName)
|
||||
|
|
Loading…
Reference in a new issue