Skip to content

Commit

Permalink
add roundtrip test
Browse files Browse the repository at this point in the history
  • Loading branch information
stephprince committed Nov 8, 2024
1 parent 1c566db commit 1567bc3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/integration/hdf5/test_icephys.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,27 @@ def addContainer(self, nwbfile):
nwbfile.add_device(self.device)
super().addContainer(nwbfile)

class TestPatchClampSeriesMin(AcquisitionH5IOMixin, TestCase):
""" Test a PatchClampSeries with minimum required args to read/write """

def setUpElectrode(self):
""" Set up the test IntracellularElectrode """
self.device = Device(name='device_name')
self.elec = IntracellularElectrode(name="elec0", description='a fake electrode object',
device=self.device)

def setUpContainer(self):
self.setUpElectrode()
return PatchClampSeries(name="pcs", data=[1, 2, 3, 4, 5], unit='A',
starting_time=123.6, rate=10e3, electrode=self.elec)

def addContainer(self, nwbfile):
"""
Add the test PatchClampSeries as an acquisition and IntracellularElectrode and Device to the given NWBFile
"""
nwbfile.add_icephys_electrode(self.elec)
nwbfile.add_device(self.device)
super().addContainer(nwbfile)

class TestCurrentClampStimulusSeries(TestPatchClampSeries):

Expand Down

0 comments on commit 1567bc3

Please sign in to comment.