Remove broken charge file
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user