Search found 6 matches

by duytanph
Thu Oct 31, 2019 3:49 pm
Forum: NEURON + Python
Topic: Parallel NMODL array assignment
Replies: 8
Views: 712

Re: Parallel NMODL array assignment

Thank you Ted and Robert for your help! The numpy_element_ref and h.setpointer functions were exactly what I was looking for!
by duytanph
Mon Oct 28, 2019 2:35 pm
Forum: NEURON + Python
Topic: Parallel NMODL array assignment
Replies: 8
Views: 712

Re: Parallel NMODL array assignment

I greatly appreciate the efforts. For my purposes, they are simply a set of indexed values. However, I am also curious to see the method that would solve the problem in the breakpoint case as well for future applications. Thank you!
by duytanph
Thu Oct 24, 2019 6:50 pm
Forum: NEURON + Python
Topic: Parallel NMODL array assignment
Replies: 8
Views: 712

Re: Parallel NMODL array assignment

Thanks for the reply, Ted. If I understand correctly, the Vector.play() changes a variable's value based on an array of values with a corresponding time vector which designates WHEN the variable's value is changed. In other words, a SINGLE value is being changed over time. What I believe you were tr...
by duytanph
Thu Oct 17, 2019 9:11 pm
Forum: NEURON + Python
Topic: Parallel NMODL array assignment
Replies: 8
Views: 712

Parallel NMODL array assignment

Hello, I am still pretty new to NEURON. I've been trying to look for/come up with a way to set the values of an NMODL array that has the same exact values across many instances of the same NMODL mechanism. The reason is because there is a large array that I would like to use in NMODL but setting the...
by duytanph
Wed Jul 17, 2019 2:51 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: How does a section recognize a mechanism's current?
Replies: 2
Views: 781

Re: How does a section recognize a mechanism's current?

Thank you for the reply Ted, appreciate it! Will keep all the tips you suggested in mind moving forward and will have a look at the NEURON guide as well. The use of the BREAKPOINT block to affect charge balance is exactly what I needed.
by duytanph
Fri Jul 12, 2019 5:00 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: How does a section recognize a mechanism's current?
Replies: 2
Views: 781

How does a section recognize a mechanism's current?

Hello. I am quite new to NEURON. I am trying to implement a custom mechanism (mod file) that outputs a synaptic current. I noticed that when trying to record the current at the section that contains the custom mechanism, the current from the mechanism is not present. To illustrate, here is some Pyth...