changeset 56:f5e078e903df

update PLACE location function.
author casties
date Tue, 25 Apr 2017 16:27:02 +0200
parents 5a1a4af235eb
children be1c7d6814b6
files importFromOpenMind/importer/model2model.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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]