Browse Source

Fix warning message in power window

Yentl Van Tendeloo 7 years ago
parent
commit
2dd9242776
3 changed files with 5 additions and 2 deletions
  1. BIN
      bootstrap/bootstrap.m.gz
  2. 4 1
      bootstrap/core_algorithm.alc
  3. 1 1
      wrappers/modelverse_SCCD.py

BIN
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, "/"))!
 
 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():
 	// 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)
 
-Date:   Tue Mar 20 15:56:14 2018
+Date:   Sat Mar 24 15:39:35 2018
 
 Model author: Yentl Van Tendeloo
 Model name:   MvK Server