Search found 28 matches

by ajpc6d
Fri Apr 12, 2024 12:47 pm
Forum: NEURON + Python
Topic: NetStim causes SaveState crash
Replies: 6
Views: 171

Re: NetStim causes SaveState crash

I think I need help understanding the relationship of h.run(), h.continuerun(), and h.tstop. Below is a snippet of your code containing calls for all three. def erun(): # prepdatastores() h.tstop = EPOCHDUR h.tstop_changed() myinit() # model-specific initialization for ii in range(NUM): h.continueru...
by ajpc6d
Mon Apr 08, 2024 4:23 pm
Forum: NEURON + Python
Topic: NetStim causes SaveState crash
Replies: 6
Views: 171

Re: NetStim causes SaveState crash

I've avoided hoc as much as I could thus far, so let me check that I understand what's happening between the .py and .ses files. pyrig.ses recreates the h.IClamp() instance (which can also be created in Python), the RunControl window, and the h.Graph() object. pysyndrive.ses creates the h.NetStim() ...
by ajpc6d
Fri Apr 05, 2024 11:00 am
Forum: NEURON + Python
Topic: NetStim causes SaveState crash
Replies: 6
Views: 171

Re: NetStim causes SaveState crash

I haven't yet been able to resolve this issue
by ajpc6d
Fri Mar 22, 2024 7:11 pm
Forum: NEURON + Python
Topic: NetStim causes SaveState crash
Replies: 6
Views: 171

NetStim causes SaveState crash

The code below is meant to run a simulation in small chunks (basically useless for the toy script here, but useful to control RAM consumption for very large datasets). The h.ExpSyn() / h.NetStim() / h.NetCon() trio causes NEURON to deliver the error message NEURON: ExpSyn[0] :Event arrived out of or...
by ajpc6d
Thu Mar 21, 2024 6:33 pm
Forum: Other questions
Topic: Results Don't Converge with Decreasing Time Step
Replies: 3
Views: 161

Re: Results Don't Converge with Decreasing Time Step

zip up just enough code to reproduce what you describe Will do, I thought it may have more to do with NEURON than any specific code chunk. If you're really concerned about numerical accuracy, use secondorder and a dt of 0.001 ms, or use adaptive integration (but make sure that the various states' e...
by ajpc6d
Mon Mar 18, 2024 12:58 pm
Forum: Other questions
Topic: Results Don't Converge with Decreasing Time Step
Replies: 3
Views: 161

Results Don't Converge with Decreasing Time Step

Why would NEURON give different results when I vary the time step outside the stimulus period? Below, I contextualize this question in the abstract, but I can provide a code example if necessary. My situation: I have an extremely short-duration E-field pulse I'm applying to a neuron model to assess ...
by ajpc6d
Tue Oct 24, 2023 2:22 pm
Forum: Other questions
Topic: CTNG Support
Replies: 0
Views: 21458

CTNG Support

The CTNG Python tool to convert .swc data to watertight 3D models (introduced in 2013 here: https://www.sciencedirect.com/science/article/abs/pii/S0165027013003221) appears not to have been updated in some time. On my machine, I seem to be required to roll a few packages back to much earlier version...
by ajpc6d
Thu Aug 17, 2023 10:06 am
Forum: NEURON + Python
Topic: Play Stimulus Vectors Sequentially During Run-time
Replies: 2
Views: 12016

Re: Play Stimulus Vectors Sequentially During Run-time

Done - thanks so much
by ajpc6d
Tue Aug 15, 2023 3:28 pm
Forum: NEURON + Python
Topic: Play Stimulus Vectors Sequentially During Run-time
Replies: 2
Views: 12016

Play Stimulus Vectors Sequentially During Run-time

This code is a proof-of-principle experiment in playing a vector into a point process/distributed mechanism during run-time. (Reason: for extremely complex stimuli, the entire stimulus cannot be contained in memory at once. To circumvent this limitation, the stimulus will be calculated in chunks pas...
by ajpc6d
Fri Aug 11, 2023 10:26 am
Forum: Adding new mechanisms and functions to NEURON
Topic: Stimulus Activation/Deactivation in NMODL
Replies: 3
Views: 12505

Re: Stimulus Activation/Deactivation in NMODL

From https://nrn.readthedocs.io/en/latest/python/modelspec/programmatic/network/netcon.html#NetCon , I see The target must be a POINT_PROCESS or ARTIFICIAL_CELL that defines a NET_RECEIVE procedure. From the NMODL reference book*, I see An onset event, generated by the system when the connecting Net...
by ajpc6d
Sat Aug 05, 2023 5:04 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Stimulus Activation/Deactivation in NMODL
Replies: 3
Views: 12505

Stimulus Activation/Deactivation in NMODL

I made the following NMODL file to deliver a transmembrane current injection into a cell. The RANGE variable amp receives a played-in vector from a Python script. Below, I show the original method (which doesn't work quite right) and the second method (which does). The difference between them is onl...
by ajpc6d
Thu Jul 27, 2023 2:46 pm
Forum: NEURON + Python
Topic: Play a Unique Vector to Each Model Segment
Replies: 1
Views: 10480

Play a Unique Vector to Each Model Segment

How can I play a unique vector into an arbitrary variable in each of an arbitrary number of cell segments? For example, in this NMODL file NEURON { SUFFIX playtest :RANGE xx : doesn't work :NONSPECIFIC_CURRENT xx : doesn't work :GLOBAL xx : works, but inflexible :ELECTRODE_CURRENT xx : doesn't work ...
by ajpc6d
Fri Jul 21, 2023 10:20 am
Forum: Adding new mechanisms and functions to NEURON
Topic: Extracellular Mechanism and Hodgkin-Huxley
Replies: 10
Views: 20270

Re: Extracellular Mechanism and Hodgkin-Huxley

Wow, that's incredible - thank you! I've been working to meet a deadline this week, but hoping to return to this issue first thing next week--
by ajpc6d
Mon Jul 10, 2023 1:34 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: Extracellular Mechanism and Hodgkin-Huxley
Replies: 10
Views: 20270

Re: Extracellular Mechanism and Hodgkin-Huxley

v is not the sum of e_extracellular and anything else This was my deduction both from the documentation at https://nrn.readthedocs.io/en/latest/hoc/modelspec/programmatic/mechanisms/mech.html -- Vext is solved simultaneously with the v. When the extracellular mechanism is present, v refers to the m...
by ajpc6d
Mon Jul 10, 2023 10:13 am
Forum: Adding new mechanisms and functions to NEURON
Topic: Extracellular Mechanism and Hodgkin-Huxley
Replies: 10
Views: 20270

Re: Extracellular Mechanism and Hodgkin-Huxley

I'd like to avoid having to look at any of your hoc or Python code, if possible. Totally understand - my original question was just about the mechanics of how NEURON handles e_extracellular in a custom Hodgkin-Huxley-style .mod file, specifically, about the use of the NMODL 'v'. Is e_extracellular ...