MCPcopy Index your code
hub / github.com/diffgram/diffgram / build_relation

Function build_relation

shared/export/export_generation.py:607–615  ·  view source on GitHub ↗
(relation: Instance)

Source from the content-addressed store, hash-verified

605
606
607def build_relation(relation: Instance):
608 out = {
609 'type': relation.type,
610 'label_file_id': relation.label_file_id,
611 'attribute_groups': relation.attribute_groups,
612 'from_instance_id': relation.from_instance_id,
613 'to_instance_id': relation.to_instance_id
614 }
615 return out
616
617
618def base_instance_packet(instance):

Callers 2

build_geopacketFunction · 0.85
build_text_packetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected