diff --git a/pbp/logging_helper.py b/pbp/logging_helper.py index 0ad343f..05c89cb 100644 --- a/pbp/logging_helper.py +++ b/pbp/logging_helper.py @@ -68,4 +68,4 @@ def create_logger_info(log_filename: str): log.add( sink=open(log_filename, "w"), level="DEBUG", format=default_format, enqueue=True ) - return log \ No newline at end of file + return log diff --git a/pbp/meta_gen/gen_iclisten.py b/pbp/meta_gen/gen_iclisten.py index ddacae2..0935357 100644 --- a/pbp/meta_gen/gen_iclisten.py +++ b/pbp/meta_gen/gen_iclisten.py @@ -187,10 +187,11 @@ def run(self): self.df[self.df["start"] >= self.start], self.json_base_dir, self.start, - self.end + self.end, ) self.log.info(f"Coverage plot saved to {plot_file}") + if __name__ == "__main__": from pbp.logging_helper import create_logger diff --git a/pbp/meta_gen/gen_nrs.py b/pbp/meta_gen/gen_nrs.py index cc89c25..98c318d 100644 --- a/pbp/meta_gen/gen_nrs.py +++ b/pbp/meta_gen/gen_nrs.py @@ -162,7 +162,7 @@ def run(self): self.df[self.df["start"] >= self.start], self.json_base_dir, self.start, - self.end + self.end, ) self.log.info(f"Coverage plot saved to {plot_file}")