瀏覽代碼

Fix warning message in power window

Yentl Van Tendeloo 7 年之前
父節點
當前提交
2dd9242776
共有 3 個文件被更改,包括 5 次插入2 次删除
  1. 二進制
      bootstrap/bootstrap.m.gz
  2. 4 1
      bootstrap/core_algorithm.alc
  3. 1 1
      wrappers/modelverse_SCCD.py

二進制
bootstrap/bootstrap.m.gz


+ 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