From edb9527bafc0bff5da263a0e493a4018faca8790 Mon Sep 17 00:00:00 2001 From: Michael Hines Date: Mon, 16 May 2022 13:55:37 -0400 Subject: [PATCH 1/3] Mod files valid for 9.0 and legacy NEURON --- pj.mod | 7 ++++++- readme.txt | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pj.mod b/pj.mod index 4002e11..a79dbdc 100644 --- a/pj.mod +++ b/pj.mod @@ -77,8 +77,13 @@ FUNCTION invl(mean (ms)) (ms) { } } VERBATIM +#ifndef NRN_VERSION_GTEQ_8_2_0 double nrn_random_pick(void* r); void* nrn_random_arg(int argpos); +#define RANDCAST +#else +#define RANDCAST (Rand*) +#endif ENDVERBATIM FUNCTION erand() { @@ -89,7 +94,7 @@ VERBATIM : each instance. However, the corresponding hoc Random : distribution MUST be set to Random.negexp(1) */ - _lerand = nrn_random_pick(_p_donotuse); + _lerand = nrn_random_pick(RANDCAST _p_donotuse); }else{ /* only can be used in main thread */ if (_nt != nrn_threads) { diff --git a/readme.txt b/readme.txt index 48a1a69..aced623 100644 --- a/readme.txt +++ b/readme.txt @@ -16,5 +16,6 @@ Reduced Models" button, then select e4cb3a1.hoc in the morphologies folder. The simulation will reproduce the traces in Fig.2D (left) of the paper (where the last 1000 ms are shown). +Note: pj.mod updated to be valid for 9.0 nad legacy NEURON versions. + Questions on the code should be addressed to -Alessandro Limongiello: ax.magnum@gmail.com \ No newline at end of file From bea4b257d3a971030001cf39ec465bcfa50c0ce1 Mon Sep 17 00:00:00 2001 From: nrnhines Date: Mon, 16 May 2022 14:04:09 -0400 Subject: [PATCH 2/3] Update readme.txt --- readme.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.txt b/readme.txt index aced623..a90ae48 100644 --- a/readme.txt +++ b/readme.txt @@ -1,6 +1,6 @@ NEURON files from the paper: -Using Strahler’s analysis to reduce up to 200-fold the run time +Using Strahler’s analysis to reduce up to 200-fold the run time of realistic neuron models, by A. Marasco, A.Limongiello, and M.Migliore (2013) Sci. Rep. 3, 2934; DOI:10.1038/srep02934 (in press). @@ -16,6 +16,6 @@ Reduced Models" button, then select e4cb3a1.hoc in the morphologies folder. The simulation will reproduce the traces in Fig.2D (left) of the paper (where the last 1000 ms are shown). -Note: pj.mod updated to be valid for 9.0 nad legacy NEURON versions. +Note: pj.mod updated to be valid for 9.0 and legacy NEURON versions. Questions on the code should be addressed to From 14927896d08992b454640cb1bb5842f8f0ddf472 Mon Sep 17 00:00:00 2001 From: Michael Hines Date: Mon, 16 May 2022 15:42:38 -0400 Subject: [PATCH 3/3] Lost a line at end of file due to no newline. --- readme.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.txt b/readme.txt index a90ae48..01d2744 100644 --- a/readme.txt +++ b/readme.txt @@ -19,3 +19,5 @@ the paper (where the last 1000 ms are shown). Note: pj.mod updated to be valid for 9.0 and legacy NEURON versions. Questions on the code should be addressed to +Alessandro Limongiello: ax.magnum@gmail.com +