neuropercolation/examples/Simulate4Layers.py

34 lines
1.1 KiB
Python
Raw Normal View History

2023-08-23 14:25:27 +00:00
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 18 19:05:04 2023
@author: astral
"""
from datetime import datetime
import numpy as np
from neuropercolation import Simulate4Layers
eps_space = np.linspace(0.005,0.5,100)
#eps_space = np.linspace(0.135,0.15,4)
stp = 1000100
2023-08-27 19:12:43 +00:00
for batch in range(5):
for dim in [8]:
2023-08-23 14:25:27 +00:00
for eps in eps_space[1:41:2]:
eps = round(eps,3)
2023-08-27 19:12:43 +00:00
cons = [(n,(n+m)%dim) for n in range(dim) for m in [0,int(dim/2)]]
initstate = [[0,0],[0,0]]
2023-08-23 14:25:27 +00:00
sim = Simulate4Layers(dim,
eps,
coupling=cons,
2023-08-27 19:12:43 +00:00
init=initstate,
2023-08-23 14:25:27 +00:00
steps=stp,
draw=None,
res=2,
save='simple',
2023-08-27 19:12:43 +00:00
path=f'/cloud/Public/_data/neuropercolation/4lay/cons={len(cons)}-2diag_steps={stp}/dim={dim:02}/batch={batch}/',
2023-08-23 14:25:27 +00:00
)
print(f'Done eps={eps:.3f} with dim={dim} at {datetime.now()}')