From 9d17aec75a3ce9999dedc7513e17c078561ec57b Mon Sep 17 00:00:00 2001 From: Friedemann Zenke Date: Thu, 27 Aug 2015 16:49:32 -0700 Subject: [PATCH 1/2] Update README.md Adds Quick start instructions --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8ab67871..e2723622 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,23 @@ to simulate recurrent spiking neural networks with spike timing dependent plasticity (STDP). It comes with the GPLv3 (please see COPYING). +Quick start +----------- + +To download and compile the examples try: + +``` +sudo apt-get install cmake git build-essential libboost-all-dev +git clone https://github.com/fzenke/auryn.git && cd auryn +git checkout -b develop origin/develop +mkdir build && cd build +cmake ../ -DCMAKE_BUILD_TYPE=Release && make +``` + Documentation & Installation/Use -------------------------------- -Please visit http://www.fzenke.net/auryn/ - +Please visit the wiki at http://www.fzenke.net/auryn/ Requirements From 34b5112c9001660b2e06fda9dbba765cfcbe5095 Mon Sep 17 00:00:00 2001 From: Friedemann Zenke Date: Thu, 3 Dec 2015 10:55:14 -0800 Subject: [PATCH 2/2] Fixes to tool/aube At very long times aube was dropping decimal places in the output precision. This is fixed now to one more digit than needed from the dt point of view. --- tools/aube.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/aube.cpp b/tools/aube.cpp index f0f43582..dc2edeb7 100644 --- a/tools/aube.cpp +++ b/tools/aube.cpp @@ -101,6 +101,8 @@ int main(int ac, char* av[]) double to_time = -1.0; double seconds_to_extract_from_end = -1.0; // negative means disabled NeuronID maxid = std::numeric_limits::max(); + // one more decimal than neede to show values are not rounded + int decimal_places = -std::log(dt)/std::log(10)+2; try { po::options_description desc("Allowed options"); @@ -267,7 +269,10 @@ int main(int ac, char* av[]) if( !output_file_name.empty() ) { write_to_stdout = false; of.open( output_file_name.c_str(), std::ofstream::out ); + of << std::fixed << std::setprecision(decimal_places); } + // sets output format to right number of decimal places + std::cout << std::fixed << std::setprecision(decimal_places); while ( true ) { // find smallest time reference