Skip to content

Commit

Permalink
Update test precision for the new data files
Browse files Browse the repository at this point in the history
  • Loading branch information
chatcannon committed Sep 10, 2022
1 parent 0ffdd26 commit e1ff99a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_BioLogic.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,15 @@ def assert_field_exact(fieldname):
mpt["Ewe/V"],
decimal=6) # 32 bit float precision

assert_field_matches("dQ/mA.h", decimal=17) # 64 bit float precision
assert_field_matches("dQ/mA.h", decimal=16) # 64 bit float precision
assert_field_matches("P/W", decimal=10) # 32 bit float precision for 1.xxE-5
assert_field_matches("I/mA", decimal=6) # 32 bit float precision

assert_field_exact("cycle number")
assert_field_matches("(Q-Qo)/C", decimal=6) # 32 bit float precision

try:
assert timestamp_from_comments(comments) == mpr.timestamp
assert timestamp_from_comments(comments) == mpr.timestamp.replace(microsecond=0)
except AttributeError:
pass

Expand All @@ -197,7 +197,7 @@ def test_MPR_matches_MPT(testdata_dir, basename):
binpath = os.path.join(testdata_dir, basename + '.mpr')
txtpath = os.path.join(testdata_dir, basename + '.mpt')
mpr = MPRfile(binpath)
mpt, comments = MPTfile(txtpath)
mpt, comments = MPTfile(txtpath, encoding='latin1')
assert_MPR_matches_MPT(mpr, mpt, comments)


Expand Down

0 comments on commit e1ff99a

Please sign in to comment.