Paste #151
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 21 22 23 24 25 26 27 28 29 | import yt import time yt.enable_parallelism() # start timer t1 = time.time() # load data ds = yt.load("Data_000001") # heavy works p1 = yt.ProjectionPlot(ds, "x", "density") p2 = yt.ProjectionPlot(ds, "y", "density") p3 = yt.ProjectionPlot(ds, "z", "density") p1 = yt.ProjectionPlot(ds, "x", "density") p2 = yt.ProjectionPlot(ds, "y", "density") p3 = yt.ProjectionPlot(ds, "z", "density") v, c = ds.find_max("density") v, c = ds.find_max("density") v, c = ds.find_max("density") # end timer t2 = time.time() # show elapsed time if yt.is_root(): print("yt completed %f sec" % (t2-t1)) |