Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Arbor integration test #72

Draft
wants to merge 33 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
21952bb
test notebook using Arbor
espenhgn Jul 1, 2021
f6bfce8
Merge branch 'master' into fix-67
espenhgn Jul 2, 2021
373b647
fixes for Arbor@master changes
espenhgn Jul 2, 2021
846fd45
scripts comparing arbor and lfpy performance
espenhgn Aug 2, 2021
b701e93
fixes
espenhgn Aug 2, 2021
9857f84
fix
espenhgn Aug 2, 2021
d0d88a0
title fix
Aug 2, 2021
3e1ae86
jureca fixes
Aug 2, 2021
c3eb305
fix
espenhgn Aug 2, 2021
ee2f758
symlink morphologies
Aug 3, 2021
6634aef
misc fixes
Aug 3, 2021
e2257d6
increase min job duration
Aug 3, 2021
4785328
test arbor reproducer
espenhgn Aug 4, 2021
ba6956b
things
espenhgn Aug 4, 2021
301547c
arbor.context(1, None)
espenhgn Aug 5, 2021
9f45158
arbor.context(1, None)
espenhgn Aug 5, 2021
888b3d0
backup
espenhgn Aug 18, 2021
6b4576e
Merge branch 'fix-67' of github.com:INM-6/hybridLFPy into fix-67
espenhgn Sep 7, 2021
11465cc
backup
espenhgn Nov 19, 2021
f67520e
Merge branch 'fix-67' of github.com:INM-6/hybridLFPy into fix-67
espenhgn Aug 16, 2022
7924ccd
convert to weak scaling test
espenhgn Aug 17, 2022
bb896b3
pretty
espenhgn Aug 17, 2022
34cf92d
removed file
espenhgn Aug 17, 2022
f3bcc82
fix
espenhgn Aug 17, 2022
5d7fa0c
test without multithreading
espenhgn Aug 17, 2022
93ad9e3
don't create arbor.context
espenhgn Aug 17, 2022
742551c
test
espenhgn Aug 17, 2022
2f6d2a5
cleanup
espenhgn Aug 17, 2022
2e4fd0a
fix
espenhgn Aug 17, 2022
b8a4d8a
lakd
espenhgn Aug 17, 2022
3239ca0
test arbor.simulation.reset()
espenhgn Aug 18, 2022
8ef07a5
sanity test
espenhgn Aug 18, 2022
18a8dab
ntasks
espenhgn Aug 25, 2022
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
1,243 changes: 1,243 additions & 0 deletions examples/Example_Arbor_swc_hybridLFPy.ipynb

Large diffs are not rendered by default.

84 changes: 84 additions & 0 deletions examples/benchmarks/alphaisyn.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
TITLE Alpha-function synaptic current, with NET_RECEIVE

COMMENT
This model works with variable time-step methods (although it may not
be very accurate) but at the expense of having to maintain the queues
of spike times and weights.

Andrew P. Davison, UNIC, CNRS, May 2006
ENDCOMMENT

DEFINE MAX_SPIKES 1000
DEFINE CUTOFF 20

NEURON {
POINT_PROCESS AlphaISyn
RANGE tau, i, q
NONSPECIFIC_CURRENT i
}

UNITS {
(nA) = (nanoamp)
}

PARAMETER {
tau = 5 (ms) <1e-9,1e9>

}

ASSIGNED {
i (nA)
q
onset_times[MAX_SPIKES] (ms)
weight_list[MAX_SPIKES] (nA)
}

INITIAL {
i = 0
q = 0 : queue index
}

BREAKPOINT {
LOCAL k, expired_spikes, x
i = 0
expired_spikes = 0
FROM k=0 TO q-1 {
x = (t - onset_times[k])/tau
if (x > CUTOFF) {
expired_spikes = expired_spikes + 1
} else {
i = i - weight_list[k] * alpha(x)
}
}
update_queue(expired_spikes)
}

FUNCTION update_queue(n) {
LOCAL k
:if (n > 0) { printf("Queue changed. t = %4.2f onset_times=[",t) }
FROM k=0 TO q-n-1 {
onset_times[k] = onset_times[k+n]
weight_list[k] = weight_list[k+n]
:if (n > 0) { printf("%4.2f ",onset_times[k]) }
}
:if (n > 0) { printf("]\n") }
q = q-n
}

FUNCTION alpha(x) {
if (x < 0) {
alpha = 0
} else {
alpha = x * exp(1 - x)
}
}

NET_RECEIVE(weight (nA)) {
onset_times[q] = t
weight_list[q] = weight
if (q >= MAX_SPIKES-1) {
printf("Error in AlphaISyn. Spike queue is full\n")
} else {
q = q + 1
}
}
Loading