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

Method getNumericMetadata

src/python/handler/py_GDMR.cpp:288–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288std::optional<std::vector<tomoto::Float>> DocumentObject::getNumericMetadata() const
289{
290 if (corpus->isIndependent()) throw py::AttributeError{ "doc has no `numericMetadata` field!" };
291 if (!doc) throw py::RuntimeError{ "doc is null!" };
292 if (auto ret = docVisit<tomoto::DocumentGDMR>(getBoundDoc(), [](auto* doc) -> std::optional<std::vector<tomoto::Float>>
293 {
294 return doc->metadataOrg;
295 })) return ret;
296 throw py::AttributeError{ "doc has no `numericMetadata` field!" };
297}

Callers

nothing calls this directly

Calls 1

isIndependentMethod · 0.80

Tested by

no test coverage detected