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

Method getTimepoint

src/python/handler/py_DT.cpp:169–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169size_t DocumentObject::getTimepoint() const
170{
171 if (corpus->isIndependent()) throw py::AttributeError{ "doc has no `timepoint` field!" };
172 if (!doc) throw py::RuntimeError{ "doc is null!" };
173 if (auto ret = docVisit<tomoto::DocumentDTM>(getBoundDoc(), [](auto* doc) -> std::optional<size_t>
174 {
175 return doc->timepoint;
176 })) return *ret;
177 throw py::AttributeError{ "doc has no `timepoint` field!" };
178}

Callers

nothing calls this directly

Calls 1

isIndependentMethod · 0.80

Tested by

no test coverage detected