From fec3a22548ece1605eefb3b29a515b207fdab871 Mon Sep 17 00:00:00 2001 From: Ilka Schulz Date: Thu, 17 Nov 2022 09:09:04 +0100 Subject: [PATCH 1/2] add support for column 27: E_we-E_ce/V (fix #74) --- galvani/BioLogic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/galvani/BioLogic.py b/galvani/BioLogic.py index 8c7c047..535b1fc 100644 --- a/galvani/BioLogic.py +++ b/galvani/BioLogic.py @@ -155,6 +155,7 @@ VMPdata_colID_dtype_map = { 23: ('dQ/mA.h', ' Date: Thu, 17 Nov 2022 09:49:45 +0100 Subject: [PATCH 2/2] add test for column 27 (E_we - E_ce) --- tests/test_BioLogic.py | 1 + tests/testdata/col_27_issue_74.mpr | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 tests/testdata/col_27_issue_74.mpr diff --git a/tests/test_BioLogic.py b/tests/test_BioLogic.py index df90b18..db70c39 100644 --- a/tests/test_BioLogic.py +++ b/tests/test_BioLogic.py @@ -137,6 +137,7 @@ def test_parse_BioLogic_date(data, expected): ("C019P-0ppb-A_C01.mpr", "2019-03-14", "2019-03-14"), ("Rapp_Error.mpr", "2010-12-02", "2010-12-02"), ("Ewe_Error.mpr", "2021-11-18", "2021-11-19"), + ("col_27_issue_74.mpr", "2022-07-28", "2022-07-28"), ], ) def test_MPR_dates(testdata_dir, filename, startdate, enddate): diff --git a/tests/testdata/col_27_issue_74.mpr b/tests/testdata/col_27_issue_74.mpr new file mode 100644 index 0000000..ba6fa3c --- /dev/null +++ b/tests/testdata/col_27_issue_74.mpr @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b473539908334f5bdeece204db6c6ebbd5eba16bc34d75af7afcf9d05ce353bb +size 17046