| 188 | } |
| 189 | |
| 190 | py::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 | } |
nothing calls this directly
no test coverage detected