remove trunc file to save space
This commit is contained in:
parent
d9dad7cd68
commit
4a3df5d017
|
@ -1,7 +1,7 @@
|
|||
#! /minish/keh00032/.conda/envs/keh00032/bin/python
|
||||
|
||||
import logging
|
||||
from os import path, chdir, getcwd, makedirs
|
||||
from os import path, chdir, getcwd, makedirs, remove
|
||||
from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser
|
||||
from typing import Union
|
||||
from datetime import datetime
|
||||
|
@ -184,6 +184,8 @@ def addBurst(values):
|
|||
logger.info("Saving filterbank...")
|
||||
sigprocObj.append_spectra(injectedSpectra, newName)
|
||||
logger.info(f"{newName} successfully written.")
|
||||
os.remove(path.join("./", f"{basename}_trunc.fil")) #delete truncated file to save 2GB of disk space
|
||||
logger.info(f"Truncated file removed.")
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue