MCPcopy Create free account
hub / github.com/bab2min/tomotopy / getZFromHDP

Method getZFromHDP

src/python/handler/py_HDP.cpp:70–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70py::UniqueObj DocumentObject::getZFromHDP() const
71{
72 return docVisit<tomoto::DocumentHDP>(getBoundDoc(), [](auto* doc)
73 {
74 return buildPyValueReorder(doc->Zs, doc->wOrder, [doc](tomoto::Tid x) -> int16_t
75 {
76 if (x == tomoto::non_topic_id) return -1;
77 return doc->numTopicByTable[x].topic;
78 });
79 });
80}

Callers

nothing calls this directly

Calls 1

buildPyValueReorderFunction · 0.85

Tested by

no test coverage detected