neuropercolation/examples/Simulate1Layer.py

29 lines
793 B
Python
Raw Permalink Normal View History

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 18 19:05:04 2023
@author: astral
"""
2023-08-23 14:25:27 +00:00
from datetime import datetime
import numpy as np
from neuropercolation import Simulate1Layer
2023-08-19 20:18:44 +00:00
#eps_space = np.linspace(0.005,0.5,100)
2023-09-30 17:53:06 +00:00
eps_space = np.linspace(0.01,0.5,50)
stp = 1000100
2023-08-19 20:18:44 +00:00
2023-09-30 17:53:06 +00:00
for dim in range(11,21,2):
for eps in eps_space:
eps = round(eps,3)
2023-09-30 17:53:06 +00:00
Simulate1Layer(dim,
eps,
2023-09-30 17:53:06 +00:00
steps=stp,
init = 0,
draw=None,
res=6,
save='all',
path=f'/cloud/Public/_data/neuropercolation/1lay/steps={stp}/dim={dim:02}/',
)
print(f'Done eps={eps:.3f} with dim={dim} at {datetime.now()}')