neuropercolation/examples/Simulate2Layers.py

28 lines
748 B
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
2023-09-30 17:53:06 +00:00
from neuropercolation import Simulate2Layers
2023-08-23 14:25:27 +00:00
eps_space = np.linspace(0.005,0.5,100)
#eps_space = np.linspace(0.135,0.15,4)
2023-09-30 17:53:06 +00:00
dims=list(range(21,27,2))
for dim in [101]:
for eps in [0.15]:
2023-08-23 14:25:27 +00:00
eps = round(eps,3)
sim = Simulate2Layers(dim,
eps,
steps=100100,
2023-09-30 17:53:06 +00:00
draw='pygame',
2023-08-23 14:25:27 +00:00
save='all',
path=f'/cloud/Public/_data/neuropercolation/2lay/steps=100100/dim={dim:02}/',
)
2023-09-30 17:53:06 +00:00
print(f'Done eps={eps:.3f} with dim={dim} at {datetime.now()}')