Search found 4 matches

by jseo977
Mon Nov 11, 2024 7:24 am
Forum: Getting started
Topic: h.run vs h.continuerun(h.tstop)
Replies: 6
Views: 46339

Re: h.run vs h.continuerun(h.tstop)

Hello Ted, Apologies for the delayed response! I plotted gvec for each segment over time and got the expected response (for my case, the extracellular potential at each point is scaled sinusoidally for one period). However, I am not sure how to plot the segment's e_extracellular over time. When I ru...
by jseo977
Sun Oct 06, 2024 9:16 pm
Forum: Getting started
Topic: h.run vs h.continuerun(h.tstop)
Replies: 6
Views: 46339

Re: h.run vs h.continuerun(h.tstop)

Thank you so much for your prompt response. I have now updated my code to below (in a Jupyter notebook), and notice that when I run the cell more than once in the same kernel, I get an error that says plt.plot(list(t_rec), list(v_rec_0_33)) ^ ValueError: x and y must have same first dimension, but h...
by jseo977
Wed Sep 25, 2024 9:42 pm
Forum: Getting started
Topic: h.run vs h.continuerun(h.tstop)
Replies: 6
Views: 46339

Re: h.run vs h.continuerun(h.tstop)

For reference, my code looks like this: Cell 1: # Create a simple nerve (axon) model axon = h.Section(name='axon') axon.L = 2000 axon.diam = 10 axon.nseg = 101 h.load_file('stdrun.hoc') axon.insert('hh') axon.insert('extracellular') #Set up recording variables v_rec_0_33 = h.Vector().record(axon(0.3...
by jseo977
Wed Sep 25, 2024 9:09 pm
Forum: Getting started
Topic: h.run vs h.continuerun(h.tstop)
Replies: 6
Views: 46339

h.run vs h.continuerun(h.tstop)

Hello all, Apologies if this is a very novice question. I am just getting started but struggling to understand the difference between h.run and h.continuerun(h.tstop), after explicitly defining h.tstop in both situations. I found that h.continuerun(h.tstop) applies my h.finitialize(-60 * mV), but h....