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.
1 parent dff88de commit 31a1480Copy full SHA for 31a1480
cyclops/report/report.py
@@ -1096,9 +1096,15 @@ def export(
1096
else:
1097
today_now = dt_datetime.now().strftime("%Y-%m-%d %H:%M:%S")
1098
1099
- current_report_metrics: List[List[PerformanceMetric]] = []
+ current_report_metrics: Union[
1100
+ List[List[PerformanceMetric]], List[PerformanceMetric]
1101
+ ] = []
1102
sweep_metrics(self._model_card, current_report_metrics)
- current_report_metrics_set = current_report_metrics[0]
1103
+ current_report_metrics_set = (
1104
+ current_report_metrics[0]
1105
+ if isinstance(current_report_metrics[0], list)
1106
+ else [current_report_metrics[0]]
1107
+ )
1108
1109
report_paths = glob.glob(
1110
os.path.join(
0 commit comments