Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Relaxation History

View the loss convergence from generate() or shell_relax():

cell.plot_shell_relax()

Returns a matplotlib figure showing:

Parameters

cell.plot_shell_relax(log_y=False)

Accessing raw history

The history arrays are stored on the supercell:

hist = cell.shell_relax_history
hist["step"]              # step index
hist["loss"]              # total loss per step
hist["best_loss"]
hist["bond_loss"]
hist["angle_loss"]
hist["repulsion_loss"]