Skip to content

Commit a15556d

Browse files
committed
Add metrics for plot_energy
1 parent 5051a17 commit a15556d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/plot.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ def plot_energy(system: System, trajectories: [ArrayLike], log_plot: bool):
2929
plt.ylabel('Energy')
3030
energies = jnp.array([system.U(t) for t in trajectories])
3131

32+
print(f"Min energy: {jnp.min(energies, axis=-1)}")
33+
print(f"Max energy: {jnp.max(energies, axis=-1)}")
34+
3235
if log_plot:
3336
min_energy = jnp.min(energies)
3437
if min_energy < 0:

0 commit comments

Comments
 (0)