Wiki source code of Code description

Version 3.1 by galluzziandrea on 2021/12/09 14:37

Hide last authors
galluzziandrea 3.1 1 == Code Description: ==
galluzziandrea 1.1 2
galluzziandrea 3.1 3 === Introduction (path and modules) ===
galluzziandrea 1.1 4
galluzziandrea 3.1 5 First of all we check the path and import the necessary modules .
galluzziandrea 1.1 6
galluzziandrea 3.1 7 ==== Check where I am and place myself in the right folder : ====
8
galluzziandrea 2.2 9 {{code language="python"}}
galluzziandrea 3.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()))
galluzziandrea 2.2 21 {{/code}}
galluzziandrea 1.1 22
galluzziandrea 3.1 23 ==== import the modules necessary for the simulation ====
galluzziandrea 1.1 24
25 {{code language="python"}}
galluzziandrea 3.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)
galluzziandrea 1.1 35 {{/code}}
36
galluzziandrea 2.2 37 === ===
38
39 === Results ===
40
41 ==== ====