Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Mod files valid for 9.0 and legacy NEURON #1

Merged
merged 3 commits into from
May 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pj.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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) {
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NEURON files from the paper:

Using Strahlers analysis to reduce up to 200-fold the run time
Using Strahlers 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).

Expand All @@ -16,5 +16,8 @@ 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 and legacy NEURON versions.

Questions on the code should be addressed to
Alessandro Limongiello: ax.magnum@gmail.com

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this person's name deliberately deleted? If so, should we remove the "Questions on the code" line?

Alessandro Limongiello: ax.magnum@gmail.com