Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[python] cleanup Engine getters/setters
[simgrid.git] / examples / python / platform-profile / platform-profile.py
index f4cf53b..1fb9611 100644 (file)
@@ -37,7 +37,7 @@ if __name__ == '__main__':
   e.load_platform(sys.argv[1])
 
   # Add a new host programmatically, and attach a simple speed profile to it (alternate between full and half speed every two seconds
-  lili = e.get_netzone_root().create_host("Lilibeth", 25e6)
+  lili = e.netzone_root.create_host("Lilibeth", 25e6)
   lili.set_speed_profile("""0 1.0
 2 0.5""", 2)
   lili.seal()