48 std::stringstream oss;
59 double sparseness = 0.1;
63 double poisson_rate = 20.0e3;
79 po::options_description desc(
"Allowed options");
81 (
"help",
"produce help message")
82 (
"simtime", po::value<double>(),
"duration of simulation")
83 (
"gamma", po::value<double>(),
"gamma factor for inhibitory weight")
84 (
"nu", po::value<double>(),
"the external firing rate nu")
85 (
"dir", po::value<std::string>(),
"dir from file")
86 (
"load", po::value<std::string>(),
"load from file")
87 (
"save", po::value<std::string>(),
"save to file")
88 (
"fee", po::value<std::string>(),
"file with EE connections")
89 (
"fei", po::value<std::string>(),
"file with EI connections")
90 (
"fie", po::value<std::string>(),
"file with IE connections")
91 (
"fii", po::value<std::string>(),
"file with II connections")
95 po::store(po::parse_command_line(ac, av, desc), vm);
98 if (vm.count(
"help")) {
99 std::cout << desc <<
"\n";
103 if (vm.count(
"simtime")) {
104 simtime = vm[
"simtime"].as<
double>();
107 if (vm.count(
"gamma")) {
108 gamma = vm[
"gamma"].as<
double>();
111 if (vm.count(
"nu")) {
112 poisson_rate = vm[
"nu"].as<
double>();
115 if (vm.count(
"dir")) {
119 if (vm.count(
"load")) {
123 if (vm.count(
"save")) {
127 if (vm.count(
"fee")) {
131 if (vm.count(
"fie")) {
135 if (vm.count(
"fei")) {
139 if (vm.count(
"fii")) {
143 catch(std::exception& e) {
144 std::cerr <<
"error: " << e.what() <<
"\n";
148 std::cerr <<
"Exception of unknown type!\n";
153 oss << dir <<
"/brunel." <<
sys->
mpi_rank() <<
".";
163 neurons_e->
thr = 20e-3;
170 neurons_i->
thr = 20e-3;
213 msg =
"Setting up monitors ...";
216 std::stringstream filename;
217 filename << outputfile <<
"e.ras";
222 filename << outputfile <<
"i.ras";
238 if ( !load.empty() ) {
254 if (!
sys->run(simtime,
true))
257 if ( !save.empty() ) {
AurynFloat thr
Definition: IafPscDeltaGroup.h:57
void auryn_free()
Cleanly shuts down Auryn simulation environment.
Definition: auryn_global.cpp:107
Current based synapse. Adds the transmitted quantity directly to membrane voltage.
Definition: auryn_definitions.h:143
Stimulator class to inject timeseries of currents NeuronGroups.
Definition: PoissonStimulator.h:47
unsigned int mpi_rank()
Returns current rank.
Definition: System.cpp:1009
void load_network_state(std::string basename)
Loads network state from a netstate file.
Definition: System.cpp:812
void set_tau_ref(AurynFloat tau_ref)
Definition: IafPscDeltaGroup.cpp:64
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
AurynFloat e_reset
Definition: IafPscDeltaGroup.h:57
The standard Monitor object to record spikes from a SpikingGroup and write them to a text file...
Definition: SpikeMonitor.h:52
void sanity_check()
Quick an dirty function that checks if all units on the local rank are connected. ...
Definition: SparseConnection.cpp:537
Conductance based neuron model with absolute refractoriness as used in Vogels and Abbott 2005...
Definition: IafPscDeltaGroup.h:38
AurynFloat e_rest
Definition: IafPscDeltaGroup.h:57
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
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
void set_tau_mem(AurynFloat taum)
Definition: IafPscDeltaGroup.cpp:108
void msg(std::string text, LogMessageType type=NOTIFICATION, bool global=false, int line=-1, std::string srcfile="")
Definition: Logger.cpp:74
void save_network_state(std::string basename)
Saves network state to a netstate file.
Definition: System.cpp:694
std::string string
Standard library string type which is imported into Auryn namespace.
Definition: auryn_definitions.h:156
unsigned int NeuronID
NeuronID is an unsigned integeger type used to index neurons in Auryn.
Definition: auryn_definitions.h:151