| 105 | } |
| 106 | |
| 107 | py::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 | } |
nothing calls this directly
no test coverage detected