Changes for page Code description
Last modified by galluzziandrea on 2022/06/20 12:33
From version 2.2
edited by galluzziandrea
on 2021/12/09 12:35
on 2021/12/09 12:35
Change comment:
There is no comment for this version
To version 3.1
edited by galluzziandrea
on 2021/12/09 14:37
on 2021/12/09 14:37
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,25 +1,39 @@ 1 -== Code Description == 1 +== Code Description: == 2 2 3 +=== Introduction (path and modules) === 3 3 5 +First of all we check the path and import the necessary modules . 4 4 7 +==== Check where I am and place myself in the right folder : ==== 8 + 5 5 {{code language="python"}} 6 -x = 1 7 -if x == 1: 8 - # indented four spaces 9 - print("x is 1.") 10 +# Import the os module 11 +import os 12 + 13 +#Print the current working directory 14 +print("Current working directory: {0}".format(os.getcwd())) 15 + 16 +# Change the current working directory 17 +os.chdir('/mnt/user/shared/Slow waves in fading anesthesia/Nest3Python3') 18 + 19 +# Print the current working directory 20 +print("Current working directory: {0}".format(os.getcwd())) 10 10 {{/code}} 11 11 12 -(% class="wikigeneratedid" %) 13 -=== === 23 +==== import the modules necessary for the simulation ==== 14 14 15 15 {{code language="python"}} 16 -x = 1 17 -if x == 1: 18 - # indented four spaces 19 - print("x is 1.") 26 +import nest 27 +import time 28 +from numpy import exp 29 +import numpy 30 +import math 31 +import random 32 +import multiprocessing 33 +Inizio=time.time() 34 +print('tempo di Inizio:',Inizio) 20 20 {{/code}} 21 21 22 -(% class="wikigeneratedid" %) 23 23 === === 24 24 25 25 === Results ===
- Introduction (path and modules):
- Check where I am and place myself in the right folder:
- Import the modules necessary for the simulation:
- Define necessary classes to import the Initialization Files:
- Import the initialization files:
- Defining general and nest.kernel parameters
- Building the network: neuronal populations , Poisson processes and spike detectors
- Connecting the network nodes: neuronal populations, Poisson processes and spike detectors
- Simulating: neuronal time evolution.
- Results: