Remove broken charge file

This commit is contained in:
Carl Philipp Klemm
2024-10-28 16:20:23 +01:00
parent 31444f919e
commit 96b143dc24
6 changed files with 28124 additions and 19089 deletions

View File

@ -132,9 +132,13 @@ class ChargeFile:
if soc > 1.05 or soc < -0.05:
return -1
assert not (end_voltage < 3.4 and soc > 0.8)
assert not (end_voltage > 4.0 and soc < 0.6)
assert not (soc < -0.1 or soc > 1.1)
if end_voltage > 4.0 and soc < 0.6:
print(f"Warning: end_voltage = {end_voltage}V and soc = {soc} for cellid = {cellid}")
return -1
if end_voltage < 3.4 and soc > 0.8:
print(f"Warning: end_voltage = {end_voltage}V and soc = {soc} for cellid = {cellid}")
return -1
return soc