38 std::stringstream oss;
47 double sparseness = 0.02;
60 po::options_description desc(
"Allowed options");
62 (
"help",
"produce help message")
63 (
"simtime", po::value<double>(),
"simulation time")
64 (
"fast",
"turns off most monitoring to reduce IO")
65 (
"dir", po::value<string>(),
"load/save directory")
66 (
"fee", po::value<string>(),
"file with EE connections")
67 (
"fei", po::value<string>(),
"file with EI connections")
68 (
"fie", po::value<string>(),
"file with IE connections")
69 (
"fii", po::value<string>(),
"file with II connections")
73 po::store(po::parse_command_line(ac, av, desc), vm);
76 if (vm.count(
"help")) {
77 std::cout << desc <<
"\n";
81 if (vm.count(
"simtime")) {
82 simtime = vm[
"simtime"].as<
double>();
85 if (vm.count(
"fast")) {
89 if (vm.count(
"dir")) {
90 dir = vm[
"dir"].as<
string>();
93 if (vm.count(
"fee")) {
94 fwmat_ee = vm[
"fee"].as<
string>();
97 if (vm.count(
"fie")) {
98 fwmat_ie = vm[
"fie"].as<
string>();
101 if (vm.count(
"fei")) {
102 fwmat_ei = vm[
"fei"].as<
string>();
105 if (vm.count(
"fii")) {
106 fwmat_ii = vm[
"fii"].as<
string>();
110 catch(std::exception& e) {
111 std::cerr <<
"error: " << e.what() <<
"\n";
115 std::cerr <<
"Exception of unknown type!\n";
122 string outputfile = oss.str();
164 msg =
"Setting up monitors ...";
167 std::stringstream filename;
168 filename << outputfile <<
"e.spk";
173 filename << outputfile <<
"i.spk";
181 if (!
sys->run(simtime,
true))
void auryn_free()
Cleanly shuts down Auryn simulation environment.
Definition: auryn_global.cpp:107
Standard Glutamatergic (excitatory) transmission.
Definition: auryn_definitions.h:139
The standard Monitor object to record spikes from a SpikingGroup and write them to a binary file...
Definition: BinarySpikeMonitor.h:48
unsigned int mpi_rank()
Returns current rank.
Definition: System.cpp:1009
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
A Checker class that tracks population firing rate as a moving average and breaks a run if it goes ou...
Definition: RateChecker.h:59
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
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