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

Method getWindows

src/python/handler/py_MGLDA.cpp:107–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107py::UniqueObj DocumentObject::getWindows() const
108{
109 if (corpus->isIndependent()) throw py::AttributeError{ "doc has no `Vs` field!" };
110 if (!doc) throw py::RuntimeError{ "doc is null!" };
111 if (auto ret = docVisit<tomoto::DocumentMGLDA>(getBoundDoc(), [](auto* doc)
112 {
113 return buildPyValueReorder(doc->Vs, doc->wOrder);
114 })) return ret;
115 throw py::AttributeError{ "doc has no `Vs` field!" };
116}

Callers

nothing calls this directly

Calls 2

buildPyValueReorderFunction · 0.85
isIndependentMethod · 0.80

Tested by

no test coverage detected