From 5cdc620f16c96850d3ae2470143505f37c4b67ae Mon Sep 17 00:00:00 2001 From: Chris Kerr Date: Sat, 3 Feb 2024 14:00:16 +0200 Subject: [PATCH] Fix flake8 lint --- tests/test_BioLogic.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tests/test_BioLogic.py b/tests/test_BioLogic.py index 5f83b36..0d8d111 100644 --- a/tests/test_BioLogic.py +++ b/tests/test_BioLogic.py @@ -209,12 +209,17 @@ def assert_field_exact(fieldname): except AttributeError: pass + def assert_MPR_matches_MPT_v2(mpr, mpt, comments): """ - Asserts that the fields in the MPR.data ar the same as in the MPT. Modified from assert_MPR_matches_MPT. - Automatically converts dtype from MPT data to dtype from MPR data before comparing the columns. - Speficicity for EIS_indicators : these fields are valid only at f<100kHz so their values are replaced - by -1 or 0 at high frequency in the MPT file, this is not the case in the MPR.data. + Asserts that the fields in the MPR.data ar the same as in the MPT. + + Modified from assert_MPR_matches_MPT. Automatically converts dtype from MPT data + to dtype from MPR data before comparing the columns. + + Special case for EIS_indicators: these fields are valid only at f<100kHz so their + values are replaced by -1 or 0 at high frequency in the MPT file, this is not the + case in the MPR data. Parameters ---------- @@ -293,6 +298,7 @@ def assert_field_exact(fieldname): except AttributeError: pass + @pytest.mark.parametrize( "basename", [ @@ -336,6 +342,7 @@ def test_MPR6_matches_MPT6(testdata_dir): mpr.data = mpr.data[:958] # .mpt file is incomplete assert_MPR_matches_MPT(mpr, mpt, comments) + @pytest.mark.parametrize( "basename_v1150", ["v1150_CA", "v1150_CP", "v1150_GCPL", "v1150_GEIS", "v1150_MB", "v1150_OCV", "v1150_PEIS"],