diff options
| author | Frederick Muriuki Muriithi <fredmanglis@gmail.com> | 2026-10-15 16:14:25 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi <fredmanglis@gmail.com> | 2026-10-15 16:14:25 -0500 |
| commit | a6b59242f213a9e7eae3bf315c1e913817879764 (patch) | |
| tree | 86397cb454f3ac5703bf32b29cd364672243d350 /scripts/genotypes | |
| parent | 6058bcb6c11060647819a1790b05f4ea144bb2b3 (diff) | |
| download | gn-uploader-a6b59242f213a9e7eae3bf315c1e913817879764.tar.gz | |
Deduplicate logging.
Diffstat (limited to 'scripts/genotypes')
| -rw-r--r-- | scripts/genotypes/preprocess_csv_collect_info.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/genotypes/preprocess_csv_collect_info.py b/scripts/genotypes/preprocess_csv_collect_info.py index 6b3b574..f8cdeed 100644 --- a/scripts/genotypes/preprocess_csv_collect_info.py +++ b/scripts/genotypes/preprocess_csv_collect_info.py @@ -323,7 +323,6 @@ def file_stats_multiprocessing( chunk_size: int = MULTIPROCESSING_CHUNK_SIZE ) -> FileStats: """File stats from the lines in the file using multiple processes.""" - logger.debug("THE FILE HEADERS: %s", headers) with mproc.Pool(max(1, mproc.cpu_count() - 1)) as pool: chunks = ((headers, fileconfigs, chunk) for chunk in _read_chunks(lines, chunk_size)) @@ -365,6 +364,7 @@ def compute_statistics(filepath: Path, fileconfigs: dict) -> FileStats: lambda line: (is_blank_line(line) or is_comment_line(line) or is_dot_geno_line(line))) + logger.debug("THE FILE HEADERS: %s", headers) basic_stats = os.stat(filepath) lines = read_text_file(filepath) return (file_stats_multiprocessing(fileconfigs, headers, lines) @@ -388,7 +388,6 @@ def file_stats_singlethread( lines: Iterable[str] ) -> FileStats: """File stats from the lines in the file using a single-threaded process.""" - logger.debug("THE FILE HEADERS: %s", headers) return _as_file_stats( _accumulate(headers, fileconfigs, lines), identify_columns(headers, fileconfigs).samples, |
