Fix flake8 lint

This commit is contained in:
2024-02-03 14:00:16 +02:00
parent 7a6ac1c542
commit 5cdc620f16

View File

@@ -209,12 +209,17 @@ def assert_MPR_matches_MPT(mpr, mpt, comments):
except AttributeError: except AttributeError:
pass pass
def assert_MPR_matches_MPT_v2(mpr, mpt, comments): 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. Asserts that the fields in the MPR.data ar the same as in the 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 Modified from assert_MPR_matches_MPT. Automatically converts dtype from MPT data
by -1 or 0 at high frequency in the MPT file, this is not the case in the MPR.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 Parameters
---------- ----------
@@ -293,6 +298,7 @@ def assert_MPR_matches_MPT_v2(mpr, mpt, comments):
except AttributeError: except AttributeError:
pass pass
@pytest.mark.parametrize( @pytest.mark.parametrize(
"basename", "basename",
[ [
@@ -336,6 +342,7 @@ def test_MPR6_matches_MPT6(testdata_dir):
mpr.data = mpr.data[:958] # .mpt file is incomplete mpr.data = mpr.data[:958] # .mpt file is incomplete
assert_MPR_matches_MPT(mpr, mpt, comments) assert_MPR_matches_MPT(mpr, mpt, comments)
@pytest.mark.parametrize( @pytest.mark.parametrize(
"basename_v1150", "basename_v1150",
["v1150_CA", "v1150_CP", "v1150_GCPL", "v1150_GEIS", "v1150_MB", "v1150_OCV", "v1150_PEIS"], ["v1150_CA", "v1150_CP", "v1150_GCPL", "v1150_GEIS", "v1150_MB", "v1150_OCV", "v1150_PEIS"],