add rul support
This commit is contained in:
parent
72b4b21c99
commit
62a586a17c
54954
run-24-06-13/meta.csv
54954
run-24-06-13/meta.csv
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -136,3 +136,4 @@ class CellMeta:
|
||||
self.soc = -1
|
||||
self.cap_esitmate = -1
|
||||
self.soc_estimate = -1
|
||||
self.rul = -1
|
||||
|
@ -6,6 +6,7 @@ import tarfile
|
||||
from chargefile import ChargeFile
|
||||
from spectrafile import SpectraFile
|
||||
from soc_estimation import add_soc_estimate
|
||||
from rul import add_rul
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
@ -53,6 +54,7 @@ if __name__ == "__main__":
|
||||
spectras.sort(key=lambda spectra: spectra.step)
|
||||
|
||||
add_soc_estimate(spectras)
|
||||
add_rul(spectras, cells)
|
||||
|
||||
for spectra in spectras:
|
||||
spectra.write(args.out + ".tmp")
|
||||
|
@ -1,13 +1,5 @@
|
||||
from scipy.optimize import curve_fit
|
||||
from scipy.interpolate import splrep, splev
|
||||
import csv
|
||||
import argparse
|
||||
import numpy
|
||||
import matplotlib.pyplot as plt
|
||||
from eisgenerator import EisSpectra
|
||||
import io
|
||||
import tarfile
|
||||
from tqdm import tqdm
|
||||
from spectrafile import SpectraFile
|
||||
|
||||
|
||||
|
@ -28,11 +28,12 @@ class SpectraFile:
|
||||
def write(self, directory: str):
|
||||
metaList = [float(self.step), float(self.substep), float(self.cellid), float(self.meta.cell_group), float(self.temperature), float(self.ocv),
|
||||
float(self.meta.charge_cycles), float(self.meta.thermal_cycles), float(self.meta.last_avg_cap), float(self.meta.last_avg_cap_step),
|
||||
float(self.meta.last_cap), float(self.meta.last_cap_step), float(self.meta.cap_esitmate), float(self.meta.soc), float(self.meta.soc_estimate)]
|
||||
float(self.meta.last_cap), float(self.meta.last_cap_step), float(self.meta.cap_esitmate), float(self.meta.soc), float(self.meta.soc_estimate),
|
||||
float(self.meta.rul)]
|
||||
self.spectra.setLabels(metaList)
|
||||
self.spectra.model = "Unkown"
|
||||
meta_dsc_strings = ["step", "substep", "cellid", "cell_group", "temparature", "ocv", "charge_cycles", "thermal_cycles",
|
||||
"last_avg_cap", "last_avg_step", "last_cap", "last_cap_step", "cap_estimate", "soc", "soc_estimate"]
|
||||
"last_avg_cap", "last_avg_step", "last_cap", "last_cap_step", "cap_estimate", "soc", "soc_estimate", "rul"]
|
||||
self.spectra.headerDescription = "File origin"
|
||||
self.spectra.header = "CoinCellHell mesurement file"
|
||||
self.spectra.labelNames = meta_dsc_strings
|
||||
|
Loading…
x
Reference in New Issue
Block a user