Schersteifigkeit für TUD und Labor Hart ergänzt. Auswertung läuft
This commit is contained in:
@@ -201,7 +201,7 @@ class DataSineLoad():
|
||||
|
||||
for col in [
|
||||
's_hor_sum', 's_hor_1', 's_hor_2', 's_vert_sum', 's_vert_1',
|
||||
's_vert_2'
|
||||
's_vert_2', 's_piston', 'extension',
|
||||
]:
|
||||
if col in self.data.columns:
|
||||
self.data[col] = self.data[col].mul(self.unit_s)
|
||||
@@ -232,12 +232,16 @@ class DataSineLoad():
|
||||
cols = self.data.columns
|
||||
|
||||
if not 's_hor_sum' in cols:
|
||||
self.data['s_hor_sum'] = self.data[['s_hor_1',
|
||||
's_hor_2']].sum(axis=1)
|
||||
if ('s_hor_1' in self.data.columns) & ('s_hor_2'
|
||||
in self.data.columns):
|
||||
self.data['s_hor_sum'] = self.data[['s_hor_1',
|
||||
's_hor_2']].sum(axis=1)
|
||||
|
||||
if not 's_vert_sum' in cols:
|
||||
self.data['s_vert_sum'] = self.data[['s_vert_1',
|
||||
's_vert_2']].sum(axis=1)
|
||||
if ('s_vert_1' in self.data.columns) & ('s_vert_2'
|
||||
in self.data.columns):
|
||||
self.data['s_vert_sum'] = self.data[['s_vert_1',
|
||||
's_vert_2']].sum(axis=1)
|
||||
|
||||
def _post_opt_data(self):
|
||||
#set dtypes:
|
||||
|
||||
Reference in New Issue
Block a user