Skip to content

Commit

Permalink
Remove len check of cleaned dataframe
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Hermes committed Apr 22, 2022
1 parent 087604e commit 8c5d1fa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pypg/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -1131,8 +1131,6 @@ def _clean_segment_features_of_outliers(segment_df, treshold=0.8):
for col in segment_df.columns:
if col.find('ts') == -1 and len(segment_df[col]) > 1:
segment_df = segment_df[np.abs(segment_df[col]) < np.abs(quant[col]*2)]
if len(segment_df) < 2: # TODO: Maybe take out because will remove data (Change generate_featueBAsed_Dataset.py)
return pd.DataFrame()
return segment_df

# returns the x values for those samples in the signal, that are closest to some given y value
Expand Down

0 comments on commit 8c5d1fa

Please sign in to comment.