MCPcopy Create free account
hub / github.com/dds-bridge/dds / dd_table_results_to_dict

Function dd_table_results_to_dict

python/src/converters.cpp:264–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264auto dd_table_results_to_dict(const DdTableResults& table_results) -> py::dict
265{
266 py::list rows;
267 for (int strain = 0; strain < DDS_STRAINS; ++strain) {
268 py::list row;
269 for (int hand = 0; hand < DDS_HANDS; ++hand) {
270 row.append(table_results.res_table[strain][hand]);
271 }
272 rows.append(row);
273 }
274
275 py::dict result;
276 result["res_table"] = rows;
277 return result;
278}
279
280auto par_results_to_dict(const ParResults& par_results) -> py::dict
281{

Callers 3

register_table_bindingsFunction · 0.85
dd_tables_res_to_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected