Auswertung Schersteifigkeit Labor Hart ergänzt
This commit is contained in:
@@ -64,6 +64,8 @@ class DataSineLoad():
|
||||
'F', 's_hor_sum', 's_hor_1', 's_hor_2', 's_piston'
|
||||
]
|
||||
|
||||
self.round_values = [('T', 3)]
|
||||
|
||||
# Header names after standardization; check if exists
|
||||
self.val_header_names = ['speciment_height', 'speciment_diameter']
|
||||
|
||||
@@ -197,7 +199,10 @@ class DataSineLoad():
|
||||
|
||||
def _post_apply_units(self):
|
||||
|
||||
for col in ['s_hor_sum', 's_hor_1', 's_hor_2']:
|
||||
for col in [
|
||||
's_hor_sum', 's_hor_1', 's_hor_2', 's_vert_sum', 's_vert_1',
|
||||
's_vert_2'
|
||||
]:
|
||||
if col in self.data.columns:
|
||||
self.data[col] = self.data[col].mul(self.unit_s)
|
||||
|
||||
@@ -209,6 +214,13 @@ class DataSineLoad():
|
||||
|
||||
return True
|
||||
|
||||
def _post_round_values(self):
|
||||
|
||||
for par, digits in self.round_values:
|
||||
|
||||
if par in self.data.columns:
|
||||
self.data[par] = self.data[par].round(digits)
|
||||
|
||||
def _post_select_importent_columns(self):
|
||||
|
||||
# TODO: add more columns, check datamodel
|
||||
@@ -223,6 +235,10 @@ class DataSineLoad():
|
||||
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)
|
||||
|
||||
def _post_opt_data(self):
|
||||
#set dtypes:
|
||||
for col in self.col_as_int:
|
||||
@@ -342,6 +358,7 @@ class DataSineLoad():
|
||||
self._post_string_to_float()
|
||||
self._post_select_importent_columns()
|
||||
self._post_apply_units()
|
||||
self._post_round_values()
|
||||
self._post_calc_missiong_values()
|
||||
self._post_opt_data()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user