Paste #152
Welcome To LodgeIt
Welcome to the LodgeIt pastebin. In order to use the notification feature a 31 day cookie with an unique ID was created for you. The lodgeit database does not store any information about you, it's just used for an advanced pastebin experience :-). Read more on the about lodgeit page. Have fun :-)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import yt import time yt.enable_parallelism() # load data ds = yt.load("Data_000025") # start timer t1 = time.time() # heavy works p1 = yt.ProjectionPlot(ds, "x", "density") # end timer t2 = time.time() # show elapsed time if yt.is_root(): print("yt completed %f sec" % (t2-t1)) |