SIENTIAPDE-1445
Refactor gather_read_tags function to accept a logger parameter and replace print statements with structured logging for improved traceability.
This commit is contained in:
@@ -386,7 +386,7 @@ def predictions_batch(config: dict[str, Any]):
|
||||
}
|
||||
|
||||
|
||||
def gather_read_tags(pipelines: list[dict[str, Any]]) -> dict[str, Any]:
|
||||
def gather_read_tags(pipelines: list[dict[str, Any]], logger) -> dict[str, Any]:
|
||||
"""
|
||||
Gather all read tags from input pipelines.
|
||||
|
||||
@@ -405,7 +405,8 @@ def gather_read_tags(pipelines: list[dict[str, Any]]) -> dict[str, Any]:
|
||||
|
||||
# Get all read tags from pipelines
|
||||
for pipeline in pipelines:
|
||||
print("asdddddddddddddddddddddddddd", pipeline['workflow_type'], pipeline.get('read_tags', []))
|
||||
logger.info(
|
||||
f'Processing pipeline: {pipeline["workflow_type"]}: {pipeline.get("read_tags", [])}')
|
||||
if pipeline['workflow_type'] != 'scouter':
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user