Skip to content

Commit

Permalink
Merge pull request #68 from chatcannon/add-ewe-column
Browse files Browse the repository at this point in the history
Add Column 174 'Ewe/V'
  • Loading branch information
chatcannon authored Jan 18, 2022
2 parents c02a871 + c1e5d92 commit d6d2125
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions galvani/BioLogic.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def MPTfileCSV(file_or_path):
169: ('Cs/µF', '<f4'),
172: ('Cp/µF', '<f4'),
173: ('Cp-2/µF-2', '<f4'),
174: ('Ewe/V', '<f4'),
241: ('|E1|/V', '<f4'),
242: ('|E2|/V', '<f4'),
271: ('Phase(Z1) / deg', '<f4'),
Expand Down
1 change: 1 addition & 0 deletions tests/test_BioLogic.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def test_parse_BioLogic_date(data, expected):
# C019P-0ppb-A_C01.mpr stores the date in a different format
('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'),
])
def test_MPR_dates(testdata_dir, filename, startdate, enddate):
"""Check that the start and end dates in .mpr files are read correctly."""
Expand Down
3 changes: 3 additions & 0 deletions tests/testdata/Ewe_Error.mpr
Git LFS file not shown
2 changes: 2 additions & 0 deletions tests/testdata/Ewe_Error.mpr.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SPDX-FileCopyrightText Danzi Federico
SPDX-License-Identifier CC-BY-4.0

0 comments on commit d6d2125

Please sign in to comment.