File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1099,6 +1099,9 @@ def get_metric_values(
1099
1099
max_points = max_points or - 1 ,
1100
1100
)
1101
1101
1102
+ if not run_metrics :
1103
+ return None
1104
+
1102
1105
if aggregate :
1103
1106
return aggregated_metrics_to_dataframe (
1104
1107
run_metrics , xaxis = xaxis , parse_to = output_format
@@ -1156,6 +1159,12 @@ def plot_metrics(
1156
1159
aggregate = False ,
1157
1160
)
1158
1161
1162
+ if data is None :
1163
+ raise RuntimeError (
1164
+ f"Cannot plot metrics { metric_names } , "
1165
+ f"no data found for runs { run_ids } ."
1166
+ )
1167
+
1159
1168
# Undo multi-indexing
1160
1169
flattened_df = data .reset_index ()
1161
1170
Original file line number Diff line number Diff line change @@ -120,6 +120,12 @@ def parse_run_set_metrics(
120
120
ValueError
121
121
if an unrecognised parse format is specified
122
122
"""
123
+ if not request_response_data :
124
+ if parse_to == "dataframe" :
125
+ return pandas .DataFrame ({})
126
+ else :
127
+ return {}
128
+
123
129
_all_steps : list [float ] = sorted (
124
130
set (
125
131
(
You can’t perform that action at this time.
0 commit comments