From b2fa30c53c07d0206a0edbc4bfa8b742baf7a69a Mon Sep 17 00:00:00 2001 From: Sofia Stamouli <91951607+sofstam@users.noreply.github.com> Date: Tue, 5 Dec 2023 16:41:37 +0100 Subject: [PATCH] Review suggestion Co-authored-by: ChristianOertlin --- cg/meta/workflow/nf_analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cg/meta/workflow/nf_analysis.py b/cg/meta/workflow/nf_analysis.py index 8280fd0cb9..60acc4a6d3 100644 --- a/cg/meta/workflow/nf_analysis.py +++ b/cg/meta/workflow/nf_analysis.py @@ -337,7 +337,7 @@ def validate_qc_metrics(self, case_id: str, dry_run: bool = False) -> None: qc_metrics_raw: dict = ReadFile.get_content_from_file( file_format=FileFormat.YAML, file_path=metrics_deliverables_path ) - MetricsDeliverablesCondition(**qc_metrics_raw) + MetricsDeliverablesCondition.model_validate(qc_metrics_raw) except MetricsQCError as error: LOG.error(f"QC metrics failed for {case_id}") self.trailblazer_api.set_analysis_status(case_id=case_id, status=AnalysisStatus.FAILED)