tsave images and animations in source folder - Granular.jl - Julia package for … | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 9148d8ee767f8f220e657051565d787d01f4770b | |
parent 1d013a32cf62e62e9e244a426c3e74894841febd | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 1 Nov 2017 11:23:54 -0400 | |
save images and animations in source folder | |
Diffstat: | |
M src/io.jl | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/src/io.jl b/src/io.jl | |
t@@ -886,7 +886,7 @@ renderView1.InteractionMode = '2D' | |
""") | |
if save_animation | |
write(f, """ | |
-SaveAnimation('$(folder)/$(simulation.id).avi', renderView1, | |
+SaveAnimation('$(vtk_folder)/$(simulation.id).avi', renderView1, | |
ImageResolution=[$(width), $(height)], | |
FrameRate=$(framerate), | |
FrameWindow=[0, $(simulation.file_number)]) | |
t@@ -904,7 +904,7 @@ FrameWindow=[0, $(simulation.file_number)]) | |
end | |
if verbose | |
info("$(filename) written, execute with " * | |
- "'pvpython $(folder)/$(simulation.id).py'") | |
+ "'pvpython $(vtk_folder)/$(simulation.id).py'") | |
end | |
end | |
t@@ -935,7 +935,7 @@ function render(simulation::Simulation; pvpython::String="… | |
if images | |
try | |
run(`convert -trim +repage -delay 10 -transparent-color white | |
- -loop 0 $(simulation.id)/$(simulation.id)'*'.png | |
+ -loop 0 $(simulation.id)/$(simulation.id).'*'.png | |
$(simulation.id)/$(simulation.id).gif`) | |
catch return_signal | |
if isa(return_signal, Base.UVError) |