Private
Public Access
1
0

added filtering on OTW efficiency < 200

This commit is contained in:
Sander Roosendaal
2018-01-09 08:48:10 +01:00
parent 0187f3200e
commit 22eb1c0f9a
2 changed files with 8 additions and 2 deletions

View File

@@ -295,6 +295,12 @@ def clean_df_stats(datadf, workstrokesonly=True, ignorehr=True,
except KeyError:
pass
try:
mask = datadf['efficiency'] > 200.
datadf.loc[mask, 'efficiency'] = np.nan
except KeyError:
pass
try:
mask = datadf['spm'] < 10
datadf.loc[mask, 'spm'] = np.nan

View File

@@ -65,7 +65,7 @@ rowingmetrics = (
'null':True,
'verbose_name': 'Average Drive Force (N)',
'ax_min': 0,
'ax_max': 900,
'ax_max': 1200,
'mode':'both',
'type': 'pro'}),
@@ -74,7 +74,7 @@ rowingmetrics = (
'null':True,
'verbose_name': 'Peak Drive Force (N)',
'ax_min': 0,
'ax_max': 900,
'ax_max': 1500,
'mode':'both',
'type': 'pro'}),