Skip to content

Commit

Permalink
Add all patch clamp types to latest icephys tutorial (#2004)
Browse files Browse the repository at this point in the history
* Add all patch clamp types to latest icephys tutorial

* Update docs/gallery/domain/plot_icephys.py
  • Loading branch information
bendichter authored Nov 25, 2024
1 parent 7087f00 commit a63387d
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions docs/gallery/domain/plot_icephys.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,50 @@
)

#####################################################################
# 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),
)

# IZeroClampSeries is used when the current is clamped to 0.
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 a63387d

Please sign in to comment.