neuropercolation/examples/Simulate1Layer.py
2023-09-30 19:53:06 +02:00

29 lines
793 B
Python

#!/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 Simulate1Layer
#eps_space = np.linspace(0.005,0.5,100)
eps_space = np.linspace(0.01,0.5,50)
stp = 1000100
for dim in range(11,21,2):
for eps in eps_space:
eps = round(eps,3)
Simulate1Layer(dim,
eps,
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()}')