diff options
Diffstat (limited to 'Tools/video_yt.py')
-rw-r--r-- | Tools/video_yt.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/video_yt.py b/Tools/video_yt.py index a4cf409ad..a63881cb5 100644 --- a/Tools/video_yt.py +++ b/Tools/video_yt.py @@ -11,11 +11,11 @@ def img_onestep(filename): # Load the data ds = yt.load( filename ) - ad = ds.all_data() + ad = ds.all_data() # Calculate the z position of the box. -# You can use ds.domain_right_edge[2] instead. However, if a moving window -# was used in the simulation, the rendering shows some jitter. +# You can use ds.domain_right_edge[2] instead. However, if a moving window +# was used in the simulation, the rendering shows some jitter. # This is because a cell is added in z at some iterations but not all. # These lines calculate this jitter z_shift and remove it from the camera position and focus iteration=int(filename[-5:]) @@ -39,7 +39,7 @@ def img_onestep(filename): z0 = ad['particle0','particle_position_z'].v vertices0 = np.column_stack((x0,y0,z0)) colors0 = np.tile(colors0_vect,(vertices0.shape[0], 1)) - colors0[:,3] = .01 + colors0[:,3] = .01 point0 = yt.visualization.volume_rendering.render_source.PointSource(vertices0, colors=colors0, radii=2) # particle1: read data and create a yt source object x1 = ad['particle1','particle_position_x'].v @@ -95,7 +95,7 @@ def img_onestep(filename): # Save file sc.save(filename + '_quarter.png', sigma_clip=1.) return 0 - + # Get plt folders in current folder and loop over them. file_list = glob.glob('./plt?????') for filename in file_list: |