Browse Source

Fix warning message in power window

Yentl Van Tendeloo 7 years ago
parent
commit
439b7e598c
2 changed files with 5 additions and 2 deletions
  1. 4 1
      bootstrap/core_algorithm.alc
  2. 1 1
      wrappers/modelverse_SCCD.py

+ 4 - 1
bootstrap/core_algorithm.alc

@@ -44,7 +44,10 @@ String function get_filename(name : String):
 	return list_pop_final(string_split(name, "/"))!
 	return list_pop_final(string_split(name, "/"))!
 
 
 String function full_name(model_id : String):
 String function full_name(model_id : String):
-	return read_attribute(core, model_id, "name")!
+	if (dict_in(core["model"], model_id)):
+		return read_attribute(core, model_id, "name")!
+	else:
+		return read_root()!
 
 
 Void function initialize_core():
 Void function initialize_core():
 	// TODO make this more flexible by putting it in the bootstrap in a similar way as other models
 	// TODO make this more flexible by putting it in the bootstrap in a similar way as other models

+ 1 - 1
wrappers/modelverse_SCCD.py

@@ -1,7 +1,7 @@
 """
 """
 Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
 Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
 
 
-Date:   Tue Mar 20 15:56:14 2018
+Date:   Sat Mar 24 15:39:35 2018
 
 
 Model author: Yentl Van Tendeloo
 Model author: Yentl Van Tendeloo
 Model name:   MvK Server
 Model name:   MvK Server