Fixed typos

This commit is contained in:
Kenneth Jao 2021-09-19 02:58:20 -04:00
parent 61c2862fb9
commit 51ddede5c7
3 changed files with 7 additions and 4 deletions

4
.gitignore vendored
View File

@ -7,4 +7,6 @@ src/packsim.c
figures figures
simulations simulations
old_simulations old_simulations
*.json

View File

@ -69,7 +69,7 @@ This mode simulates the relaxing of the objects to its equilibrium. The threshol
``` ```
#### Search #### Search
This mode searches for equilibrium until `eq_stop_count` equilibria are found. Additionally, if the nullity of the Hessian at the equilibrium is greater than 2. (This is due to periodicity, as any translation is another equilibrium.) In this case, the `manifold_step_size` parameter is used to traverse along it. This mode searches for equilibrium until `eq_stop_count` equilibria are found. Additionally, the nullity of the Hessian at the equilibrium may be greater than 2. (2 is guaranteed by periodicity, as any translation is another equilibrium.) In this case, the `manifold_step_size` parameter is used to traverse along it.
```jsonc ```jsonc
{ {

View File

@ -26,7 +26,7 @@ def get_torus_config_energies(n: int, widths: np.ndarray, h: float, r: float,
sim = Simulation(n, w, h, r, energy) sim = Simulation(n, w, h, r, energy)
configs = [] configs = []
for j in range(1): for j in range(2):
for c in range(1,n): # Ignore 0, tends to error. for c in range(1,n): # Ignore 0, tends to error.
config = (1,c) if j == 0 else (c,1) config = (1,c) if j == 0 else (c,1)
sim.add_frame(torus=config) sim.add_frame(torus=config)
@ -132,7 +132,8 @@ def main():
ax.title.set_text('Basin of Attraction') ax.title.set_text('Basin of Attraction')
ax.set_xlabel("Width") ax.set_xlabel("Width")
ax.set_ylabel("Disordered Equilibria") ax.set_ylabel("Disordered Equilibria")
ax.set_yticks(np.arange(0,105, 5)) boa_y_min = round(min(all_disorder_count)/20)*20 - 5
ax.set_yticks(np.arange(boa_y_min, 100.01, 2.5))
fig.savefig(fig_folder / "Basin of Attraction.png") fig.savefig(fig_folder / "Basin of Attraction.png")