MCPcopy
hub / github.com/WebODM/WebODM / lightning_on_processing_node_removed

Function lightning_on_processing_node_removed

coreplugins/lightning/plugin.py:158–165  ·  view source on GitHub ↗
(sender, processing_node_id, **kwargs)

Source from the content-addressed store, hash-verified

156
157@receiver(signals.processing_node_removed, dispatch_uid="lightning_on_processing_node_removed")
158def lightning_on_processing_node_removed(sender, processing_node_id, **kwargs):
159 node_ids = ds.get_json('nodes', [])
160 try:
161 node_ids.remove(processing_node_id)
162 logger.info("Removing lightning node {}".format(str(processing_node_id)))
163 ds.set_json('nodes', node_ids)
164 except ValueError:
165 pass

Callers

nothing calls this directly

Calls 4

get_jsonMethod · 0.80
set_jsonMethod · 0.80
removeMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected