# HG changeset patch # User casties # Date 1493130422 -7200 # Node ID f5e078e903dfee5ddff5f27ca2ab27914ccad3d4 # Parent 5a1a4af235eb5b85017301d0b7ec2b770ce72776 update PLACE location function. diff -r 5a1a4af235eb -r f5e078e903df importFromOpenMind/importer/model2model.py --- a/importFromOpenMind/importer/model2model.py Fri Apr 21 19:08:09 2017 +0200 +++ b/importFromOpenMind/importer/model2model.py Tue Apr 25 16:27:02 2017 +0200 @@ -10,7 +10,7 @@ # operations #ops = ['locate', 'contract', 'inv_rels', 'add_links'] -ops = ['locate', 'add_links'] +ops = ['locate'] # types of object to locate locate_objects_of_type = ['PLACE'] @@ -75,7 +75,7 @@ attrs = nx_graph.node[n] if attrs[node_type_attribute] in locate_objects_of_type: # locatable object - name = attrs['label'] + name = attrs['name'] if name in locations: # place name match location = locations[name]