Skip to content

Commit 21e7a7e

Browse files
committed
turn off animation saving in epoch workshop scripts
1 parent ab9bc80 commit 21e7a7e

4 files changed

Lines changed: 18 additions & 12 deletions

File tree

docs/epoch_workshop_2026/animating/animate_1D_density.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212

1313
anim = ds["Derived_Number_Density"].epoch.animate()
1414

15-
# Save the animation
16-
anim.save(input_dir / "number_density.gif", fps=5)
17-
# Or visualise it in a Jupyter notebook
15+
# Visualise it in a Jupyter notebook
1816
anim.show()
17+
18+
# Or save the animation
19+
# anim.save(input_dir / "number_density.gif", fps=5)

docs/epoch_workshop_2026/animating/animate_1D_poynting_flux.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
I_Wcm2.attrs["units"] = "W/cm$^2$"
2626

2727
anim = I_Wcm2.epoch.animate()
28-
# Save the animation
29-
anim.save(input_dir / "laser.gif", fps=10)
30-
# Or visualise it in a Jupyter notebook
28+
29+
# Visualise it in a Jupyter notebook
3130
anim.show()
31+
32+
# Or save the animation
33+
# anim.save(input_dir / "laser.gif", fps=10)

docs/epoch_workshop_2026/animating/animate_2D_dist_fn_multispecies.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
total_phase_space.attrs["units"] = "kg.m/s"
2020

2121
anim = total_phase_space.epoch.animate()
22-
# Save the animation
23-
anim.save(input_dir / "phase_space.gif")
24-
# Or visualise it in a Jupyter notebook
22+
# Visualise it in a Jupyter notebook
2523
anim.show()
24+
25+
# Or save the animation
26+
# anim.save(input_dir / "phase_space.gif")

docs/epoch_workshop_2026/animating/animate_2D_poynting_flux.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
I_Wcm2.attrs["units"] = "W/cm$^2$"
2626

2727
anim = I_Wcm2.epoch.animate()
28-
# Save the animation
29-
anim.save(input_dir / "laser.gif", fps=10)
30-
# Or visualise it in a Jupyter notebook
28+
29+
# Visualise it in a Jupyter notebook
3130
anim.show()
31+
32+
# Or save the animation
33+
# anim.save(input_dir / "laser.gif", fps=10)

0 commit comments

Comments
 (0)