From 63202c62cca8107ca1f09bb9da0fcf936feb5700 Mon Sep 17 00:00:00 2001 From: JulioV Date: Sat, 12 Dec 2020 17:11:48 -0500 Subject: [PATCH] Fix BT doryab bug and update change log --- docs/change-log.md | 5 ++++- src/features/phone_bluetooth/doryab/main.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/change-log.md b/docs/change-log.md index 749be5ef..ebff7391 100644 --- a/docs/change-log.md +++ b/docs/change-log.md @@ -1,6 +1,9 @@ # Change Log -## Release in progress +## v0.2.0 +- Add new `PHONE_BLUETOOTH` `DORYAB` provider +- Deprecate `PHONE_BLUETOOTH` `RAPIDS` provider +- Fix bug in `filter_data_by_segment` for Python when dataset was empty - Minor doc updates - New FAQ item diff --git a/src/features/phone_bluetooth/doryab/main.py b/src/features/phone_bluetooth/doryab/main.py index 76b6eb94..e571eb09 100644 --- a/src/features/phone_bluetooth/doryab/main.py +++ b/src/features/phone_bluetooth/doryab/main.py @@ -123,7 +123,7 @@ def doryab_features(sensor_data_files, time_segment, provider, filter_data_by_se bt_data = bt_data.set_index("bt_address").join(device_ownership, how="left").reset_index() bt_data["own_device"].fillna(0, inplace=True) dataset_most_common_device, dataset_least_common_device = mostLeastScannedDevices(bt_data) - segment_bt_data = filter_data_by_segment(bt_data.head(0), time_segment) + segment_bt_data = filter_data_by_segment(bt_data, time_segment) features = pd.DataFrame(columns=['local_segment']).set_index("local_segment") for ownership in provider["FEATURES"].keys():