56 std::stringstream oss;
65 double sparseness = 0.02;
78 po::options_description desc(
"Allowed options");
80 (
"help",
"produce help message")
81 (
"simtime", po::value<double>(),
"simulation time")
82 (
"fast",
"turns off most monitoring to reduce IO")
83 (
"dir", po::value<string>(),
"load/save directory")
84 (
"fee", po::value<string>(),
"file with EE connections")
85 (
"fei", po::value<string>(),
"file with EI connections")
86 (
"fie", po::value<string>(),
"file with IE connections")
87 (
"fii", po::value<string>(),
"file with II connections")
91 po::store(po::parse_command_line(ac, av, desc), vm);
94 if (vm.count(
"help")) {
95 std::cout << desc <<
"\n";
99 if (vm.count(
"simtime")) {
100 simtime = vm[
"simtime"].as<
double>();
103 if (vm.count(
"fast")) {
107 if (vm.count(
"dir")) {
108 dir = vm[
"dir"].as<
string>();
111 if (vm.count(
"fee")) {
112 fwmat_ee = vm[
"fee"].as<
string>();
115 if (vm.count(
"fie")) {
116 fwmat_ie = vm[
"fie"].as<
string>();
119 if (vm.count(
"fei")) {
120 fwmat_ei = vm[
"fei"].as<
string>();
123 if (vm.count(
"fii")) {
124 fwmat_ii = vm[
"fii"].as<
string>();
128 catch(std::exception& e) {
129 std::cerr <<
"error: " << e.what() <<
"\n";
133 std::cerr <<
"Exception of unknown type!\n";
139 string outputfile = oss.str();
184 msg =
"Setting up monitors ...";
187 std::stringstream filename;
188 filename << outputfile <<
"e.ras";
193 filename << outputfile <<
"i.ras";
201 if (!
sys->run(simtime,
true))
206 char filenamebuf [255];
207 sprintf(filenamebuf,
"%s/elapsed.dat", dir.c_str());
208 std::ofstream timefile;
209 timefile.open(filenamebuf);
void auryn_free()
Cleanly shuts down Auryn simulation environment.
Definition: auryn_global.cpp:107
Standard Glutamatergic (excitatory) transmission.
Definition: auryn_definitions.h:139
void set_logfile_loglevel(LogMessageType level=NOTIFICATION)
Sets loglevel for file output.
Definition: Logger.cpp:63
unsigned int mpi_rank()
Returns current rank.
Definition: System.cpp:1009
double get_last_elapsed_time()
Returns last elapsed time in seconds.
Definition: System.cpp:956
void set_state(std::string name, AurynState val)
Conveniently sets all values in a state vector identified by name in this group.
Definition: NeuronGroup.cpp:132
virtual bool load_from_complete_file(string filename)
Loads weight matrix from a single file.
Definition: SparseConnection.cpp:921
The base class to create sparse random connections.
Definition: SparseConnection.h:66
Logger * logger
Global pointer to instance of Logger which needs to be initialized in every simulation main program...
Definition: auryn_global.cpp:36
The standard Monitor object to record spikes from a SpikingGroup and write them to a text file...
Definition: SpikeMonitor.h:52
bool quiet
Switch to turn output to quiet mode (no progress bar).
Definition: System.h:158
void auryn_abort(int errcode)
Terminates Auryn simulation abnormally.
Definition: auryn_global.cpp:113
System * sys
Global pointer to instance of System which needs to be initialized in every simulation main program...
Definition: auryn_global.cpp:37
Conductance based LIF neuron model with absolute refractoriness as used in Vogels and Abbott 2005...
Definition: TIFGroup.h:38
void auryn_init(int ac, char *av[], string dir, string simulation_name, string logfile_prefix, LogMessageType filelog_level, LogMessageType consolelog_level)
Initalizes MPI and the Auryn simulation environment.
Definition: auryn_global.cpp:84
Standard Gabaergic (inhibitory) transmission.
Definition: auryn_definitions.h:140
void msg(std::string text, LogMessageType type=NOTIFICATION, bool global=false, int line=-1, std::string srcfile="")
Definition: Logger.cpp:74
void set_refractory_period(AurynDouble t)
Setter for refractory time [s].
Definition: TIFGroup.cpp:204
unsigned int NeuronID
NeuronID is an unsigned integeger type used to index neurons in Auryn.
Definition: auryn_definitions.h:151