diff --git a/src/pynwb/tests/test_hed_tags.py b/src/pynwb/tests/test_hed_tags.py index 481a534..f0b9a56 100644 --- a/src/pynwb/tests/test_hed_tags.py +++ b/src/pynwb/tests/test_hed_tags.py @@ -2,9 +2,9 @@ from datetime import datetime from dateutil.tz import tzlocal from hdmf.common import VectorIndex -from pynwb import NWBHDF5IO, NWBFile +from pynwb import NWBHDF5IO # , NWBFile from pynwb.testing.mock.file import mock_NWBFile -from pynwb.testing import TestCase, remove_test_file, NWBH5IOFlexMixin +from pynwb.testing import TestCase, remove_test_file # , NWBH5IOFlexMixin from uuid import uuid4 from ndx_hed import HedTags, HedNWBFile @@ -53,22 +53,22 @@ def test_roundtrip(self): assert read_nwbfile.hed_schema_version == "8.2.0" -class TestHedNWBFileRoundtripPyNWB(NWBH5IOFlexMixin, TestCase): - """Complex, more complete roundtrip test for HedNWBFile using pynwb.testing infrastructure.""" +# class TestHedNWBFileRoundtripPyNWB(NWBH5IOFlexMixin, TestCase): +# """Complex, more complete roundtrip test for HedNWBFile using pynwb.testing infrastructure.""" - def getContainerType(self): - return "HedNWBFile" +# def getContainerType(self): +# return "HedNWBFile" - def addContainer(self): - self.nwbfile = HedNWBFile( - session_description="session_description", - identifier=str(uuid4()), - session_start_time=datetime(1970, 1, 1, tzinfo=tzlocal()), - hed_schema_version="8.2.0", - ) +# def addContainer(self): +# self.nwbfile = HedNWBFile( +# session_description="session_description", +# identifier=str(uuid4()), +# session_start_time=datetime(1970, 1, 1, tzinfo=tzlocal()), +# hed_schema_version="8.2.0", +# ) - def getContainer(self, nwbfile: NWBFile): - return nwbfile +# def getContainer(self, nwbfile: NWBFile): +# return nwbfile class TestHedTagsConstructor(TestCase): @@ -136,23 +136,23 @@ def test_roundtrip(self): assert all(read_nwbfile.trials["hed_tags"][1] == ["tag1", "tag3"]) -class TestHedTagsRoundtripPyNWB(NWBH5IOFlexMixin, TestCase): - """Complex, more complete roundtrip test for HedTags using pynwb.testing infrastructure.""" +# class TestHedTagsRoundtripPyNWB(NWBH5IOFlexMixin, TestCase): +# """Complex, more complete roundtrip test for HedTags using pynwb.testing infrastructure.""" - def getContainerType(self): - return "HedTags" +# def getContainerType(self): +# return "HedTags" - def addContainer(self): - self.nwbfile = HedNWBFile( - session_description="session_description", - identifier=str(uuid4()), - session_start_time=datetime(1970, 1, 1, tzinfo=tzlocal()), - hed_schema_version="8.2.0", - ) +# def addContainer(self): +# self.nwbfile = HedNWBFile( +# session_description="session_description", +# identifier=str(uuid4()), +# session_start_time=datetime(1970, 1, 1, tzinfo=tzlocal()), +# hed_schema_version="8.2.0", +# ) - self.nwbfile.add_trial_column("hed_tags", "HED tags for each trial", col_cls=HedTags, index=True) - self.nwbfile.add_trial(start_time=0.0, stop_time=1.0, hed_tags=["tag1", "tag2"]) - self.nwbfile.add_trial(start_time=2.0, stop_time=3.0, hed_tags=["tag1", "tag3"]) +# self.nwbfile.add_trial_column("hed_tags", "HED tags for each trial", col_cls=HedTags, index=True) +# self.nwbfile.add_trial(start_time=0.0, stop_time=1.0, hed_tags=["tag1", "tag2"]) +# self.nwbfile.add_trial(start_time=2.0, stop_time=3.0, hed_tags=["tag1", "tag3"]) - def getContainer(self, nwbfile: NWBFile): - return nwbfile.trials["hed_tags"].target +# def getContainer(self, nwbfile: NWBFile): +# return nwbfile.trials["hed_tags"].target