Remove broken charge file
This commit is contained in:
parent
31444f919e
commit
96b143dc24
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue