Changes for page Code description
Last modified by galluzziandrea on 2022/06/20 12:33
From version 1.1
edited by galluzziandrea
on 2021/12/09 12:33
on 2021/12/09 12:33
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,30 +1,41 @@ 1 -== H2HeadingsWill Appearin Tableof Content==1 +== Code Description: == 2 2 3 +=== Introduction (path and modules) === 3 3 4 - Loremipsum doloritamet, consecteturadipiscing elit,seddoeiusmod tempor incididuntutlaboreet dolore magna aliqua. Utenimad minim veniam, quis nostrudexercitation ullamcolaboris nisi utaliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderitinvoluptatevelit esse cillum dolore eu fugiat nulla pariatur.Excepteur sintoccaecat cupidatat non proident, sunt in culpa qui officia deseruntmollit anim id est laborum.5 +First of all we check the path and import the necessary modules . 5 5 6 - >Thisis a quote.Youcanaddaquotebyectingsometextand clickingthe quotebutton in the editor.7 +==== Check where I am and place myself in the right folder : ==== 7 7 8 -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 9 +{{code language="python"}} 10 +# Import the os module 11 +import os 9 9 10 -=== H3 Headings Will Appear In The Table of Content === 13 +#Print the current working directory 14 +print("Current working directory: {0}".format(os.getcwd())) 11 11 12 -==== You can also add images ==== 16 +# Change the current working directory 17 +os.chdir('/mnt/user/shared/Slow waves in fading anesthesia/Nest3Python3') 13 13 14 -[[image:Collaboratory.Apps.Article.Code.ArticleSheet@placeholder.jpg]] 19 +# Print the current working directory 20 +print("Current working directory: {0}".format(os.getcwd())) 21 +{{/code}} 15 15 16 - PhotobyDavidClode23 +==== import the modules necessary for the simulation ==== 17 17 18 -==== Or code ==== 19 - 20 -Code blocks can be added by using the code macro: 21 - 22 22 {{code language="python"}} 23 -x = 1 24 -if x == 1: 25 - # indented four spaces 26 - 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) 27 27 {{/code}} 28 28 29 -(% class="wikigeneratedid" id="HH4Won27tAppearinToC" %) 30 - 37 +=== === 38 + 39 +=== Results === 40 + 41 +==== ====
- 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: