Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move Tasks from a plugin to s4u
[simgrid.git] / examples / python / task-io / task-io.py
index 18a4cb2..431a789 100644 (file)
@@ -17,14 +17,13 @@ def parse():
     )
     return parser.parse_args()
 
-def callback( t):
-    print(f'[{Engine.clock}] { t} finished ({ t.count})')
+def callback(t):
+    print(f'[{Engine.clock}] {t} finished ({t.count})')
 
 if __name__ == '__main__':
     args = parse()
     e = Engine(sys.argv)
     e.load_platform(args.platform)
-    Task.init()
 
     # Retrieve hosts
     bob = e.host_by_name('bob')
@@ -48,4 +47,4 @@ if __name__ == '__main__':
     exec1.enqueue_execs(2)
 
     # runs the simulation
-    e.run()
\ No newline at end of file
+    e.run()