added filtering on OTW efficiency < 200
This commit is contained in:
@@ -295,6 +295,12 @@ def clean_df_stats(datadf, workstrokesonly=True, ignorehr=True,
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
try:
|
||||||
|
mask = datadf['efficiency'] > 200.
|
||||||
|
datadf.loc[mask, 'efficiency'] = np.nan
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
mask = datadf['spm'] < 10
|
mask = datadf['spm'] < 10
|
||||||
datadf.loc[mask, 'spm'] = np.nan
|
datadf.loc[mask, 'spm'] = np.nan
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ rowingmetrics = (
|
|||||||
'null':True,
|
'null':True,
|
||||||
'verbose_name': 'Average Drive Force (N)',
|
'verbose_name': 'Average Drive Force (N)',
|
||||||
'ax_min': 0,
|
'ax_min': 0,
|
||||||
'ax_max': 900,
|
'ax_max': 1200,
|
||||||
'mode':'both',
|
'mode':'both',
|
||||||
'type': 'pro'}),
|
'type': 'pro'}),
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ rowingmetrics = (
|
|||||||
'null':True,
|
'null':True,
|
||||||
'verbose_name': 'Peak Drive Force (N)',
|
'verbose_name': 'Peak Drive Force (N)',
|
||||||
'ax_min': 0,
|
'ax_min': 0,
|
||||||
'ax_max': 900,
|
'ax_max': 1500,
|
||||||
'mode':'both',
|
'mode':'both',
|
||||||
'type': 'pro'}),
|
'type': 'pro'}),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user