File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/guidellm/presentation Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -219,11 +219,14 @@ class BenchmarkDatum(BaseModel):
219
219
@classmethod
220
220
def get_strategy_display_str (cls , strategy : SchedulingStrategy ):
221
221
strategy_type = strategy if isinstance (strategy , str ) else strategy .type_
222
+ strategy_instance = (
223
+ strategy if isinstance (strategy , SchedulingStrategy ) else None
224
+ )
222
225
223
226
if strategy_type == "concurrent" :
224
- rate = f"@{ strategy .streams } "
227
+ rate = f"@{ strategy .streams } " if strategy_instance else "@##" # type: ignore[attr-defined]
225
228
elif strategy_type in ("constant" , "poisson" ):
226
- rate = f"@{ strategy .rate :.2f} "
229
+ rate = f"@{ strategy .rate :.2f} " if strategy_instance else "@#.##" # type: ignore[attr-defined]
227
230
else :
228
231
rate = ""
229
232
return f"{ strategy_type } { rate } "
You can’t perform that action at this time.
0 commit comments