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

Method getBeta

src/python/handler/py_CT.cpp:69–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69py::UniqueObj DocumentObject::getBeta() const
70{
71 if (corpus->isIndependent()) throw py::AttributeError{ "doc has no `beta` field!" };
72 if (!doc) throw py::RuntimeError{ "doc is null!" };
73
74 if (auto ret = docVisit<tomoto::DocumentCTM>(getBoundDoc(), [](auto* doc)
75 {
76 return py::buildPyValueTransform(
77 doc->smBeta.data(), doc->smBeta.data() + doc->smBeta.size(),
78 logf
79 );
80 })) return ret;
81 throw py::AttributeError{ "doc has no `beta` field!" };
82}

Callers

nothing calls this directly

Calls 4

buildPyValueTransformFunction · 0.85
isIndependentMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected