We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
qc_masks
1 parent cfd7a91 commit ed81db0Copy full SHA for ed81db0
CPAC/registration/guardrails.py
@@ -83,6 +83,8 @@ def registration_guardrail(registered: str, reference: str, retry: bool = False
83
for metric, threshold in REGISTRATION_GUARDRAIL_THRESHOLDS.items():
84
if threshold is not None:
85
value = qc_metrics.get(metric)
86
+ if isinstance(value, list):
87
+ value = value[0]
88
if value < threshold:
89
with open(f'{registered}.failed_qc', 'w',
90
encoding='utf-8') as _f:
0 commit comments