BatchResult#
- class zrad.batch.results.BatchResult(workflow: str, case_results: list)[source]#
Summary returned by batch workflows.
BatchResultprovides shared aggregate reporting for preprocessing, filtering, and radiomics batch runs. The individual case-result objects are workflow-specific, but they all expose astatusfield and may expose anerrorfield.- Parameters:
workflow (str) – Name of the batch workflow, such as
"preprocessing","filtering", or"radiomics".case_results (list) – Workflow-specific case-result objects.
Properties
- BatchResult.errors#
Case results that include an error message.
- Returns:
errors – Case-result objects where
erroris not empty.- Return type:
list
- BatchResult.failed_count#
Number of cases with
status == "failed".- Returns:
count – Count of failed case results.
- Return type:
int
- BatchResult.processed_count#
Number of cases with
status == "processed".- Returns:
count – Count of successfully processed case results.
- Return type:
int
- BatchResult.skipped_count#
Number of cases with
status == "skipped".- Returns:
count – Count of skipped case results.
- Return type:
int
- BatchResult.total_count#
Total number of selected cases.
- Returns:
count – Number of case results stored in
case_results.- Return type:
int