Skip to content

Commit

Permalink
Merge pull request #66 from chatcannon/add-column-R-Ohm
Browse files Browse the repository at this point in the history
Add column IDs for 'R/Ohm' and 'Rapp/Ohm'
  • Loading branch information
chatcannon authored Aug 31, 2021
2 parents dd605e8 + de182bd commit 7ef5be1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions galvani/BioLogic.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def MPTfileCSV(file_or_path):
20: ('control/mA', '<f4'),
23: ('dQ/mA.h', '<f8'), # Same as 7?
24: ('cycle number', '<f8'),
26: ('Rapp/Ohm', '<f4'),
32: ('freq/Hz', '<f4'),
33: ('|Ewe|/V', '<f4'),
34: ('|I|/A', '<f4'),
Expand All @@ -162,6 +163,7 @@ def MPTfileCSV(file_or_path):
37: ('Re(Z)/Ohm', '<f4'),
38: ('-Im(Z)/Ohm', '<f4'),
39: ('I Range', '<u2'),
69: ('R/Ohm', '<f4'),
70: ('P/W', '<f4'),
74: ('Energy/W.h', '<f8'),
75: ('Analog OUT/V', '<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 @@ -87,6 +87,7 @@ def test_colID_to_dtype(colIDs, expected):
('bio_logic6.mpr', '2012-09-11', None),
# 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'),
])
def test_MPR_dates(testdata_dir, filename, startdate, enddate):
"""Check that the start and end dates in .mpr files are read correctly."""
Expand Down

0 comments on commit 7ef5be1

Please sign in to comment.