From 56745074c5e4d91241e7f6b4f300dbb4784218d1 Mon Sep 17 00:00:00 2001 From: Thomas Braun Date: Fri, 28 Feb 2020 11:12:49 +0100 Subject: [PATCH] tests/test_nwb1_nwb2_conversion.py: Upgrade to newer pynwb versions Pynwb versions since 6b2a628f (Hardcode units of PatchClampSeries subclasses (#1036), 2019-08-05) use fixed units for the patch clamp series derived classes. After changing that the tests pass again. --- tests/test_nwb1_nwb2_conversion.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_nwb1_nwb2_conversion.py b/tests/test_nwb1_nwb2_conversion.py index a5e3cfe1..67f92a35 100644 --- a/tests/test_nwb1_nwb2_conversion.py +++ b/tests/test_nwb1_nwb2_conversion.py @@ -10,8 +10,6 @@ import datetime from pynwb import NWBFile, NWBHDF5IO -pytestmark = pytest.mark.skip("because pynwb changes break tests, but pynwb is planning to roll back") - class TestNWBConverter(NWBConverter): @staticmethod @@ -85,7 +83,7 @@ def test_stimulus_round_trip(nwb_filename): data = np.array([1., 3.76, 0., 67, -2.89]) meta_data = {"name":"test_stimulus_sweep", "sweep_number": 4, - "unit": "A", + "unit": "amperes", "gain": 32.0, "resolution": 1.0, "conversion": 1.0E-3, @@ -129,7 +127,7 @@ def test_acquisition_round_trip(nwb_filename): data = np.array([1., 3.76, 0., 67, -2.89]) meta_data = {"name":"test_acquisition_sweep", "sweep_number": 4, - "unit": "V", + "unit": "volts", "gain": 32.0, "resolution": 1.0, "conversion": 1.0E-3,