Logger affecting downstream packages
It seems that the pyseobnr
logger is affecting downstream analyses. This can be seen in the code snippet below:
from pesummary.utils.utils import logger
logger.info("INFO")
logger.debug("DEBUG")
print("import pyseobnr")
from pyseobnr.generate_waveform import generate_prec_hpc_opt
logger.info("INFO")
logger.debug("DEBUG")
with output:
2023-10-23 07:04:36 PESummary INFO : INFO
import pyseobnr
2023-10-23 07:04:43 PESummary INFO : INFO
INFO:PESummary:INFO
DEBUG:PESummary:DEBUG
As you can see, after pyseobnr
is imported, PESummary's logger now has two additional statements: INFO:PESummary:INFO
and DEBUG:PESummary:DEBUG
. Ideally the above code snippet would print:
2023-10-23 07:04:36 PESummary INFO : INFO
import pyseobnr
2023-10-23 07:04:43 PESummary INFO : INFO