Skip to content

Commit

Permalink
Add all patch clamp types to latest icephys tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
bendichter committed Nov 20, 2024
1 parent bb782e8 commit ec50483
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions docs/gallery/domain/plot_icephys.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,49 @@
)

#####################################################################
# You can add current clamp in the same way.

from pynwb.icephys import CurrentClampStimulusSeries, CurrentClampSeries, IZeroClampSeries

ccs = CurrentClampSeries(
name="ccs",
data=[0.1, 0.2, 0.3, 0.4, 0.5],
conversion=1e-12,
resolution=np.nan,
starting_time=123.6,
rate=20e3,
electrode=electrode,
gain=0.02,
bias_current=1e-12,
bridge_balance=70e6,
capacitance_compensation=1e-12,
sweep_number=np.uint(16)
)

ccss = CurrentClampStimulusSeries(
name="ccss",
data=[1, 2, 3, 4, 5],
starting_time=123.6,
rate=10e3,
electrode=electrode,
gain=0.02,
sweep_number=np.uint(16),
)

izcs = IZeroClampSeries(
name="izcs",
data=[0.1, 0.2, 0.3, 0.4, 0.5],
electrode=electrode,
gain=0.02,
resolution=np.nan,
conversion=1e-12,
starting_time=345.6,
rate=20e3,
sweep_number=np.uint(17),
)


########################################################################
# Adding an intracellular recording
# ---------------------------------
#
Expand Down

0 comments on commit ec50483

Please sign in to comment.