Search found 7 matches

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

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 range"...
by duytanph
Thu Oct 31, 2019 3:49 pm
Forum: NEURON + Python
Topic: Parallel NMODL array assignment
Replies: 8
Views: 1630

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

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

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

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

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

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