remove trunc file to save space

This commit is contained in:
Sakimori 2025-07-30 14:16:19 -04:00
parent d9dad7cd68
commit 4a3df5d017
No known key found for this signature in database

View file

@ -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.")