Search found 37 matches

by vogdb
Sun May 31, 2020 12:14 pm
Forum: Getting started
Topic: Represent images/movies in NEURON simulator
Replies: 2
Views: 8455

Re: Represent images/movies in NEURON simulator

Thank you Ted for such quick response. I rather meant taking an image, and present it to my neural circuit model. Like a small retina, if saying very basic. I've looked through ModelDB and found something related like Corem simulator or Virtual Retina but they designed for other simulators like Nest.
by vogdb
Sun May 31, 2020 7:43 am
Forum: Getting started
Topic: Represent images/movies in NEURON simulator
Replies: 2
Views: 8455

Represent images/movies in NEURON simulator

Hello! I just wanted to double check before creating my own wheel. Is there a library/tool that allow to represent images/movies in NEURON simulator? For example take an image (28x28) and represent it as a grid of NetStim (28x28) where each NetStim corresponds to a single image pixel.
by vogdb
Wed Feb 26, 2020 7:16 am
Forum: NEURON + Python
Topic: Vector Values
Replies: 2
Views: 1836

Re: Vector Values

Hi! The error message clearly say that you are trying to access a string value as float (numeric type). Please post the links to the code from neuron website you are mentioning.
by vogdb
Fri Feb 21, 2020 7:12 am
Forum: Anatomically detailed models
Topic: Neuron transforms soma that is loaded from .swc. What is the rule for it?
Replies: 4
Views: 9534

Re: Neuron transforms soma that is loaded from .swc. What is the rule for it?

Thank you for the information! In my case the solution was to use the last point of soma for connection of other sections. So, instead of parent id 1 use 3 ... 4 2 0.292800 -4.265800 -5.562200 0.325200 1 ... Use # index type X Y Z radius parent ... 4 2 0.292800 -4.265800 -5.562200 0.325200 3 ... And...
by vogdb
Tue Feb 11, 2020 5:20 am
Forum: Anatomically detailed models
Topic: Neuron transforms soma that is loaded from .swc. What is the rule for it?
Replies: 4
Views: 9534

Re: Neuron transforms soma that is loaded from .swc. What is the rule for it?

Thank you, Ted! My main question is how I can avoid of adding 2 additional points in case soma is a cylinder already. In order to avoid any misunderstandings here is the code: SimpleCellCylinder.swc # index type X Y Z radius parent 1 1 -5.442800 0.000000 0.000000 5.442800 -1 2 1 0.000000 0.000000 0....
by vogdb
Mon Feb 10, 2020 6:58 am
Forum: Anatomically detailed models
Topic: Neuron transforms soma that is loaded from .swc. What is the rule for it?
Replies: 4
Views: 9534

Neuron transforms soma that is loaded from .swc. What is the rule for it?

Hi! Can you please point to me to the source code/rule that adds new points to a soma that is loaded from .swc? An example. Lets say I have a morphology with a soma. # index type X Y Z radius parent 1 1 0.000000 0.000000 0.000000 5.442800 -1 2 2 0.292800 -4.265800 -5.562200 0.325200 1 3 2 0.654500 -...
by vogdb
Fri Dec 20, 2019 4:27 am
Forum: Suggestions and Feedback
Topic: Accessibility of documentation
Replies: 1
Views: 11948

Accessibility of documentation

Hi! I receive 404 (Not Found) error when I try to access https://www.neuron.yale.edu/neuron/stat ... index.html. Is it fine?
by vogdb
Wed Dec 18, 2019 7:20 am
Forum: NEURON + Python
Topic: Associative arrays in HOC
Replies: 5
Views: 2457

Re: Associative arrays in HOC

Also here a couple of examples: begintemplate String public s strdef s endtemplate String begintemplate ObjDict public get, put, setKeys objref keyList, valueList, nil proc init() { keyList = new List() valueList = new List() } proc put() {localobj key key = new String() key.s = $s1 keyList.append(k...
by vogdb
Wed Dec 18, 2019 5:52 am
Forum: NEURON + Python
Topic: Associative arrays in HOC
Replies: 5
Views: 2457

Re: Associative arrays in HOC

There is an implementation of Dictionary in this post viewtopic.php?t=1438
by vogdb
Fri Dec 13, 2019 5:36 pm
Forum: NEURON + Python
Topic: Associative arrays in HOC
Replies: 5
Views: 2457

Associative arrays in HOC

In Python we have dicts like this

Code: Select all

d = {'key1': 1, 'key2': 56}
Is there an analogue in HOC?
by vogdb
Wed Nov 27, 2019 3:52 am
Forum: NEURON + Python
Topic: How to get synapse offset/position
Replies: 5
Views: 2326

Re: How to get synapse offset/position

Thank you so much! This is a very useful information for me.
by vogdb
Tue Nov 26, 2019 5:01 am
Forum: NEURON + Python
Topic: How to get synapse offset/position
Replies: 5
Views: 2326

Re: How to get synapse offset/position

Thank you, Ted! I heard of *d_lambda* but forgot its specifics. My purpose was rather educational.
by vogdb
Thu Nov 21, 2019 11:58 am
Forum: NEURON + Python
Topic: How to get synapse offset/position
Replies: 5
Views: 2326

Re: How to get synapse offset/position

Aha, I see. It is up to the number of segments in section. With high enough number of segments the synapse is placed to a nearly correct position otherwise it is placed as close as possible. So if I do

Code: Select all

dend.nseg = 100
then I have 0.775 as my synapse position.
This is very tricky.
by vogdb
Thu Nov 21, 2019 5:46 am
Forum: NEURON + Python
Topic: How to get synapse offset/position
Replies: 5
Views: 2326

How to get synapse offset/position

Hi! Can somebody please clarify. It looks I'm missing something fundamental. How to know that syn is at 0.77 offset? get_segment().x , get_loc return 0.5 . Do I miss something? Is syn moved to the offset 0.5 after instantiation? from neuron import h h.load_file('stdrun.hoc') dend = h.Section(name='d...
by vogdb
Tue Sep 24, 2019 12:14 pm
Forum: The GUI
Topic: error in saving a voltage trace into a figure
Replies: 2
Views: 8238

Re: error in saving a voltage trace into a figure

Hi! Does it work fine if you plot directly instead of saving figure? What would happen if you replace

Code: Select all

fig.savefig("trial.png")
with

Code: Select all

plt.show()
?