MCPcopy Create free account
hub / github.com/WizardOfMenlo/stir / get_table

Function get_table

graph_script.py:225–238  ·  view source on GitHub ↗
(data, stir_key, fri_key, xs, rates)

Source from the content-addressed store, hash-verified

223 return initial
224
225def get_table(data, stir_key, fri_key, xs, rates):
226 table_entries = []
227 for rate in rates:
228 row = []
229 for d in xs:
230 entry = data[(data['starting_degree'] == d) & (data['starting_rate'] == rate)]
231 if entry.empty:
232 row.append(None)
233 else:
234 stir_time = entry[stir_key].values[0]
235 fri_time = entry[fri_key].values[0]
236 row.append((stir_time, fri_time))
237 table_entries.append(row)
238 return table_entries
239
240def format_prover(table, rates):
241 result = []

Callers 1

make_latex_tablesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected