Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
access-node
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
LuFG VR VIS
VR-Group
In Situ Pipeline
access-node
Commits
8486440c
Commit
8486440c
authored
5 years ago
by
Jan Müller
Browse files
Options
Downloads
Patches
Plain Diff
Add Nest neuron property functionality
parent
d2e5ba1d
No related branches found
No related tags found
1 merge request
!4
Feature/add arbor support
Pipeline
#163321
canceled
5 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
access_node/controllers/nest_controller.py
+21
-3
21 additions, 3 deletions
access_node/controllers/nest_controller.py
with
21 additions
and
3 deletions
access_node/controllers/nest_controller.py
+
21
−
3
View file @
8486440c
...
...
@@ -167,12 +167,30 @@ def nest_get_neuron_properties(gids=None): # noqa: E501
password
=
"
docker
"
,
host
=
"
database
"
,
port
=
"
5432
"
)
cur
=
con
.
cursor
()
# TODO HANDLE gids=None
cur
.
execute
(
"
Select * FROM GIDS LIMIT 0
"
)
colnames
=
np
.
array
([
desc
[
0
]
for
desc
in
cur
.
description
])
# column 1 and 2 contain the Node_id/Population_id and thus are removed
colnames
=
np
.
delete
(
colnames
,
[
1
,
2
])
if
gids
==
None
:
cur
.
execute
(
"
Select * FROM GIDS
"
)
else
:
cur
.
execute
(
"
Select * FROM GIDS WHERE GID IN %s
"
,
(
tuple
(
gids
),))
con
.
close
()
return
"
Not Implemented yet
"
properties
=
np
.
array
(
cur
.
fetchall
())
properties
=
np
.
delete
(
properties
,
[
1
,
2
],
1
)
NestProps
=
[]
for
k
in
range
(
len
(
properties
[:,
0
])):
props
=
{}
id
=
properties
[
k
,
0
]
for
i
in
range
(
1
,
len
(
colnames
)):
props
.
update
({
colnames
[
i
]:
properties
[
k
,
i
]})
NestProps
.
extend
(
NestNeuronProperties
(
id
,
props
))
return
NestProps
def
nest_get_populations
():
# noqa: E501
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment