add regression citt, add new datafields to citt

This commit is contained in:
2023-06-16 09:43:33 +02:00
parent 959358e38f
commit cd9bd08863
7 changed files with 244 additions and 29 deletions

View File

@@ -163,7 +163,6 @@ class DataSineLoad():
self._logger.debug(f'columns: {colnames}')
print(self.data.head())
print(self.data['s_piston'].head())
self._logger.debug(f'standardize_data: {self.data.columns}')
@@ -171,10 +170,11 @@ class DataSineLoad():
def _standardize_meta(self):
self._logger.debug('run _standardize_meta')
# remove "\r\n" ending from Windows
# remove "\r\n" ending from Windows and whitespace
for col in list(self.metadata.keys()):
col_mod = col.replace('\r\n', '')
col_mod = col_mod.strip()
if col != col_mod:
self.metadata[col_mod] = self.metadata[col]
@@ -189,6 +189,13 @@ class DataSineLoad():
self.metadata.pop(name)
break
# stip data
for key in self.metadata.keys():
try:
self.metadata[key] = self.metadata[key].strip()
except:
pass
self._logger.debug(f'meta (stand.): {self.metadata}')
@@ -247,6 +254,13 @@ class DataSineLoad():
for col in ['time']:
self.data[col] = self.data[col].mul(self.unit_t)
try:
self.data['f'] = self.data['f'].mul(self.unit_freq)
except:
pass
return True