Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Implement the last (?) Python functions needed for the tutorial
[simgrid.git] / examples / python / platform-profile / platform-profile.py
index 399fde7299ba3105b5dd2e9e64bd50b5ab6fe015..5c1cd2044038c23588a57f58d00e160fc38658e8 100644 (file)
@@ -38,10 +38,8 @@ if __name__ == '__main__':
 
   # 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.set_speed_profile("""
-0 1.0
-2 0.5
-""", 2)
+  lili.set_speed_profile("""0 1.0
+2 0.5""", 2)
   lili.seal()
 
   # Add a watcher of the changes