Search found 6357 matches

by ted
Thu Jul 04, 2024 1:38 pm
Forum: Other questions
Topic: extracellular stimulation
Replies: 12
Views: 12714

Re: extracellular stimulation

in DBS, which the pulses are short, the high frequency is important to the AP generation. Stimulus pulse duration is important, but you'll never guess why unless you take the time to learn more about the mechanistic basis of cellular excitability. And that should be covered in a good introductory c...
by ted
Thu Jul 04, 2024 12:57 am
Forum: Other questions
Topic: extracellular stimulation
Replies: 12
Views: 12714

Re: extracellular stimulation

It is the rare EE major that has much reading, classroom, or hand-on exposure to neurophysiology, and in particular practical aspects of stimulating excitable tissue (nerve, muscle). That's something you'll have to correct sooner or later if you plan to work at the interface between engineering and ...
by ted
Wed Jul 03, 2024 1:57 pm
Forum: Other questions
Topic: extracellular stimulation
Replies: 12
Views: 12714

Re: extracellular stimulation

By setting a pulse duration of 100 ms, I see AP generation. However, if I reduce the pulse width to 0.1 ms, APs are not generated. Is this expected behavior
To help guide my answer, it would be useful to know if your background is primarily in physics/math/engineering, or in biology.
by ted
Mon Jul 01, 2024 2:10 pm
Forum: Other questions
Topic: extracellular stimulation
Replies: 12
Views: 12714

Re: extracellular stimulation

First thing to check: what are the anatomical and biophysical properties of your model cell? What does
somaL.psection()
tell you? and how about somaR.psection()?
by ted
Mon Jul 01, 2024 1:47 pm
Forum: The GUI
Topic: Problem with h.PlotShape
Replies: 7
Views: 9833

Re: Problem with h.PlotShape

Could it be Linux is not GUI based ?? I think you'd know by now if the OS and hardware on the machine on which you're running NEURON have GUI support. Are you executing NEURON on a laptop or desktop machine, or on some remote server? Assuming NOT the latter, what happens if you execute neurondemo i...
by ted
Wed Jun 26, 2024 1:41 pm
Forum: The GUI
Topic: Problem with h.PlotShape
Replies: 7
Views: 9833

Re: Problem with h.PlotShape

Instead of matplotlib and pyplot, try plotly.

Code: Select all

import plotly
 . . .
ps = h.PlotShape(False)
ps.plot(plotly).show()
by ted
Wed Jun 26, 2024 11:01 am
Forum: Other questions
Topic: extracellular stimulation
Replies: 12
Views: 12714

Re: extracellular stimulation

Oops, instead of replying to a copy of your original post, I edited it, inserting my replies. How careless of me; done when I was hurrying to get to the point but not cautious about how it was done. But at least I didn't destroy your questions, and perhaps my replies will be helpful to you and others.
by ted
Fri Jun 14, 2024 10:24 am
Forum: NEURON + Python
Topic: Loading a Linear Circuit Mechanism in Python
Replies: 1
Views: 9361

Re: Loading a Linear Circuit Mechanism in Python

This example of how to develop and use a Linear Circuit implementation of a gap junction via Python https://www.neuron.yale.edu/ftp/ted/neu ... cirgap.zip might provide some useful hints.
by ted
Thu Jun 13, 2024 10:51 am
Forum: OS X
Topic: NEURON-nightly and compiling mod files
Replies: 1
Views: 11142

Re: NEURON-nightly and compiling mod files

Interesting. Needs to be brought to the attention of the NEURON development team. Regarding what you should do, if your goal is to do science, decide what's most important to you--cosmetics, or results; spending time trying to work around problems in development code, or addressing scientific proble...
by ted
Fri May 24, 2024 12:02 pm
Forum: NEURON + Python
Topic: Can't we write tautable.hoc in Python?
Replies: 2
Views: 7672

Re: Can't we write tautable.hoc in Python?

Sure, if you want to rewrite those statements in Python, go ahead. Here's a seed to get you started. I have even corrected the comment in the second statement.

Code: Select all

vecv_KIR = h.Vector()
vecv_KIR.indgen(-100, 0, 10) # -100 to 0 with steps of 10
by ted
Tue May 21, 2024 12:41 pm
Forum: Getting started
Topic: square in soma in plotshape
Replies: 1
Views: 10137

Re: square in soma in plotshape

If a section's geometry is specified with the "stylized" method (assigning values to L and diam), the section will be a cylinder of length L and diameter diam, and it will look like a cylinder in graphical renderings that show diameter. If the geometry is specified with the pt3d method (a ...
by ted
Wed Apr 24, 2024 2:35 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Recording variables from ARTIFICIAL_CELL
Replies: 14
Views: 10534

Re: Recording variables from ARTIFICIAL_CELL

There are two problems. First is accessing the values of the variables that you want. Second is accessing them at the times that you want. Typically you want to capture these variables at fixed intervals, not just when the ARTIFICIAL_CELL receives an event. The easiest case is when the variables are...
by ted
Mon Apr 15, 2024 11:59 am
Forum: Getting started
Topic: Section-relative location of a segment
Replies: 3
Views: 8720

Re: Section-relative location of a segment

Around here we all have egg on our faces.
by ted
Mon Apr 15, 2024 9:43 am
Forum: Getting started
Topic: Section-relative location of a segment
Replies: 3
Views: 8720

Re: Section-relative location of a segment

Given all that beautiful documentation at nrn.readthedocs.io I find it even more surprising that it is so difficult to discover the answer to your question. One would expect it to be with the other documentation about Section, but it isn't. But wait, there's a Search feature . . . which isn't very h...
by ted
Sat Apr 13, 2024 3:45 pm
Forum: NEURON + Python
Topic: NetStim causes SaveState crash
Replies: 6
Views: 9650

Re: NetStim causes SaveState crash

Good questions. tstop and continuerun are part of NEURON's standard run system, much of which is implemented in hoc. You'll find the hoc component of the standard run system in a file called stdrun.hoc. You can learn a lot by finding and browsing through stdrun.hoc (hints: use your OS's file search ...