Search found 11 matches

by duytanph
Wed Nov 04, 2020 5:40 pm
Forum: NEURON hacks
Topic: Implementing Superposition to "custom" waveforms in NMODL
Replies: 6
Views: 507

Re: Implementing Superposition to "custom" waveforms in NMODL

No worries! Thank you for the help! I will update if I find a way to accomplish this.
by duytanph
Wed Nov 04, 2020 4:01 pm
Forum: NEURON hacks
Topic: Implementing Superposition to "custom" waveforms in NMODL
Replies: 6
Views: 507

Re: Implementing Superposition to "custom" waveforms in NMODL

For this particular problem, what do you want your array of precalculated values to drive? Probability of transmitter release as a function of time? Transmitter concentration in the synaptic cleft? The detailed time course of synaptic conductance? If none of these, then what? I am trying to get the...
by duytanph
Mon Nov 02, 2020 5:56 pm
Forum: NEURON hacks
Topic: Implementing Superposition to "custom" waveforms in NMODL
Replies: 6
Views: 507

Re: Implementing Superposition to "custom" waveforms in NMODL

Thanks for the reply! Presumably you are doing that with Vector play(). I am actually using pointer manipulation such that an NMODL mechanism is able to access the contents of a numpy array (see https://www.neuron.yale.edu/phpBB/viewtopic.php?t=4167 ). The aim is to have the NMODL mechanism "pl...
by duytanph
Fri Oct 30, 2020 10:08 pm
Forum: NEURON hacks
Topic: Implementing Superposition to "custom" waveforms in NMODL
Replies: 6
Views: 507

Implementing Superposition to "custom" waveforms in NMODL

Hello, I am wondering if there is a way to implement superposition for waveforms that are "saved" in the form of a constant, predetermined array. For example, the basic exp2syn.mod mechanism defines conductance waveforms that are governed by a double exponential function with respective DE...
by duytanph
Thu Jul 23, 2020 9:43 pm
Forum: NEURON + Python
Topic: Is it possible to track "value explosions" and out of range errors
Replies: 2
Views: 558

Is it possible to track "value explosions" and out of range errors

Hello, I am working on creating my own mechanism .mod file and running into large value errors such as: exp(1.86734e+184) out of range, returning exp(700) No more errno warnings during this execution Without getting into too much detail, the mechanism works completely fine without any "out of r...
by duytanph
Thu Oct 31, 2019 3:49 pm
Forum: NEURON + Python
Topic: Parallel NMODL array assignment
Replies: 8
Views: 2064

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: 2064

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: 2064

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: 2064

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: 1420

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: 1420

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...