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

Method getZ2

src/python/handler/py_PA.cpp:190–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190py::UniqueObj DocumentObject::getZ2() const
191{
192 if (corpus->isIndependent()) throw py::AttributeError{ "doc has no `Z2s` field!" };
193 if (!doc) throw py::RuntimeError{ "doc is null!" };
194 if (auto ret = docVisit<tomoto::DocumentPA>(getBoundDoc(), [](auto* doc)
195 {
196 return buildPyValueReorder(doc->Z2s, doc->wOrder);
197 })) return ret;
198 throw py::AttributeError{ "doc has no `Z2s` field!" };
199}

Callers

nothing calls this directly

Calls 2

buildPyValueReorderFunction · 0.85
isIndependentMethod · 0.80

Tested by

no test coverage detected