MCPcopy Create free account
hub / github.com/comaps/comaps / __repr__

Method __repr__

tools/python/mwm/mwm_interface.py:272–288  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

270 pass
271
272 def __repr__(self):
273 si = "\n".join(
274 [
275 f" {s}"
276 for s in sorted(self.sections_info().values(), key=lambda x: x.offset)
277 ]
278 )
279 return (
280 f"Mwm[\n"
281 f" name: {self.name()}\n"
282 f" type: {self.type()}\n"
283 f" version: {self.version()}\n"
284 f" number of features: {len(self)}\n"
285 f" bounds: {self.bounds()}\n"
286 f" sections info: [\n{si} \n ]\n"
287 f"]"
288 )
289
290 def to_json(self, with_features=False):
291 m = {

Callers

nothing calls this directly

Calls 6

sections_infoMethod · 0.95
nameMethod · 0.95
typeMethod · 0.95
versionMethod · 0.95
boundsMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected