MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / render_environment

Function render_environment

benchmarks/src/postprocessing/overview.py:148–167  ·  view source on GitHub ↗
(
    level: int,
    entry_map: EntryMap,
    environment: str,
    environment_params: str,
    data: pd.DataFrame,
)

Source from the content-addressed store, hash-verified

146
147
148def render_environment(
149 level: int,
150 entry_map: EntryMap,
151 environment: str,
152 environment_params: str,
153 data: pd.DataFrame,
154):
155 content = "<h3>Aggregated durations</h3>"
156 with pd_print_all():
157 table = data["duration"].describe().to_frame().transpose()
158 table = table.to_html(justify="center")
159 content += table
160
161 items = sorted(data.itertuples(index=False), key=lambda v: v.index)
162 for item in items:
163 entry = entry_map.get(item.key)
164 if entry is not None:
165 content += render_benchmark(entry)
166
167 return content
168
169
170def render_workload(

Callers 1

render_workloadFunction · 0.85

Calls 3

pd_print_allFunction · 0.85
render_benchmarkFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected