Skip to content

Commit 01a9fd7

Browse files
committed
Removed unused resample frequency
1 parent ab6c2be commit 01a9fd7

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

scdata/device/process/alphasense.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,6 @@ def alphasense_als(dataframe, **kwargs):
213213
Offset the resulting negative values for the signal
214214
background_conc: bool
215215
Offset a background concentration on resulting value
216-
resample_frequency: string
217-
Resample we for gap detection with certain frequency
218216
n_gaps: int
219217
Number of rows that need to be NaN to be considered a gap
220218
Default: 5
@@ -264,7 +262,7 @@ def alphasense_als(dataframe, **kwargs):
264262

265263
# Gaps cleaning
266264
n_gaps = kwargs.get('n_gaps', None)
267-
resample_frequency = kwargs.get('resample_frequency', None)
265+
# resample_frequency = kwargs.get('resample_frequency', None)
268266
gap_window_removal_h = kwargs.get('gap_window_removal_h', 6)
269267

270268
# Rolling
@@ -315,7 +313,7 @@ def alphasense_als(dataframe, **kwargs):
315313
# Find gaps
316314
found_gaps = False
317315
baseline_als_kwargs = {'name': 'we_t'}
318-
if n_gaps and resample_frequency and gap_window_removal_h is not None:
316+
if n_gaps and gap_window_removal_h is not None:
319317
logger.info(f'Searching gaps of at least {n_gaps}')
320318
# logger.info(f'Resampling at {resample_frequency}')
321319
# df = df.resample(resample_frequency).mean() # This is important, otherwise we can't find gaps

0 commit comments

Comments
 (0)