MCPcopy Index your code
hub / github.com/SpectacularAI/sdk / onMappingOutput

Method onMappingOutput

python/cli/visualization/visualizer.py:491–504  ·  view source on GitHub ↗
(self, mapperOutput)

Source from the content-addressed store, hash-verified

489 if self.shouldQuit: break
490
491 def onMappingOutput(self, mapperOutput):
492 if self.shouldQuit: return
493
494 output = {
495 "type" : "slam",
496 "mapperOutput" : mapperOutput,
497 "time" : time.time()
498 }
499 self.mapperOutputQueue.append(output)
500
501 MAX_MAPPER_OUTPUT_QUEUE_SIZE = 10
502 if len(self.mapperOutputQueue) > MAX_MAPPER_OUTPUT_QUEUE_SIZE:
503 self.mapperOutputQueue.pop(0)
504 print("Warning: Dropping mapper output in visualizer (processing too slow!)")
505
506 def run(self):
507 vioOutput = None

Callers 5

process_mapping_outputFunction · 0.45
on_mapping_outputFunction · 0.45
processMapperOutputMethod · 0.45
startMethod · 0.45
process_mapping_outputFunction · 0.45

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected