From d674010e08c69a76a2940b592d168bfdf6183ab0 Mon Sep 17 00:00:00 2001 From: JulioV Date: Tue, 1 Sep 2020 12:01:45 -0400 Subject: [PATCH] Rename param to provider --- src/features/locations/doryab/main.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/features/locations/doryab/main.py b/src/features/locations/doryab/main.py index ed7b614a..0f0d4037 100644 --- a/src/features/locations/doryab/main.py +++ b/src/features/locations/doryab/main.py @@ -4,15 +4,15 @@ from astropy.timeseries import LombScargle from sklearn.cluster import DBSCAN from math import radians, cos, sin, asin, sqrt -def doryab_features(location_data, day_segment, params, filter_data_by_segment, *args, **kwargs): - requested_features = params["FEATURES"] - dbscan_eps = params["DBSCAN_EPS"] - dbscan_minsamples = params["DBSCAN_MINSAMPLES"] - threshold_static = params["THRESHOLD_STATIC"] - maximum_gap_allowed = params["MAXIMUM_GAP_ALLOWED"] - sampling_frequency = params["SAMPLING_FREQUENCY"] +def doryab_features(location_data, day_segment, provider, filter_data_by_segment, *args, **kwargs): + requested_features = provider["FEATURES"] + dbscan_eps = provider["DBSCAN_EPS"] + dbscan_minsamples = provider["DBSCAN_MINSAMPLES"] + threshold_static = provider["THRESHOLD_STATIC"] + maximum_gap_allowed = provider["MAXIMUM_GAP_ALLOWED"] + sampling_frequency = provider["SAMPLING_FREQUENCY"] - minutes_data_used = params["MINUTES_DATA_USED"] + minutes_data_used = provider["MINUTES_DATA_USED"] if(minutes_data_used): requested_features.append("minutesdataused")