From 0b4704de29338215c3f0f8ca3a2a1bf59323f6bb Mon Sep 17 00:00:00 2001 From: Weiyu Date: Tue, 20 Apr 2021 19:02:08 -0400 Subject: [PATCH] Validated phone screen tests --- docs/developers/testing.md | 4 +- .../external/aware_csv/phone_screen_raw.csv | 161 ++++++++++++++++++ tests/data/external/timesegments_event.csv | 2 +- .../manual/aware_csv/phone_screen_raw.csv | 81 +++++++++ .../mtz_event/android/phone_screen.csv | 3 + .../mtz_event/empatica/phone_screen.csv | 1 + .../features/mtz_event/empty/phone_screen.csv | 1 + .../mtz_event/fitbit/phone_screen.csv | 1 + .../features/mtz_event/ios/phone_screen.csv | 3 + .../mtz_frequency/android/phone_screen.csv | 51 ++++++ .../mtz_frequency/empatica/phone_screen.csv | 1 + .../mtz_frequency/empty/phone_screen.csv | 1 + .../mtz_frequency/fitbit/phone_screen.csv | 1 + .../mtz_frequency/ios/phone_screen.csv | 47 +++++ .../mtz_periodic/android/phone_screen.csv | 23 +++ .../mtz_periodic/empatica/phone_screen.csv | 1 + .../mtz_periodic/empty/phone_screen.csv | 1 + .../mtz_periodic/fitbit/phone_screen.csv | 1 + .../mtz_periodic/ios/phone_screen.csv | 23 +++ .../stz_event/android/phone_screen.csv | 3 + .../stz_event/empatica/phone_screen.csv | 1 + .../features/stz_event/empty/phone_screen.csv | 1 + .../stz_event/fitbit/phone_screen.csv | 1 + .../features/stz_event/ios/phone_screen.csv | 3 + .../stz_frequency/android/phone_screen.csv | 51 ++++++ .../stz_frequency/empatica/phone_screen.csv | 1 + .../stz_frequency/empty/phone_screen.csv | 1 + .../stz_frequency/fitbit/phone_screen.csv | 1 + .../stz_frequency/ios/phone_screen.csv | 47 +++++ .../stz_periodic/android/phone_screen.csv | 23 +++ .../stz_periodic/empatica/phone_screen.csv | 1 + .../stz_periodic/empty/phone_screen.csv | 1 + .../stz_periodic/fitbit/phone_screen.csv | 1 + .../stz_periodic/ios/phone_screen.csv | 23 +++ tests/scripts/assign_test_timestamps.py | 2 +- tests/settings/mtz_event_config.yaml | 2 +- tests/settings/mtz_frequency_config.yaml | 2 +- tests/settings/mtz_periodic_config.yaml | 2 +- tests/settings/stz_event_config.yaml | 2 +- tests/settings/stz_frequency_config.yaml | 2 +- tests/settings/stz_periodic_config.yaml | 2 +- 41 files changed, 570 insertions(+), 10 deletions(-) create mode 100644 tests/data/external/aware_csv/phone_screen_raw.csv create mode 100644 tests/data/manual/aware_csv/phone_screen_raw.csv create mode 100644 tests/data/processed/features/mtz_event/android/phone_screen.csv create mode 100644 tests/data/processed/features/mtz_event/empatica/phone_screen.csv create mode 100644 tests/data/processed/features/mtz_event/empty/phone_screen.csv create mode 100644 tests/data/processed/features/mtz_event/fitbit/phone_screen.csv create mode 100644 tests/data/processed/features/mtz_event/ios/phone_screen.csv create mode 100644 tests/data/processed/features/mtz_frequency/android/phone_screen.csv create mode 100644 tests/data/processed/features/mtz_frequency/empatica/phone_screen.csv create mode 100644 tests/data/processed/features/mtz_frequency/empty/phone_screen.csv create mode 100644 tests/data/processed/features/mtz_frequency/fitbit/phone_screen.csv create mode 100644 tests/data/processed/features/mtz_frequency/ios/phone_screen.csv create mode 100644 tests/data/processed/features/mtz_periodic/android/phone_screen.csv create mode 100644 tests/data/processed/features/mtz_periodic/empatica/phone_screen.csv create mode 100644 tests/data/processed/features/mtz_periodic/empty/phone_screen.csv create mode 100644 tests/data/processed/features/mtz_periodic/fitbit/phone_screen.csv create mode 100644 tests/data/processed/features/mtz_periodic/ios/phone_screen.csv create mode 100644 tests/data/processed/features/stz_event/android/phone_screen.csv create mode 100644 tests/data/processed/features/stz_event/empatica/phone_screen.csv create mode 100644 tests/data/processed/features/stz_event/empty/phone_screen.csv create mode 100644 tests/data/processed/features/stz_event/fitbit/phone_screen.csv create mode 100644 tests/data/processed/features/stz_event/ios/phone_screen.csv create mode 100644 tests/data/processed/features/stz_frequency/android/phone_screen.csv create mode 100644 tests/data/processed/features/stz_frequency/empatica/phone_screen.csv create mode 100644 tests/data/processed/features/stz_frequency/empty/phone_screen.csv create mode 100644 tests/data/processed/features/stz_frequency/fitbit/phone_screen.csv create mode 100644 tests/data/processed/features/stz_frequency/ios/phone_screen.csv create mode 100644 tests/data/processed/features/stz_periodic/android/phone_screen.csv create mode 100644 tests/data/processed/features/stz_periodic/empatica/phone_screen.csv create mode 100644 tests/data/processed/features/stz_periodic/empty/phone_screen.csv create mode 100644 tests/data/processed/features/stz_periodic/fitbit/phone_screen.csv create mode 100644 tests/data/processed/features/stz_periodic/ios/phone_screen.csv diff --git a/docs/developers/testing.md b/docs/developers/testing.md index 279594fe..5dc66823 100644 --- a/docs/developers/testing.md +++ b/docs/developers/testing.md @@ -90,12 +90,12 @@ The following is a simple guide to run RAPIDS' tests. All files necessary for te - For the selected files: (It could be a single file name or multiple file names separated by whitespace(s)) ``` - python tests/script/assign_test_timestamps.py -f file_name_1 file_name_2 + python tests/scripts/assign_test_timestamps.py -f file_name_1 file_name_2 ``` - For all files under the `tests/data/manual/aware_csv` folder: ``` - python tests/script/assign_test_timestamps.py -a + python tests/scripts/assign_test_timestamps.py -a ``` 2. The script `assign_test_timestamps.py` converts you `test_time` column into a `timestamp`. For example, `Fri 22:54:30.597` is converted to `1583553270597` (`Fri Mar 06 2020 22:54:30 GMT-0500`) and to `1604112870597` (`Fri Oct 30 2020 22:54:30 GMT-0400`). Note you can include milliseconds. diff --git a/tests/data/external/aware_csv/phone_screen_raw.csv b/tests/data/external/aware_csv/phone_screen_raw.csv new file mode 100644 index 00000000..e3a6f071 --- /dev/null +++ b/tests/data/external/aware_csv/phone_screen_raw.csv @@ -0,0 +1,161 @@ +timestamp,device_id,screen_status +1583481030385,android,1 +1583481030687,android,3 +1583481390148,android,0 +1583481390775,android,2 +1583492211490,android,1 +1583492211795,android,3 +1583492631204,android,0 +1583492631698,android,2 +1583506822530,android,1 +1583506824937,android,3 +1583508124530,android,0 +1583508124957,android,2 +1583513853230,android,1 +1583513853831,android,3 +1583514753553,android,0 +1583514753953,android,2 +1583524262154,android,1 +1583524262512,android,3 +1583524802490,android,0 +1583524802937,android,2 +1583535086711,android,1 +1583535087049,android,3 +1583536106055,android,0 +1583536106404,android,2 +1583545378480,android,1 +1583545378811,android,3 +1583546518035,android,0 +1583546518492,android,2 +1583481030687,ios,3 +1583481390775,ios,2 +1583492211795,ios,3 +1583492631698,ios,2 +1583506824937,ios,3 +1583508124530,ios,2 +1583513853831,ios,3 +1583514753953,ios,2 +1583524262512,ios,3 +1583524802937,ios,2 +1583535087049,ios,3 +1583536106404,ios,2 +1583545378811,ios,3 +1583546518492,ios,2 +1583558231000,android,3 +1583558401000,android,0 +1583561831000,android,3 +1583562011000,android,0 +1583614621000,android,3 +1583614801000,android,0 +1583621281000,android,3 +1583621521000,android,0 +1583635981000,android,3 +1583636341000,android,0 +1583557511000,ios,3 +1583557751000,ios,2 +1583614681000,ios,3 +1583614981000,ios,2 +1583621281000,ios,3 +1583621521000,ios,2 +1583635981000,ios,3 +1583636341000,ios,2 +1583643900001,android,3 +1583644080001,android,0 +1583657700001,android,3 +1583658900001,android,0 +1583719320001,android,3 +1583719500001,android,0 +1583737260001,android,3 +1583737500001,android,0 +1583802300001,android,3 +1583804220001,android,0 +1583643900001,ios,3 +1583644080001,ios,2 +1583657700001,ios,3 +1583659500001,ios,2 +1583719320001,ios,3 +1583719500001,ios,2 +1583737260001,ios,3 +1583737500001,ios,2 +1583802300001,ios,3 +1583802420001,ios,2 +1604040630385,android,1 +1604040630687,android,3 +1604040990148,android,0 +1604040990775,android,2 +1604051811490,android,1 +1604051811795,android,3 +1604052231204,android,0 +1604052231698,android,2 +1604066422530,android,1 +1604066424937,android,3 +1604067724530,android,0 +1604067724957,android,2 +1604073453230,android,1 +1604073453831,android,3 +1604074353553,android,0 +1604074353953,android,2 +1604083862154,android,1 +1604083862512,android,3 +1604084402490,android,0 +1604084402937,android,2 +1604094686711,android,1 +1604094687049,android,3 +1604095706055,android,0 +1604095706404,android,2 +1604104978480,android,1 +1604104978811,android,3 +1604106118035,android,0 +1604106118492,android,2 +1604040630687,ios,3 +1604040990775,ios,2 +1604051811795,ios,3 +1604052231698,ios,2 +1604066424937,ios,3 +1604067724530,ios,2 +1604073453831,ios,3 +1604074353953,ios,2 +1604083862512,ios,3 +1604084402937,ios,2 +1604094687049,ios,3 +1604095706404,ios,2 +1604104978811,ios,3 +1604106118492,ios,2 +1604117831000,android,3 +1604118001000,android,0 +1604121431000,android,3 +1604121611000,android,0 +1604174221000,android,3 +1604174401000,android,0 +1604180881000,android,3 +1604181121000,android,0 +1604195581000,android,3 +1604195941000,android,0 +1604117111000,ios,3 +1604117351000,ios,2 +1604174281000,ios,3 +1604174581000,ios,2 +1604180881000,ios,3 +1604181121000,ios,2 +1604195581000,ios,3 +1604195941000,ios,2 +1604203500001,android,3 +1604203680001,android,0 +1604224500001,android,3 +1604225700001,android,0 +1604286120001,android,3 +1604286300001,android,0 +1604304060001,android,3 +1604304300001,android,0 +1604369100001,android,3 +1604371020001,android,0 +1604203500001,ios,3 +1604203680001,ios,2 +1604224500001,ios,3 +1604226300001,ios,2 +1604286120001,ios,3 +1604286300001,ios,2 +1604304060001,ios,3 +1604304300001,ios,2 +1604369100001,ios,3 +1604369220001,ios,2 diff --git a/tests/data/external/timesegments_event.csv b/tests/data/external/timesegments_event.csv index a89f46be..c07b4631 100644 --- a/tests/data/external/timesegments_event.csv +++ b/tests/data/external/timesegments_event.csv @@ -8,4 +8,4 @@ beforeNovemberEvent,1604185200000,22H,3H,-1,fitbit beforeMarchEvent,1583625600000,22H,3H,-1,empatica beforeNovemberEvent,1604185200000,22H,3H,-1,empatica beforeMarchEvent,1583625600000,22H,3H,-1,empty -beforeNovemberEvent,1604185200000,22H,3H,-1,empty +beforeNovemberEvent,1604185200000,22H,3H,-1,empty \ No newline at end of file diff --git a/tests/data/manual/aware_csv/phone_screen_raw.csv b/tests/data/manual/aware_csv/phone_screen_raw.csv new file mode 100644 index 00000000..f44e9daa --- /dev/null +++ b/tests/data/manual/aware_csv/phone_screen_raw.csv @@ -0,0 +1,81 @@ +test_time,device_id,screen_status +Fri 02:50:30.385,android,1 +Fri 02:50:30.687,android,3 +Fri 02:56:30.148,android,0 +Fri 02:56:30.775,android,2 +Fri 05:56:51.490,android,1 +Fri 05:56:51.795,android,3 +Fri 06:03:51.204,android,0 +Fri 06:03:51.698,android,2 +Fri 10:00:22.530,android,1 +Fri 10:00:24.937,android,3 +Fri 10:22:04.530,android,0 +Fri 10:22:04.957,android,2 +Fri 11:57:33.230,android,1 +Fri 11:57:33.831,android,3 +Fri 12:12:33.553,android,0 +Fri 12:12:33.953,android,2 +Fri 14:51:02.154,android,1 +Fri 14:51:02.512,android,3 +Fri 15:00:02.490,android,0 +Fri 15:00:02.937,android,2 +Fri 17:51:26.711,android,1 +Fri 17:51:27.049,android,3 +Fri 18:08:26.055,android,0 +Fri 18:08:26.404,android,2 +Fri 20:42:58.480,android,1 +Fri 20:42:58.811,android,3 +Fri 21:01:58.035,android,0 +Fri 21:01:58.492,android,2 +Fri 02:50:30.687,ios,3 +Fri 02:56:30.775,ios,2 +Fri 05:56:51.795,ios,3 +Fri 06:03:51.698,ios,2 +Fri 10:00:24.937,ios,3 +Fri 10:22:04.530,ios,2 +Fri 11:57:33.831,ios,3 +Fri 12:12:33.953,ios,2 +Fri 14:51:02.512,ios,3 +Fri 15:00:02.937,ios,2 +Fri 17:51:27.049,ios,3 +Fri 18:08:26.404,ios,2 +Fri 20:42:58.811,ios,3 +Fri 21:01:58.492,ios,2 +Sat 00:17:11.000,android,3 +Sat 00:20:01.000,android,0 +Sat 01:17:11.000,android,3 +Sat 01:20:11.000,android,0 +Sat 15:57:01.000,android,3 +Sat 16:00:01.000,android,0 +Sat 17:48:01.000,android,3 +Sat 17:52:01.000,android,0 +Sat 21:53:01.000,android,3 +Sat 21:59:01.000,android,0 +Sat 00:05:11.000,ios,3 +Sat 00:09:11.000,ios,2 +Sat 15:58:01.000,ios,3 +Sat 16:03:01.000,ios,2 +Sat 17:48:01.000,ios,3 +Sat 17:52:01.000,ios,2 +Sat 21:53:01.000,ios,3 +Sat 21:59:01.000,ios,2 +Sun 00:05:00.001,android,3 +Sun 00:08:00.001,android,0 +Sun 04:55:00.001,android,3 +Sun 05:15:00.001,android,0 +Sun 22:02:00.001,android,3 +Sun 22:05:00.001,android,0 +Mon 03:01:00.001,android,3 +Mon 03:05:00.001,android,0 +Mon 21:05:00.001,android,3 +Mon 21:37:00.001,android,0 +Sun 00:05:00.001,ios,3 +Sun 00:08:00.001,ios,2 +Sun 04:55:00.001,ios,3 +Sun 05:25:00.001,ios,2 +Sun 22:02:00.001,ios,3 +Sun 22:05:00.001,ios,2 +Mon 03:01:00.001,ios,3 +Mon 03:05:00.001,ios,2 +Mon 21:05:00.001,ios,3 +Mon 21:07:00.001,ios,2 \ No newline at end of file diff --git a/tests/data/processed/features/mtz_event/android/phone_screen.csv b/tests/data/processed/features/mtz_event/android/phone_screen.csv new file mode 100644 index 00000000..4f1639df --- /dev/null +++ b/tests/data/processed/features/mtz_event/android/phone_screen.csv @@ -0,0 +1,3 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" +"beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",5,33.0161,19.9996666666667,0.01665,6.60322,7.79378500540477,780 +"beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",5,33.0161,19.9996666666667,0.01665,6.60322,7.79378500540477,780 diff --git a/tests/data/processed/features/mtz_event/empatica/phone_screen.csv b/tests/data/processed/features/mtz_event/empatica/phone_screen.csv new file mode 100644 index 00000000..b0cc1f47 --- /dev/null +++ b/tests/data/processed/features/mtz_event/empatica/phone_screen.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" diff --git a/tests/data/processed/features/mtz_event/empty/phone_screen.csv b/tests/data/processed/features/mtz_event/empty/phone_screen.csv new file mode 100644 index 00000000..65e3356a --- /dev/null +++ b/tests/data/processed/features/mtz_event/empty/phone_screen.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_maxdurationunlock" diff --git a/tests/data/processed/features/mtz_event/fitbit/phone_screen.csv b/tests/data/processed/features/mtz_event/fitbit/phone_screen.csv new file mode 100644 index 00000000..b0cc1f47 --- /dev/null +++ b/tests/data/processed/features/mtz_event/fitbit/phone_screen.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" diff --git a/tests/data/processed/features/mtz_event/ios/phone_screen.csv b/tests/data/processed/features/mtz_event/ios/phone_screen.csv new file mode 100644 index 00000000..2ef9470b --- /dev/null +++ b/tests/data/processed/features/mtz_event/ios/phone_screen.csv @@ -0,0 +1,3 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" +"beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",5,46.0158833333333,29.9995,2.99995,9.20317666666666,11.6894775193785,780 +"beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",5,46.0158833333333,29.9995,2.99995,9.20317666666666,11.6894775193785,780 diff --git a/tests/data/processed/features/mtz_frequency/android/phone_screen.csv b/tests/data/processed/features/mtz_frequency/android/phone_screen.csv new file mode 100644 index 00000000..cd4aad51 --- /dev/null +++ b/tests/data/processed/features/mtz_frequency/android/phone_screen.csv @@ -0,0 +1,51 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" +"thirtyminutes0000#2020-03-07 00:00:00,2020-03-07 00:29:59","thirtyminutes0000","2020-03-07 00:00:00","2020-03-07 00:29:59",1,2.8333,2.8333,2.8333,2.8333,NA,17.1833333333333 +"thirtyminutes0000#2020-10-31 00:00:00,2020-10-31 00:29:59","thirtyminutes0000","2020-10-31 00:00:00","2020-10-31 00:29:59",1,2.8333,2.8333,2.8333,2.8333,NA,17.1833333333333 +"thirtyminutes0001#2020-03-08 00:30:00,2020-03-08 00:59:59","thirtyminutes0001","2020-03-08 00:30:00","2020-03-08 00:59:59",1,4.9999,4.9999,4.9999,4.9999,NA,55 +"thirtyminutes0002#2020-03-07 01:00:00,2020-03-07 01:29:59","thirtyminutes0002","2020-03-07 01:00:00","2020-03-07 01:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,77.1833333333333 +"thirtyminutes0002#2020-03-08 01:00:00,2020-03-08 01:29:59","thirtyminutes0002","2020-03-08 01:00:00","2020-03-08 01:29:59",1,14.99975,14.99975,14.99975,14.99975,NA,60 +"thirtyminutes0002#2020-10-31 01:00:00,2020-10-31 01:29:59","thirtyminutes0002","2020-10-31 01:00:00","2020-10-31 01:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,77.1833333333333 +"thirtyminutes0003#2020-11-01 01:30:00,2020-11-01 01:59:59","thirtyminutes0003","2020-11-01 01:30:00","2020-11-01 01:59:59",1,4.9999,4.9999,4.9999,4.9999,NA,115 +"thirtyminutes0004#2020-11-01 02:00:00,2020-11-01 02:29:59","thirtyminutes0004","2020-11-01 02:00:00","2020-11-01 02:29:59",1,14.99975,14.99975,14.99975,14.99975,NA,120 +"thirtyminutes0005#2020-03-06 02:30:00,2020-03-06 02:59:59","thirtyminutes0005","2020-03-06 02:30:00","2020-03-06 02:59:59",1,5.99093333333333,5.99093333333333,5.99093333333333,5.99093333333333,NA,170.5 +"thirtyminutes0005#2020-10-30 02:30:00,2020-10-30 02:59:59","thirtyminutes0005","2020-10-30 02:30:00","2020-10-30 02:59:59",1,5.99093333333333,5.99093333333333,5.99093333333333,5.99093333333333,NA,170.5 +"thirtyminutes0006#2020-03-09 03:00:00,2020-03-09 03:29:59","thirtyminutes0006","2020-03-09 03:00:00","2020-03-09 03:29:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,181 +"thirtyminutes0006#2020-11-02 03:00:00,2020-11-02 03:29:59","thirtyminutes0006","2020-11-02 03:00:00","2020-11-02 03:29:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,181 +"thirtyminutes0011#2020-03-06 05:30:00,2020-03-06 05:59:59","thirtyminutes0011","2020-03-06 05:30:00","2020-03-06 05:59:59",1,3.13668333333333,3.13668333333333,3.13668333333333,3.13668333333333,NA,356.85 +"thirtyminutes0011#2020-10-30 05:30:00,2020-10-30 05:59:59","thirtyminutes0011","2020-10-30 05:30:00","2020-10-30 05:59:59",1,3.13668333333333,3.13668333333333,3.13668333333333,3.13668333333333,NA,356.85 +"thirtyminutes0012#2020-03-06 06:00:00,2020-03-06 06:29:59","thirtyminutes0012","2020-03-06 06:00:00","2020-03-06 06:29:59",1,3.85335,3.85335,3.85335,3.85335,NA,360 +"thirtyminutes0012#2020-10-30 06:00:00,2020-10-30 06:29:59","thirtyminutes0012","2020-10-30 06:00:00","2020-10-30 06:29:59",1,3.85335,3.85335,3.85335,3.85335,NA,360 +"thirtyminutes0020#2020-03-06 10:00:00,2020-03-06 10:29:59","thirtyminutes0020","2020-03-06 10:00:00","2020-03-06 10:29:59",1,21.6595333333333,21.6595333333333,21.6595333333333,21.6595333333333,NA,600.4 +"thirtyminutes0020#2020-10-30 10:00:00,2020-10-30 10:29:59","thirtyminutes0020","2020-10-30 10:00:00","2020-10-30 10:29:59",1,21.6595333333333,21.6595333333333,21.6595333333333,21.6595333333333,NA,600.4 +"thirtyminutes0023#2020-03-06 11:30:00,2020-03-06 11:59:59","thirtyminutes0023","2020-03-06 11:30:00","2020-03-06 11:59:59",1,2.4361,2.4361,2.4361,2.4361,NA,717.55 +"thirtyminutes0023#2020-10-30 11:30:00,2020-10-30 11:59:59","thirtyminutes0023","2020-10-30 11:30:00","2020-10-30 11:59:59",1,2.4361,2.4361,2.4361,2.4361,NA,717.55 +"thirtyminutes0024#2020-03-06 12:00:00,2020-03-06 12:29:59","thirtyminutes0024","2020-03-06 12:00:00","2020-03-06 12:29:59",1,12.5590166666667,12.5590166666667,12.5590166666667,12.5590166666667,NA,720 +"thirtyminutes0024#2020-10-30 12:00:00,2020-10-30 12:29:59","thirtyminutes0024","2020-10-30 12:00:00","2020-10-30 12:29:59",1,12.5590166666667,12.5590166666667,12.5590166666667,12.5590166666667,NA,720 +"thirtyminutes0025#2020-03-07 12:30:00,2020-03-07 12:59:59","thirtyminutes0025","2020-03-07 12:30:00","2020-03-07 12:59:59",1,2.98328333333333,2.98328333333333,2.98328333333333,2.98328333333333,NA,777.016666666667 +"thirtyminutes0025#2020-10-31 12:30:00,2020-10-31 12:59:59","thirtyminutes0025","2020-10-31 12:30:00","2020-10-31 12:59:59",1,2.98328333333333,2.98328333333333,2.98328333333333,2.98328333333333,NA,777.016666666667 +"thirtyminutes0026#2020-03-07 13:00:00,2020-03-07 13:29:59","thirtyminutes0026","2020-03-07 13:00:00","2020-03-07 13:29:59",1,0.01665,0.01665,0.01665,0.01665,NA,780 +"thirtyminutes0026#2020-10-31 13:00:00,2020-10-31 13:29:59","thirtyminutes0026","2020-10-31 13:00:00","2020-10-31 13:29:59",1,0.01665,0.01665,0.01665,0.01665,NA,780 +"thirtyminutes0029#2020-03-06 14:30:00,2020-03-06 14:59:59","thirtyminutes0029","2020-03-06 14:30:00","2020-03-06 14:59:59",1,8.95798333333333,8.95798333333333,8.95798333333333,8.95798333333333,NA,891.033333333333 +"thirtyminutes0029#2020-03-07 14:30:00,2020-03-07 14:59:59","thirtyminutes0029","2020-03-07 14:30:00","2020-03-07 14:59:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,888.016666666667 +"thirtyminutes0029#2020-10-30 14:30:00,2020-10-30 14:59:59","thirtyminutes0029","2020-10-30 14:30:00","2020-10-30 14:59:59",1,8.95798333333333,8.95798333333333,8.95798333333333,8.95798333333333,NA,891.033333333333 +"thirtyminutes0029#2020-10-31 14:30:00,2020-10-31 14:59:59","thirtyminutes0029","2020-10-31 14:30:00","2020-10-31 14:59:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,888.016666666667 +"thirtyminutes0030#2020-03-06 15:00:00,2020-03-06 15:29:59","thirtyminutes0030","2020-03-06 15:00:00","2020-03-06 15:29:59",1,0.0415,0.0415,0.0415,0.0415,NA,900 +"thirtyminutes0030#2020-10-30 15:00:00,2020-10-30 15:29:59","thirtyminutes0030","2020-10-30 15:00:00","2020-10-30 15:29:59",1,0.0415,0.0415,0.0415,0.0415,NA,900 +"thirtyminutes0035#2020-03-06 17:30:00,2020-03-06 17:59:59","thirtyminutes0035","2020-03-06 17:30:00","2020-03-06 17:59:59",1,8.54903333333333,8.54903333333333,8.54903333333333,8.54903333333333,NA,1071.45 +"thirtyminutes0035#2020-10-30 17:30:00,2020-10-30 17:59:59","thirtyminutes0035","2020-10-30 17:30:00","2020-10-30 17:59:59",1,8.54903333333333,8.54903333333333,8.54903333333333,8.54903333333333,NA,1071.45 +"thirtyminutes0036#2020-03-06 18:00:00,2020-03-06 18:29:59","thirtyminutes0036","2020-03-06 18:00:00","2020-03-06 18:29:59",1,8.43411666666667,8.43411666666667,8.43411666666667,8.43411666666667,NA,1080 +"thirtyminutes0036#2020-10-30 18:00:00,2020-10-30 18:29:59","thirtyminutes0036","2020-10-30 18:00:00","2020-10-30 18:29:59",1,8.43411666666667,8.43411666666667,8.43411666666667,8.43411666666667,NA,1080 +"thirtyminutes0037#2020-03-07 18:30:00,2020-03-07 18:59:59","thirtyminutes0037","2020-03-07 18:30:00","2020-03-07 18:59:59",1,5.9999,5.9999,5.9999,5.9999,NA,1133.01666666667 +"thirtyminutes0037#2020-10-31 18:30:00,2020-10-31 18:59:59","thirtyminutes0037","2020-10-31 18:30:00","2020-10-31 18:59:59",1,5.9999,5.9999,5.9999,5.9999,NA,1133.01666666667 +"thirtyminutes0041#2020-03-06 20:30:00,2020-03-06 20:59:59","thirtyminutes0041","2020-03-06 20:30:00","2020-03-06 20:59:59",1,17.0195166666667,17.0195166666667,17.0195166666667,17.0195166666667,NA,1242.96666666667 +"thirtyminutes0041#2020-10-30 20:30:00,2020-10-30 20:59:59","thirtyminutes0041","2020-10-30 20:30:00","2020-10-30 20:59:59",1,17.0195166666667,17.0195166666667,17.0195166666667,17.0195166666667,NA,1242.96666666667 +"thirtyminutes0042#2020-03-06 21:00:00,2020-03-06 21:29:59","thirtyminutes0042","2020-03-06 21:00:00","2020-03-06 21:29:59",1,1.96723333333333,1.96723333333333,1.96723333333333,1.96723333333333,NA,1260 +"thirtyminutes0042#2020-03-07 21:00:00,2020-03-07 21:29:59","thirtyminutes0042","2020-03-07 21:00:00","2020-03-07 21:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,1265 +"thirtyminutes0042#2020-03-09 21:00:00,2020-03-09 21:29:59","thirtyminutes0042","2020-03-09 21:00:00","2020-03-09 21:29:59",1,24.9995666666667,24.9995666666667,24.9995666666667,24.9995666666667,NA,1265 +"thirtyminutes0042#2020-10-30 21:00:00,2020-10-30 21:29:59","thirtyminutes0042","2020-10-30 21:00:00","2020-10-30 21:29:59",1,1.96723333333333,1.96723333333333,1.96723333333333,1.96723333333333,NA,1260 +"thirtyminutes0042#2020-10-31 21:00:00,2020-10-31 21:29:59","thirtyminutes0042","2020-10-31 21:00:00","2020-10-31 21:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,1265 +"thirtyminutes0042#2020-11-02 21:00:00,2020-11-02 21:29:59","thirtyminutes0042","2020-11-02 21:00:00","2020-11-02 21:29:59",1,24.9995666666667,24.9995666666667,24.9995666666667,24.9995666666667,NA,1265 +"thirtyminutes0043#2020-03-09 21:30:00,2020-03-09 21:59:59","thirtyminutes0043","2020-03-09 21:30:00","2020-03-09 21:59:59",1,6.99988333333333,6.99988333333333,6.99988333333333,6.99988333333333,NA,1290 +"thirtyminutes0043#2020-11-02 21:30:00,2020-11-02 21:59:59","thirtyminutes0043","2020-11-02 21:30:00","2020-11-02 21:59:59",1,6.99988333333333,6.99988333333333,6.99988333333333,6.99988333333333,NA,1290 +"thirtyminutes0044#2020-03-08 22:00:00,2020-03-08 22:29:59","thirtyminutes0044","2020-03-08 22:00:00","2020-03-08 22:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,1322 +"thirtyminutes0044#2020-11-01 22:00:00,2020-11-01 22:29:59","thirtyminutes0044","2020-11-01 22:00:00","2020-11-01 22:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,1322 diff --git a/tests/data/processed/features/mtz_frequency/empatica/phone_screen.csv b/tests/data/processed/features/mtz_frequency/empatica/phone_screen.csv new file mode 100644 index 00000000..b0cc1f47 --- /dev/null +++ b/tests/data/processed/features/mtz_frequency/empatica/phone_screen.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" diff --git a/tests/data/processed/features/mtz_frequency/empty/phone_screen.csv b/tests/data/processed/features/mtz_frequency/empty/phone_screen.csv new file mode 100644 index 00000000..65e3356a --- /dev/null +++ b/tests/data/processed/features/mtz_frequency/empty/phone_screen.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_maxdurationunlock" diff --git a/tests/data/processed/features/mtz_frequency/fitbit/phone_screen.csv b/tests/data/processed/features/mtz_frequency/fitbit/phone_screen.csv new file mode 100644 index 00000000..b0cc1f47 --- /dev/null +++ b/tests/data/processed/features/mtz_frequency/fitbit/phone_screen.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" diff --git a/tests/data/processed/features/mtz_frequency/ios/phone_screen.csv b/tests/data/processed/features/mtz_frequency/ios/phone_screen.csv new file mode 100644 index 00000000..df4451f1 --- /dev/null +++ b/tests/data/processed/features/mtz_frequency/ios/phone_screen.csv @@ -0,0 +1,47 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" +"thirtyminutes0000#2020-03-07 00:00:00,2020-03-07 00:29:59","thirtyminutes0000","2020-03-07 00:00:00","2020-03-07 00:29:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,5.18333333333333 +"thirtyminutes0000#2020-10-31 00:00:00,2020-10-31 00:29:59","thirtyminutes0000","2020-10-31 00:00:00","2020-10-31 00:29:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,5.18333333333333 +"thirtyminutes0001#2020-03-08 00:30:00,2020-03-08 00:59:59","thirtyminutes0001","2020-03-08 00:30:00","2020-03-08 00:59:59",1,4.9999,4.9999,4.9999,4.9999,NA,55 +"thirtyminutes0002#2020-03-08 01:00:00,2020-03-08 01:29:59","thirtyminutes0002","2020-03-08 01:00:00","2020-03-08 01:29:59",1,24.9995833333333,24.9995833333333,24.9995833333333,24.9995833333333,NA,60 +"thirtyminutes0003#2020-11-01 01:30:00,2020-11-01 01:59:59","thirtyminutes0003","2020-11-01 01:30:00","2020-11-01 01:59:59",1,4.9999,4.9999,4.9999,4.9999,NA,115 +"thirtyminutes0004#2020-11-01 02:00:00,2020-11-01 02:29:59","thirtyminutes0004","2020-11-01 02:00:00","2020-11-01 02:29:59",1,24.9995833333333,24.9995833333333,24.9995833333333,24.9995833333333,NA,120 +"thirtyminutes0005#2020-03-06 02:30:00,2020-03-06 02:59:59","thirtyminutes0005","2020-03-06 02:30:00","2020-03-06 02:59:59",1,6.00136666666667,6.00136666666667,6.00136666666667,6.00136666666667,NA,170.5 +"thirtyminutes0005#2020-10-30 02:30:00,2020-10-30 02:59:59","thirtyminutes0005","2020-10-30 02:30:00","2020-10-30 02:59:59",1,6.00136666666667,6.00136666666667,6.00136666666667,6.00136666666667,NA,170.5 +"thirtyminutes0006#2020-03-09 03:00:00,2020-03-09 03:29:59","thirtyminutes0006","2020-03-09 03:00:00","2020-03-09 03:29:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,181 +"thirtyminutes0006#2020-11-02 03:00:00,2020-11-02 03:29:59","thirtyminutes0006","2020-11-02 03:00:00","2020-11-02 03:29:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,181 +"thirtyminutes0011#2020-03-06 05:30:00,2020-03-06 05:59:59","thirtyminutes0011","2020-03-06 05:30:00","2020-03-06 05:59:59",1,3.13668333333333,3.13668333333333,3.13668333333333,3.13668333333333,NA,356.85 +"thirtyminutes0011#2020-10-30 05:30:00,2020-10-30 05:59:59","thirtyminutes0011","2020-10-30 05:30:00","2020-10-30 05:59:59",1,3.13668333333333,3.13668333333333,3.13668333333333,3.13668333333333,NA,356.85 +"thirtyminutes0012#2020-03-06 06:00:00,2020-03-06 06:29:59","thirtyminutes0012","2020-03-06 06:00:00","2020-03-06 06:29:59",1,3.86158333333333,3.86158333333333,3.86158333333333,3.86158333333333,NA,360 +"thirtyminutes0012#2020-10-30 06:00:00,2020-10-30 06:29:59","thirtyminutes0012","2020-10-30 06:00:00","2020-10-30 06:29:59",1,3.86158333333333,3.86158333333333,3.86158333333333,3.86158333333333,NA,360 +"thirtyminutes0020#2020-03-06 10:00:00,2020-03-06 10:29:59","thirtyminutes0020","2020-03-06 10:00:00","2020-03-06 10:29:59",1,21.6595333333333,21.6595333333333,21.6595333333333,21.6595333333333,NA,600.4 +"thirtyminutes0020#2020-10-30 10:00:00,2020-10-30 10:29:59","thirtyminutes0020","2020-10-30 10:00:00","2020-10-30 10:29:59",1,21.6595333333333,21.6595333333333,21.6595333333333,21.6595333333333,NA,600.4 +"thirtyminutes0023#2020-03-06 11:30:00,2020-03-06 11:59:59","thirtyminutes0023","2020-03-06 11:30:00","2020-03-06 11:59:59",1,2.4361,2.4361,2.4361,2.4361,NA,717.55 +"thirtyminutes0023#2020-10-30 11:30:00,2020-10-30 11:59:59","thirtyminutes0023","2020-10-30 11:30:00","2020-10-30 11:59:59",1,2.4361,2.4361,2.4361,2.4361,NA,717.55 +"thirtyminutes0024#2020-03-06 12:00:00,2020-03-06 12:29:59","thirtyminutes0024","2020-03-06 12:00:00","2020-03-06 12:29:59",1,12.5656666666667,12.5656666666667,12.5656666666667,12.5656666666667,NA,720 +"thirtyminutes0024#2020-10-30 12:00:00,2020-10-30 12:29:59","thirtyminutes0024","2020-10-30 12:00:00","2020-10-30 12:29:59",1,12.5656666666667,12.5656666666667,12.5656666666667,12.5656666666667,NA,720 +"thirtyminutes0025#2020-03-07 12:30:00,2020-03-07 12:59:59","thirtyminutes0025","2020-03-07 12:30:00","2020-03-07 12:59:59",1,1.9833,1.9833,1.9833,1.9833,NA,778.016666666667 +"thirtyminutes0025#2020-10-31 12:30:00,2020-10-31 12:59:59","thirtyminutes0025","2020-10-31 12:30:00","2020-10-31 12:59:59",1,1.9833,1.9833,1.9833,1.9833,NA,778.016666666667 +"thirtyminutes0026#2020-03-07 13:00:00,2020-03-07 13:29:59","thirtyminutes0026","2020-03-07 13:00:00","2020-03-07 13:29:59",1,3.0166,3.0166,3.0166,3.0166,NA,780 +"thirtyminutes0026#2020-10-31 13:00:00,2020-10-31 13:29:59","thirtyminutes0026","2020-10-31 13:00:00","2020-10-31 13:29:59",1,3.0166,3.0166,3.0166,3.0166,NA,780 +"thirtyminutes0029#2020-03-06 14:30:00,2020-03-06 14:59:59","thirtyminutes0029","2020-03-06 14:30:00","2020-03-06 14:59:59",1,8.95798333333333,8.95798333333333,8.95798333333333,8.95798333333333,NA,891.033333333333 +"thirtyminutes0029#2020-03-07 14:30:00,2020-03-07 14:59:59","thirtyminutes0029","2020-03-07 14:30:00","2020-03-07 14:59:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,888.016666666667 +"thirtyminutes0029#2020-10-30 14:30:00,2020-10-30 14:59:59","thirtyminutes0029","2020-10-30 14:30:00","2020-10-30 14:59:59",1,8.95798333333333,8.95798333333333,8.95798333333333,8.95798333333333,NA,891.033333333333 +"thirtyminutes0029#2020-10-31 14:30:00,2020-10-31 14:59:59","thirtyminutes0029","2020-10-31 14:30:00","2020-10-31 14:59:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,888.016666666667 +"thirtyminutes0030#2020-03-06 15:00:00,2020-03-06 15:29:59","thirtyminutes0030","2020-03-06 15:00:00","2020-03-06 15:29:59",1,0.0489333333333333,0.0489333333333333,0.0489333333333333,0.0489333333333333,NA,900 +"thirtyminutes0030#2020-10-30 15:00:00,2020-10-30 15:29:59","thirtyminutes0030","2020-10-30 15:00:00","2020-10-30 15:29:59",1,0.0489333333333333,0.0489333333333333,0.0489333333333333,0.0489333333333333,NA,900 +"thirtyminutes0035#2020-03-06 17:30:00,2020-03-06 17:59:59","thirtyminutes0035","2020-03-06 17:30:00","2020-03-06 17:59:59",1,8.54903333333333,8.54903333333333,8.54903333333333,8.54903333333333,NA,1071.45 +"thirtyminutes0035#2020-10-30 17:30:00,2020-10-30 17:59:59","thirtyminutes0035","2020-10-30 17:30:00","2020-10-30 17:59:59",1,8.54903333333333,8.54903333333333,8.54903333333333,8.54903333333333,NA,1071.45 +"thirtyminutes0036#2020-03-06 18:00:00,2020-03-06 18:29:59","thirtyminutes0036","2020-03-06 18:00:00","2020-03-06 18:29:59",1,8.43993333333333,8.43993333333333,8.43993333333333,8.43993333333333,NA,1080 +"thirtyminutes0036#2020-10-30 18:00:00,2020-10-30 18:29:59","thirtyminutes0036","2020-10-30 18:00:00","2020-10-30 18:29:59",1,8.43993333333333,8.43993333333333,8.43993333333333,8.43993333333333,NA,1080 +"thirtyminutes0037#2020-03-07 18:30:00,2020-03-07 18:59:59","thirtyminutes0037","2020-03-07 18:30:00","2020-03-07 18:59:59",1,5.9999,5.9999,5.9999,5.9999,NA,1133.01666666667 +"thirtyminutes0037#2020-10-31 18:30:00,2020-10-31 18:59:59","thirtyminutes0037","2020-10-31 18:30:00","2020-10-31 18:59:59",1,5.9999,5.9999,5.9999,5.9999,NA,1133.01666666667 +"thirtyminutes0041#2020-03-06 20:30:00,2020-03-06 20:59:59","thirtyminutes0041","2020-03-06 20:30:00","2020-03-06 20:59:59",1,17.0195166666667,17.0195166666667,17.0195166666667,17.0195166666667,NA,1242.96666666667 +"thirtyminutes0041#2020-10-30 20:30:00,2020-10-30 20:59:59","thirtyminutes0041","2020-10-30 20:30:00","2020-10-30 20:59:59",1,17.0195166666667,17.0195166666667,17.0195166666667,17.0195166666667,NA,1242.96666666667 +"thirtyminutes0042#2020-03-06 21:00:00,2020-03-06 21:29:59","thirtyminutes0042","2020-03-06 21:00:00","2020-03-06 21:29:59",1,1.97485,1.97485,1.97485,1.97485,NA,1260 +"thirtyminutes0042#2020-03-07 21:00:00,2020-03-07 21:29:59","thirtyminutes0042","2020-03-07 21:00:00","2020-03-07 21:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,1265 +"thirtyminutes0042#2020-03-09 21:00:00,2020-03-09 21:29:59","thirtyminutes0042","2020-03-09 21:00:00","2020-03-09 21:29:59",1,1.99996666666667,1.99996666666667,1.99996666666667,1.99996666666667,NA,1265 +"thirtyminutes0042#2020-10-30 21:00:00,2020-10-30 21:29:59","thirtyminutes0042","2020-10-30 21:00:00","2020-10-30 21:29:59",1,1.97485,1.97485,1.97485,1.97485,NA,1260 +"thirtyminutes0042#2020-10-31 21:00:00,2020-10-31 21:29:59","thirtyminutes0042","2020-10-31 21:00:00","2020-10-31 21:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,1265 +"thirtyminutes0042#2020-11-02 21:00:00,2020-11-02 21:29:59","thirtyminutes0042","2020-11-02 21:00:00","2020-11-02 21:29:59",1,1.99996666666667,1.99996666666667,1.99996666666667,1.99996666666667,NA,1265 +"thirtyminutes0044#2020-03-08 22:00:00,2020-03-08 22:29:59","thirtyminutes0044","2020-03-08 22:00:00","2020-03-08 22:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,1322 +"thirtyminutes0044#2020-11-01 22:00:00,2020-11-01 22:29:59","thirtyminutes0044","2020-11-01 22:00:00","2020-11-01 22:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,1322 diff --git a/tests/data/processed/features/mtz_periodic/android/phone_screen.csv b/tests/data/processed/features/mtz_periodic/android/phone_screen.csv new file mode 100644 index 00000000..071f4495 --- /dev/null +++ b/tests/data/processed/features/mtz_periodic/android/phone_screen.csv @@ -0,0 +1,23 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" +"daily#2020-03-06 00:00:00,2020-03-06 23:59:59","daily","2020-03-06 00:00:00","2020-03-06 23:59:59",7,94.6050833333333,21.6595333333333,5.99093333333333,13.5150119047619,6.19231944078572,170.5 +"daily#2020-03-07 00:00:00,2020-03-07 23:59:59","daily","2020-03-07 00:00:00","2020-03-07 23:59:59",6,21.8329833333333,5.9999,2.8333,3.63883055555556,1.23113189434297,17.1833333333333 +"daily#2020-03-08 00:00:00,2020-03-08 23:59:59","daily","2020-03-08 00:00:00","2020-03-08 23:59:59",2,22.9996166666667,19.9996666666667,2.99995,11.4998083333333,12.02061493325,55 +"daily#2020-03-09 00:00:00,2020-03-09 23:59:59","daily","2020-03-09 00:00:00","2020-03-09 23:59:59",2,35.9994,31.9994666666667,3.99993333333333,17.9997,19.7986598900588,181 +"daily#2020-10-30 00:00:00,2020-10-30 23:59:59","daily","2020-10-30 00:00:00","2020-10-30 23:59:59",7,94.6050833333333,21.6595333333333,5.99093333333333,13.5150119047619,6.19231944078572,170.5 +"daily#2020-10-31 00:00:00,2020-10-31 23:59:59","daily","2020-10-31 00:00:00","2020-10-31 23:59:59",6,21.8329833333333,5.9999,2.8333,3.63883055555556,1.23113189434297,17.1833333333333 +"daily#2020-11-01 00:00:00,2020-11-01 23:59:59","daily","2020-11-01 00:00:00","2020-11-01 23:59:59",2,22.9996166666667,19.9996666666667,2.99995,11.4998083333333,12.02061493325,115 +"daily#2020-11-02 00:00:00,2020-11-02 23:59:59","daily","2020-11-02 00:00:00","2020-11-02 23:59:59",2,35.9994,31.9994666666667,3.99993333333333,17.9997,19.7986598900588,181 +"morning#2020-03-06 06:00:00,2020-03-06 11:59:59","morning","2020-03-06 06:00:00","2020-03-06 11:59:59",3,27.9489833333333,21.6595333333333,2.4361,9.31632777777778,10.7129917357687,360 +"morning#2020-10-30 06:00:00,2020-10-30 11:59:59","morning","2020-10-30 06:00:00","2020-10-30 11:59:59",3,27.9489833333333,21.6595333333333,2.4361,9.31632777777778,10.7129917357687,360 +"threeday#2020-03-06 00:00:00,2020-03-08 23:59:59","threeday","2020-03-06 00:00:00","2020-03-08 23:59:59",15,139.437683333333,21.6595333333333,2.8333,9.29584555555556,7.11375880805815,170.5 +"threeday#2020-03-07 00:00:00,2020-03-09 23:59:59","threeday","2020-03-07 00:00:00","2020-03-09 23:59:59",10,80.832,31.9994666666667,2.8333,8.0832,9.9028359214313,17.1833333333333 +"threeday#2020-03-08 00:00:00,2020-03-10 23:59:59","threeday","2020-03-08 00:00:00","2020-03-10 23:59:59",4,58.9990166666666,31.9994666666667,2.99995,14.7497541666667,13.8892129425932,55 +"threeday#2020-03-09 00:00:00,2020-03-11 23:59:59","threeday","2020-03-09 00:00:00","2020-03-11 23:59:59",2,35.9994,31.9994666666667,3.99993333333333,17.9997,19.7986598900588,181 +"threeday#2020-10-28 00:00:00,2020-10-30 23:59:59","threeday","2020-10-28 00:00:00","2020-10-30 23:59:59",7,94.6050833333333,21.6595333333333,5.99093333333333,13.5150119047619,6.19231944078572,170.5 +"threeday#2020-10-29 00:00:00,2020-10-31 23:59:59","threeday","2020-10-29 00:00:00","2020-10-31 23:59:59",13,116.438066666667,21.6595333333333,2.8333,8.95677435897436,6.78707849207751,170.5 +"threeday#2020-10-30 00:00:00,2020-11-01 23:59:59","threeday","2020-10-30 00:00:00","2020-11-01 23:59:59",15,139.437683333333,21.6595333333333,2.8333,9.29584555555556,7.11375880805815,170.5 +"threeday#2020-10-31 00:00:00,2020-11-02 23:59:59","threeday","2020-10-31 00:00:00","2020-11-02 23:59:59",10,80.832,31.9994666666667,2.8333,8.0832,9.9028359214313,17.1833333333333 +"threeday#2020-11-01 00:00:00,2020-11-03 23:59:59","threeday","2020-11-01 00:00:00","2020-11-03 23:59:59",4,58.9990166666666,31.9994666666667,2.99995,14.7497541666667,13.8892129425932,115 +"threeday#2020-11-02 00:00:00,2020-11-04 23:59:59","threeday","2020-11-02 00:00:00","2020-11-04 23:59:59",2,35.9994,31.9994666666667,3.99993333333333,17.9997,19.7986598900588,181 +"weekend#2020-03-06 00:00:00,2020-03-08 23:59:59","weekend","2020-03-06 00:00:00","2020-03-08 23:59:59",15,139.437683333333,21.6595333333333,2.8333,9.29584555555556,7.11375880805815,170.5 +"weekend#2020-10-30 00:00:00,2020-11-01 23:59:59","weekend","2020-10-30 00:00:00","2020-11-01 23:59:59",15,139.437683333333,21.6595333333333,2.8333,9.29584555555556,7.11375880805815,170.5 diff --git a/tests/data/processed/features/mtz_periodic/empatica/phone_screen.csv b/tests/data/processed/features/mtz_periodic/empatica/phone_screen.csv new file mode 100644 index 00000000..b0cc1f47 --- /dev/null +++ b/tests/data/processed/features/mtz_periodic/empatica/phone_screen.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" diff --git a/tests/data/processed/features/mtz_periodic/empty/phone_screen.csv b/tests/data/processed/features/mtz_periodic/empty/phone_screen.csv new file mode 100644 index 00000000..65e3356a --- /dev/null +++ b/tests/data/processed/features/mtz_periodic/empty/phone_screen.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_maxdurationunlock" diff --git a/tests/data/processed/features/mtz_periodic/fitbit/phone_screen.csv b/tests/data/processed/features/mtz_periodic/fitbit/phone_screen.csv new file mode 100644 index 00000000..b0cc1f47 --- /dev/null +++ b/tests/data/processed/features/mtz_periodic/fitbit/phone_screen.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" diff --git a/tests/data/processed/features/mtz_periodic/ios/phone_screen.csv b/tests/data/processed/features/mtz_periodic/ios/phone_screen.csv new file mode 100644 index 00000000..7e90041a --- /dev/null +++ b/tests/data/processed/features/mtz_periodic/ios/phone_screen.csv @@ -0,0 +1,23 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" +"daily#2020-03-06 00:00:00,2020-03-06 23:59:59","daily","2020-03-06 00:00:00","2020-03-06 23:59:59",7,94.6512666666667,21.6595333333333,6.00136666666667,13.5216095238095,6.18978716736703,170.5 +"daily#2020-03-07 00:00:00,2020-03-07 23:59:59","daily","2020-03-07 00:00:00","2020-03-07 23:59:59",5,21.9996333333333,5.9999,2.99995,4.39992666666667,1.14015642217539,5.18333333333333 +"daily#2020-03-08 00:00:00,2020-03-08 23:59:59","daily","2020-03-08 00:00:00","2020-03-08 23:59:59",2,32.99945,29.9995,2.99995,16.499725,19.0915648939852,55 +"daily#2020-03-09 00:00:00,2020-03-09 23:59:59","daily","2020-03-09 00:00:00","2020-03-09 23:59:59",2,5.9999,3.99993333333333,1.99996666666667,2.99995,1.41418999214706,181 +"daily#2020-10-30 00:00:00,2020-10-30 23:59:59","daily","2020-10-30 00:00:00","2020-10-30 23:59:59",7,94.6512666666667,21.6595333333333,6.00136666666667,13.5216095238095,6.18978716736703,170.5 +"daily#2020-10-31 00:00:00,2020-10-31 23:59:59","daily","2020-10-31 00:00:00","2020-10-31 23:59:59",5,21.9996333333333,5.9999,2.99995,4.39992666666667,1.14015642217539,5.18333333333333 +"daily#2020-11-01 00:00:00,2020-11-01 23:59:59","daily","2020-11-01 00:00:00","2020-11-01 23:59:59",2,32.99945,29.9995,2.99995,16.499725,19.0915648939852,115 +"daily#2020-11-02 00:00:00,2020-11-02 23:59:59","daily","2020-11-02 00:00:00","2020-11-02 23:59:59",2,5.9999,3.99993333333333,1.99996666666667,2.99995,1.41418999214706,181 +"morning#2020-03-06 06:00:00,2020-03-06 11:59:59","morning","2020-03-06 06:00:00","2020-03-06 11:59:59",3,27.9572166666667,21.6595333333333,2.4361,9.31907222222222,10.7108933338698,360 +"morning#2020-10-30 06:00:00,2020-10-30 11:59:59","morning","2020-10-30 06:00:00","2020-10-30 11:59:59",3,27.9572166666667,21.6595333333333,2.4361,9.31907222222222,10.7108933338698,360 +"threeday#2020-03-06 00:00:00,2020-03-08 23:59:59","threeday","2020-03-06 00:00:00","2020-03-08 23:59:59",14,149.65035,29.9995,2.99995,10.6893107142857,8.41713211936808,170.5 +"threeday#2020-03-07 00:00:00,2020-03-09 23:59:59","threeday","2020-03-07 00:00:00","2020-03-09 23:59:59",9,60.9989833333333,29.9995,1.99996666666667,6.77766481481481,8.78589046811643,5.18333333333333 +"threeday#2020-03-08 00:00:00,2020-03-10 23:59:59","threeday","2020-03-08 00:00:00","2020-03-10 23:59:59",4,38.99935,29.9995,1.99996666666667,9.7498375,13.5244434079652,55 +"threeday#2020-03-09 00:00:00,2020-03-11 23:59:59","threeday","2020-03-09 00:00:00","2020-03-11 23:59:59",2,5.9999,3.99993333333333,1.99996666666667,2.99995,1.41418999214706,181 +"threeday#2020-10-28 00:00:00,2020-10-30 23:59:59","threeday","2020-10-28 00:00:00","2020-10-30 23:59:59",7,94.6512666666667,21.6595333333333,6.00136666666667,13.5216095238095,6.18978716736703,170.5 +"threeday#2020-10-29 00:00:00,2020-10-31 23:59:59","threeday","2020-10-29 00:00:00","2020-10-31 23:59:59",12,116.6509,21.6595333333333,2.99995,9.72090833333333,6.59036592991442,170.5 +"threeday#2020-10-30 00:00:00,2020-11-01 23:59:59","threeday","2020-10-30 00:00:00","2020-11-01 23:59:59",14,149.65035,29.9995,2.99995,10.6893107142857,8.41713211936808,170.5 +"threeday#2020-10-31 00:00:00,2020-11-02 23:59:59","threeday","2020-10-31 00:00:00","2020-11-02 23:59:59",9,60.9989833333333,29.9995,1.99996666666667,6.77766481481481,8.78589046811643,5.18333333333333 +"threeday#2020-11-01 00:00:00,2020-11-03 23:59:59","threeday","2020-11-01 00:00:00","2020-11-03 23:59:59",4,38.99935,29.9995,1.99996666666667,9.7498375,13.5244434079652,115 +"threeday#2020-11-02 00:00:00,2020-11-04 23:59:59","threeday","2020-11-02 00:00:00","2020-11-04 23:59:59",2,5.9999,3.99993333333333,1.99996666666667,2.99995,1.41418999214706,181 +"weekend#2020-03-06 00:00:00,2020-03-08 23:59:59","weekend","2020-03-06 00:00:00","2020-03-08 23:59:59",14,149.65035,29.9995,2.99995,10.6893107142857,8.41713211936808,170.5 +"weekend#2020-10-30 00:00:00,2020-11-01 23:59:59","weekend","2020-10-30 00:00:00","2020-11-01 23:59:59",14,149.65035,29.9995,2.99995,10.6893107142857,8.41713211936808,170.5 diff --git a/tests/data/processed/features/stz_event/android/phone_screen.csv b/tests/data/processed/features/stz_event/android/phone_screen.csv new file mode 100644 index 00000000..24f2d2dc --- /dev/null +++ b/tests/data/processed/features/stz_event/android/phone_screen.csv @@ -0,0 +1,3 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" +"beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",5,33.0161,19.9996666666667,0.01665,6.60322,7.79378500540477,960 +"beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",5,33.0161,19.9996666666667,0.01665,6.60322,7.79378500540477,960 diff --git a/tests/data/processed/features/stz_event/empatica/phone_screen.csv b/tests/data/processed/features/stz_event/empatica/phone_screen.csv new file mode 100644 index 00000000..b0cc1f47 --- /dev/null +++ b/tests/data/processed/features/stz_event/empatica/phone_screen.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" diff --git a/tests/data/processed/features/stz_event/empty/phone_screen.csv b/tests/data/processed/features/stz_event/empty/phone_screen.csv new file mode 100644 index 00000000..6cc00f38 --- /dev/null +++ b/tests/data/processed/features/stz_event/empty/phone_screen.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" diff --git a/tests/data/processed/features/stz_event/fitbit/phone_screen.csv b/tests/data/processed/features/stz_event/fitbit/phone_screen.csv new file mode 100644 index 00000000..b0cc1f47 --- /dev/null +++ b/tests/data/processed/features/stz_event/fitbit/phone_screen.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" diff --git a/tests/data/processed/features/stz_event/ios/phone_screen.csv b/tests/data/processed/features/stz_event/ios/phone_screen.csv new file mode 100644 index 00000000..84953b91 --- /dev/null +++ b/tests/data/processed/features/stz_event/ios/phone_screen.csv @@ -0,0 +1,3 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" +"beforeMarchEvent#2020-03-07 16:00:00,2020-03-08 15:00:00","beforeMarchEvent","2020-03-07 16:00:00","2020-03-08 15:00:00",5,46.0158833333333,29.9995,2.99995,9.20317666666666,11.6894775193785,960 +"beforeNovemberEvent#2020-10-31 16:00:00,2020-11-01 13:00:00","beforeNovemberEvent","2020-10-31 16:00:00","2020-11-01 13:00:00",5,46.0158833333333,29.9995,2.99995,9.20317666666666,11.6894775193785,960 diff --git a/tests/data/processed/features/stz_frequency/android/phone_screen.csv b/tests/data/processed/features/stz_frequency/android/phone_screen.csv new file mode 100644 index 00000000..baa71882 --- /dev/null +++ b/tests/data/processed/features/stz_frequency/android/phone_screen.csv @@ -0,0 +1,51 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" +"thirtyminutes0000#2020-03-07 00:00:00,2020-03-07 00:29:59","thirtyminutes0000","2020-03-07 00:00:00","2020-03-07 00:29:59",1,2.8333,2.8333,2.8333,2.8333,NA,17.1833333333333 +"thirtyminutes0000#2020-03-08 00:00:00,2020-03-08 00:29:59","thirtyminutes0000","2020-03-08 00:00:00","2020-03-08 00:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,5 +"thirtyminutes0000#2020-10-31 00:00:00,2020-10-31 00:29:59","thirtyminutes0000","2020-10-31 00:00:00","2020-10-31 00:29:59",1,2.8333,2.8333,2.8333,2.8333,NA,17.1833333333333 +"thirtyminutes0000#2020-11-01 00:00:00,2020-11-01 00:29:59","thirtyminutes0000","2020-11-01 00:00:00","2020-11-01 00:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,5 +"thirtyminutes0002#2020-03-07 01:00:00,2020-03-07 01:29:59","thirtyminutes0002","2020-03-07 01:00:00","2020-03-07 01:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,77.1833333333333 +"thirtyminutes0002#2020-10-31 01:00:00,2020-10-31 01:29:59","thirtyminutes0002","2020-10-31 01:00:00","2020-10-31 01:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,77.1833333333333 +"thirtyminutes0005#2020-03-06 02:30:00,2020-03-06 02:59:59","thirtyminutes0005","2020-03-06 02:30:00","2020-03-06 02:59:59",1,5.99093333333333,5.99093333333333,5.99093333333333,5.99093333333333,NA,170.5 +"thirtyminutes0005#2020-10-30 02:30:00,2020-10-30 02:59:59","thirtyminutes0005","2020-10-30 02:30:00","2020-10-30 02:59:59",1,5.99093333333333,5.99093333333333,5.99093333333333,5.99093333333333,NA,170.5 +"thirtyminutes0006#2020-03-09 03:00:00,2020-03-09 03:29:59","thirtyminutes0006","2020-03-09 03:00:00","2020-03-09 03:29:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,181 +"thirtyminutes0006#2020-11-02 03:00:00,2020-11-02 03:29:59","thirtyminutes0006","2020-11-02 03:00:00","2020-11-02 03:29:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,181 +"thirtyminutes0009#2020-03-08 04:30:00,2020-03-08 04:59:59","thirtyminutes0009","2020-03-08 04:30:00","2020-03-08 04:59:59",1,4.9999,4.9999,4.9999,4.9999,NA,295 +"thirtyminutes0009#2020-11-01 04:30:00,2020-11-01 04:59:59","thirtyminutes0009","2020-11-01 04:30:00","2020-11-01 04:59:59",1,4.9999,4.9999,4.9999,4.9999,NA,295 +"thirtyminutes0010#2020-03-08 05:00:00,2020-03-08 05:29:59","thirtyminutes0010","2020-03-08 05:00:00","2020-03-08 05:29:59",1,14.99975,14.99975,14.99975,14.99975,NA,300 +"thirtyminutes0010#2020-11-01 05:00:00,2020-11-01 05:29:59","thirtyminutes0010","2020-11-01 05:00:00","2020-11-01 05:29:59",1,14.99975,14.99975,14.99975,14.99975,NA,300 +"thirtyminutes0011#2020-03-06 05:30:00,2020-03-06 05:59:59","thirtyminutes0011","2020-03-06 05:30:00","2020-03-06 05:59:59",1,3.13668333333333,3.13668333333333,3.13668333333333,3.13668333333333,NA,356.85 +"thirtyminutes0011#2020-10-30 05:30:00,2020-10-30 05:59:59","thirtyminutes0011","2020-10-30 05:30:00","2020-10-30 05:59:59",1,3.13668333333333,3.13668333333333,3.13668333333333,3.13668333333333,NA,356.85 +"thirtyminutes0012#2020-03-06 06:00:00,2020-03-06 06:29:59","thirtyminutes0012","2020-03-06 06:00:00","2020-03-06 06:29:59",1,3.85335,3.85335,3.85335,3.85335,NA,360 +"thirtyminutes0012#2020-10-30 06:00:00,2020-10-30 06:29:59","thirtyminutes0012","2020-10-30 06:00:00","2020-10-30 06:29:59",1,3.85335,3.85335,3.85335,3.85335,NA,360 +"thirtyminutes0020#2020-03-06 10:00:00,2020-03-06 10:29:59","thirtyminutes0020","2020-03-06 10:00:00","2020-03-06 10:29:59",1,21.6595333333333,21.6595333333333,21.6595333333333,21.6595333333333,NA,600.4 +"thirtyminutes0020#2020-10-30 10:00:00,2020-10-30 10:29:59","thirtyminutes0020","2020-10-30 10:00:00","2020-10-30 10:29:59",1,21.6595333333333,21.6595333333333,21.6595333333333,21.6595333333333,NA,600.4 +"thirtyminutes0023#2020-03-06 11:30:00,2020-03-06 11:59:59","thirtyminutes0023","2020-03-06 11:30:00","2020-03-06 11:59:59",1,2.4361,2.4361,2.4361,2.4361,NA,717.55 +"thirtyminutes0023#2020-10-30 11:30:00,2020-10-30 11:59:59","thirtyminutes0023","2020-10-30 11:30:00","2020-10-30 11:59:59",1,2.4361,2.4361,2.4361,2.4361,NA,717.55 +"thirtyminutes0024#2020-03-06 12:00:00,2020-03-06 12:29:59","thirtyminutes0024","2020-03-06 12:00:00","2020-03-06 12:29:59",1,12.5590166666667,12.5590166666667,12.5590166666667,12.5590166666667,NA,720 +"thirtyminutes0024#2020-10-30 12:00:00,2020-10-30 12:29:59","thirtyminutes0024","2020-10-30 12:00:00","2020-10-30 12:29:59",1,12.5590166666667,12.5590166666667,12.5590166666667,12.5590166666667,NA,720 +"thirtyminutes0029#2020-03-06 14:30:00,2020-03-06 14:59:59","thirtyminutes0029","2020-03-06 14:30:00","2020-03-06 14:59:59",1,8.95798333333333,8.95798333333333,8.95798333333333,8.95798333333333,NA,891.033333333333 +"thirtyminutes0029#2020-10-30 14:30:00,2020-10-30 14:59:59","thirtyminutes0029","2020-10-30 14:30:00","2020-10-30 14:59:59",1,8.95798333333333,8.95798333333333,8.95798333333333,8.95798333333333,NA,891.033333333333 +"thirtyminutes0030#2020-03-06 15:00:00,2020-03-06 15:29:59","thirtyminutes0030","2020-03-06 15:00:00","2020-03-06 15:29:59",1,0.0415,0.0415,0.0415,0.0415,NA,900 +"thirtyminutes0030#2020-10-30 15:00:00,2020-10-30 15:29:59","thirtyminutes0030","2020-10-30 15:00:00","2020-10-30 15:29:59",1,0.0415,0.0415,0.0415,0.0415,NA,900 +"thirtyminutes0031#2020-03-07 15:30:00,2020-03-07 15:59:59","thirtyminutes0031","2020-03-07 15:30:00","2020-03-07 15:59:59",1,2.98328333333333,2.98328333333333,2.98328333333333,2.98328333333333,NA,957.016666666667 +"thirtyminutes0031#2020-10-31 15:30:00,2020-10-31 15:59:59","thirtyminutes0031","2020-10-31 15:30:00","2020-10-31 15:59:59",1,2.98328333333333,2.98328333333333,2.98328333333333,2.98328333333333,NA,957.016666666667 +"thirtyminutes0032#2020-03-07 16:00:00,2020-03-07 16:29:59","thirtyminutes0032","2020-03-07 16:00:00","2020-03-07 16:29:59",1,0.01665,0.01665,0.01665,0.01665,NA,960 +"thirtyminutes0032#2020-10-31 16:00:00,2020-10-31 16:29:59","thirtyminutes0032","2020-10-31 16:00:00","2020-10-31 16:29:59",1,0.01665,0.01665,0.01665,0.01665,NA,960 +"thirtyminutes0035#2020-03-06 17:30:00,2020-03-06 17:59:59","thirtyminutes0035","2020-03-06 17:30:00","2020-03-06 17:59:59",1,8.54903333333333,8.54903333333333,8.54903333333333,8.54903333333333,NA,1071.45 +"thirtyminutes0035#2020-03-07 17:30:00,2020-03-07 17:59:59","thirtyminutes0035","2020-03-07 17:30:00","2020-03-07 17:59:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,1068.01666666667 +"thirtyminutes0035#2020-10-30 17:30:00,2020-10-30 17:59:59","thirtyminutes0035","2020-10-30 17:30:00","2020-10-30 17:59:59",1,8.54903333333333,8.54903333333333,8.54903333333333,8.54903333333333,NA,1071.45 +"thirtyminutes0035#2020-10-31 17:30:00,2020-10-31 17:59:59","thirtyminutes0035","2020-10-31 17:30:00","2020-10-31 17:59:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,1068.01666666667 +"thirtyminutes0036#2020-03-06 18:00:00,2020-03-06 18:29:59","thirtyminutes0036","2020-03-06 18:00:00","2020-03-06 18:29:59",1,8.43411666666667,8.43411666666667,8.43411666666667,8.43411666666667,NA,1080 +"thirtyminutes0036#2020-10-30 18:00:00,2020-10-30 18:29:59","thirtyminutes0036","2020-10-30 18:00:00","2020-10-30 18:29:59",1,8.43411666666667,8.43411666666667,8.43411666666667,8.43411666666667,NA,1080 +"thirtyminutes0041#2020-03-06 20:30:00,2020-03-06 20:59:59","thirtyminutes0041","2020-03-06 20:30:00","2020-03-06 20:59:59",1,17.0195166666667,17.0195166666667,17.0195166666667,17.0195166666667,NA,1242.96666666667 +"thirtyminutes0041#2020-10-30 20:30:00,2020-10-30 20:59:59","thirtyminutes0041","2020-10-30 20:30:00","2020-10-30 20:59:59",1,17.0195166666667,17.0195166666667,17.0195166666667,17.0195166666667,NA,1242.96666666667 +"thirtyminutes0042#2020-03-06 21:00:00,2020-03-06 21:29:59","thirtyminutes0042","2020-03-06 21:00:00","2020-03-06 21:29:59",1,1.96723333333333,1.96723333333333,1.96723333333333,1.96723333333333,NA,1260 +"thirtyminutes0042#2020-03-09 21:00:00,2020-03-09 21:29:59","thirtyminutes0042","2020-03-09 21:00:00","2020-03-09 21:29:59",1,24.9995666666667,24.9995666666667,24.9995666666667,24.9995666666667,NA,1265 +"thirtyminutes0042#2020-10-30 21:00:00,2020-10-30 21:29:59","thirtyminutes0042","2020-10-30 21:00:00","2020-10-30 21:29:59",1,1.96723333333333,1.96723333333333,1.96723333333333,1.96723333333333,NA,1260 +"thirtyminutes0042#2020-11-02 21:00:00,2020-11-02 21:29:59","thirtyminutes0042","2020-11-02 21:00:00","2020-11-02 21:29:59",1,24.9995666666667,24.9995666666667,24.9995666666667,24.9995666666667,NA,1265 +"thirtyminutes0043#2020-03-07 21:30:00,2020-03-07 21:59:59","thirtyminutes0043","2020-03-07 21:30:00","2020-03-07 21:59:59",1,5.9999,5.9999,5.9999,5.9999,NA,1313.01666666667 +"thirtyminutes0043#2020-03-09 21:30:00,2020-03-09 21:59:59","thirtyminutes0043","2020-03-09 21:30:00","2020-03-09 21:59:59",1,6.99988333333333,6.99988333333333,6.99988333333333,6.99988333333333,NA,1290 +"thirtyminutes0043#2020-10-31 21:30:00,2020-10-31 21:59:59","thirtyminutes0043","2020-10-31 21:30:00","2020-10-31 21:59:59",1,5.9999,5.9999,5.9999,5.9999,NA,1313.01666666667 +"thirtyminutes0043#2020-11-02 21:30:00,2020-11-02 21:59:59","thirtyminutes0043","2020-11-02 21:30:00","2020-11-02 21:59:59",1,6.99988333333333,6.99988333333333,6.99988333333333,6.99988333333333,NA,1290 +"thirtyminutes0044#2020-03-08 22:00:00,2020-03-08 22:29:59","thirtyminutes0044","2020-03-08 22:00:00","2020-03-08 22:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,1322 +"thirtyminutes0044#2020-11-01 22:00:00,2020-11-01 22:29:59","thirtyminutes0044","2020-11-01 22:00:00","2020-11-01 22:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,1322 diff --git a/tests/data/processed/features/stz_frequency/empatica/phone_screen.csv b/tests/data/processed/features/stz_frequency/empatica/phone_screen.csv new file mode 100644 index 00000000..5fab2803 --- /dev/null +++ b/tests/data/processed/features/stz_frequency/empatica/phone_screen.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_mindurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_avgdurationunlock" diff --git a/tests/data/processed/features/stz_frequency/empty/phone_screen.csv b/tests/data/processed/features/stz_frequency/empty/phone_screen.csv new file mode 100644 index 00000000..5fab2803 --- /dev/null +++ b/tests/data/processed/features/stz_frequency/empty/phone_screen.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_mindurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_avgdurationunlock" diff --git a/tests/data/processed/features/stz_frequency/fitbit/phone_screen.csv b/tests/data/processed/features/stz_frequency/fitbit/phone_screen.csv new file mode 100644 index 00000000..b0cc1f47 --- /dev/null +++ b/tests/data/processed/features/stz_frequency/fitbit/phone_screen.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" diff --git a/tests/data/processed/features/stz_frequency/ios/phone_screen.csv b/tests/data/processed/features/stz_frequency/ios/phone_screen.csv new file mode 100644 index 00000000..e6f0612a --- /dev/null +++ b/tests/data/processed/features/stz_frequency/ios/phone_screen.csv @@ -0,0 +1,47 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" +"thirtyminutes0000#2020-03-07 00:00:00,2020-03-07 00:29:59","thirtyminutes0000","2020-03-07 00:00:00","2020-03-07 00:29:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,5.18333333333333 +"thirtyminutes0000#2020-03-08 00:00:00,2020-03-08 00:29:59","thirtyminutes0000","2020-03-08 00:00:00","2020-03-08 00:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,5 +"thirtyminutes0000#2020-10-31 00:00:00,2020-10-31 00:29:59","thirtyminutes0000","2020-10-31 00:00:00","2020-10-31 00:29:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,5.18333333333333 +"thirtyminutes0000#2020-11-01 00:00:00,2020-11-01 00:29:59","thirtyminutes0000","2020-11-01 00:00:00","2020-11-01 00:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,5 +"thirtyminutes0005#2020-03-06 02:30:00,2020-03-06 02:59:59","thirtyminutes0005","2020-03-06 02:30:00","2020-03-06 02:59:59",1,6.00136666666667,6.00136666666667,6.00136666666667,6.00136666666667,NA,170.5 +"thirtyminutes0005#2020-10-30 02:30:00,2020-10-30 02:59:59","thirtyminutes0005","2020-10-30 02:30:00","2020-10-30 02:59:59",1,6.00136666666667,6.00136666666667,6.00136666666667,6.00136666666667,NA,170.5 +"thirtyminutes0006#2020-03-09 03:00:00,2020-03-09 03:29:59","thirtyminutes0006","2020-03-09 03:00:00","2020-03-09 03:29:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,181 +"thirtyminutes0006#2020-11-02 03:00:00,2020-11-02 03:29:59","thirtyminutes0006","2020-11-02 03:00:00","2020-11-02 03:29:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,181 +"thirtyminutes0009#2020-03-08 04:30:00,2020-03-08 04:59:59","thirtyminutes0009","2020-03-08 04:30:00","2020-03-08 04:59:59",1,4.9999,4.9999,4.9999,4.9999,NA,295 +"thirtyminutes0009#2020-11-01 04:30:00,2020-11-01 04:59:59","thirtyminutes0009","2020-11-01 04:30:00","2020-11-01 04:59:59",1,4.9999,4.9999,4.9999,4.9999,NA,295 +"thirtyminutes0010#2020-03-08 05:00:00,2020-03-08 05:29:59","thirtyminutes0010","2020-03-08 05:00:00","2020-03-08 05:29:59",1,24.9995833333333,24.9995833333333,24.9995833333333,24.9995833333333,NA,300 +"thirtyminutes0010#2020-11-01 05:00:00,2020-11-01 05:29:59","thirtyminutes0010","2020-11-01 05:00:00","2020-11-01 05:29:59",1,24.9995833333333,24.9995833333333,24.9995833333333,24.9995833333333,NA,300 +"thirtyminutes0011#2020-03-06 05:30:00,2020-03-06 05:59:59","thirtyminutes0011","2020-03-06 05:30:00","2020-03-06 05:59:59",1,3.13668333333333,3.13668333333333,3.13668333333333,3.13668333333333,NA,356.85 +"thirtyminutes0011#2020-10-30 05:30:00,2020-10-30 05:59:59","thirtyminutes0011","2020-10-30 05:30:00","2020-10-30 05:59:59",1,3.13668333333333,3.13668333333333,3.13668333333333,3.13668333333333,NA,356.85 +"thirtyminutes0012#2020-03-06 06:00:00,2020-03-06 06:29:59","thirtyminutes0012","2020-03-06 06:00:00","2020-03-06 06:29:59",1,3.86158333333333,3.86158333333333,3.86158333333333,3.86158333333333,NA,360 +"thirtyminutes0012#2020-10-30 06:00:00,2020-10-30 06:29:59","thirtyminutes0012","2020-10-30 06:00:00","2020-10-30 06:29:59",1,3.86158333333333,3.86158333333333,3.86158333333333,3.86158333333333,NA,360 +"thirtyminutes0020#2020-03-06 10:00:00,2020-03-06 10:29:59","thirtyminutes0020","2020-03-06 10:00:00","2020-03-06 10:29:59",1,21.6595333333333,21.6595333333333,21.6595333333333,21.6595333333333,NA,600.4 +"thirtyminutes0020#2020-10-30 10:00:00,2020-10-30 10:29:59","thirtyminutes0020","2020-10-30 10:00:00","2020-10-30 10:29:59",1,21.6595333333333,21.6595333333333,21.6595333333333,21.6595333333333,NA,600.4 +"thirtyminutes0023#2020-03-06 11:30:00,2020-03-06 11:59:59","thirtyminutes0023","2020-03-06 11:30:00","2020-03-06 11:59:59",1,2.4361,2.4361,2.4361,2.4361,NA,717.55 +"thirtyminutes0023#2020-10-30 11:30:00,2020-10-30 11:59:59","thirtyminutes0023","2020-10-30 11:30:00","2020-10-30 11:59:59",1,2.4361,2.4361,2.4361,2.4361,NA,717.55 +"thirtyminutes0024#2020-03-06 12:00:00,2020-03-06 12:29:59","thirtyminutes0024","2020-03-06 12:00:00","2020-03-06 12:29:59",1,12.5656666666667,12.5656666666667,12.5656666666667,12.5656666666667,NA,720 +"thirtyminutes0024#2020-10-30 12:00:00,2020-10-30 12:29:59","thirtyminutes0024","2020-10-30 12:00:00","2020-10-30 12:29:59",1,12.5656666666667,12.5656666666667,12.5656666666667,12.5656666666667,NA,720 +"thirtyminutes0029#2020-03-06 14:30:00,2020-03-06 14:59:59","thirtyminutes0029","2020-03-06 14:30:00","2020-03-06 14:59:59",1,8.95798333333333,8.95798333333333,8.95798333333333,8.95798333333333,NA,891.033333333333 +"thirtyminutes0029#2020-10-30 14:30:00,2020-10-30 14:59:59","thirtyminutes0029","2020-10-30 14:30:00","2020-10-30 14:59:59",1,8.95798333333333,8.95798333333333,8.95798333333333,8.95798333333333,NA,891.033333333333 +"thirtyminutes0030#2020-03-06 15:00:00,2020-03-06 15:29:59","thirtyminutes0030","2020-03-06 15:00:00","2020-03-06 15:29:59",1,0.0489333333333333,0.0489333333333333,0.0489333333333333,0.0489333333333333,NA,900 +"thirtyminutes0030#2020-10-30 15:00:00,2020-10-30 15:29:59","thirtyminutes0030","2020-10-30 15:00:00","2020-10-30 15:29:59",1,0.0489333333333333,0.0489333333333333,0.0489333333333333,0.0489333333333333,NA,900 +"thirtyminutes0031#2020-03-07 15:30:00,2020-03-07 15:59:59","thirtyminutes0031","2020-03-07 15:30:00","2020-03-07 15:59:59",1,1.9833,1.9833,1.9833,1.9833,NA,958.016666666667 +"thirtyminutes0031#2020-10-31 15:30:00,2020-10-31 15:59:59","thirtyminutes0031","2020-10-31 15:30:00","2020-10-31 15:59:59",1,1.9833,1.9833,1.9833,1.9833,NA,958.016666666667 +"thirtyminutes0032#2020-03-07 16:00:00,2020-03-07 16:29:59","thirtyminutes0032","2020-03-07 16:00:00","2020-03-07 16:29:59",1,3.0166,3.0166,3.0166,3.0166,NA,960 +"thirtyminutes0032#2020-10-31 16:00:00,2020-10-31 16:29:59","thirtyminutes0032","2020-10-31 16:00:00","2020-10-31 16:29:59",1,3.0166,3.0166,3.0166,3.0166,NA,960 +"thirtyminutes0035#2020-03-06 17:30:00,2020-03-06 17:59:59","thirtyminutes0035","2020-03-06 17:30:00","2020-03-06 17:59:59",1,8.54903333333333,8.54903333333333,8.54903333333333,8.54903333333333,NA,1071.45 +"thirtyminutes0035#2020-03-07 17:30:00,2020-03-07 17:59:59","thirtyminutes0035","2020-03-07 17:30:00","2020-03-07 17:59:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,1068.01666666667 +"thirtyminutes0035#2020-10-30 17:30:00,2020-10-30 17:59:59","thirtyminutes0035","2020-10-30 17:30:00","2020-10-30 17:59:59",1,8.54903333333333,8.54903333333333,8.54903333333333,8.54903333333333,NA,1071.45 +"thirtyminutes0035#2020-10-31 17:30:00,2020-10-31 17:59:59","thirtyminutes0035","2020-10-31 17:30:00","2020-10-31 17:59:59",1,3.99993333333333,3.99993333333333,3.99993333333333,3.99993333333333,NA,1068.01666666667 +"thirtyminutes0036#2020-03-06 18:00:00,2020-03-06 18:29:59","thirtyminutes0036","2020-03-06 18:00:00","2020-03-06 18:29:59",1,8.43993333333333,8.43993333333333,8.43993333333333,8.43993333333333,NA,1080 +"thirtyminutes0036#2020-10-30 18:00:00,2020-10-30 18:29:59","thirtyminutes0036","2020-10-30 18:00:00","2020-10-30 18:29:59",1,8.43993333333333,8.43993333333333,8.43993333333333,8.43993333333333,NA,1080 +"thirtyminutes0041#2020-03-06 20:30:00,2020-03-06 20:59:59","thirtyminutes0041","2020-03-06 20:30:00","2020-03-06 20:59:59",1,17.0195166666667,17.0195166666667,17.0195166666667,17.0195166666667,NA,1242.96666666667 +"thirtyminutes0041#2020-10-30 20:30:00,2020-10-30 20:59:59","thirtyminutes0041","2020-10-30 20:30:00","2020-10-30 20:59:59",1,17.0195166666667,17.0195166666667,17.0195166666667,17.0195166666667,NA,1242.96666666667 +"thirtyminutes0042#2020-03-06 21:00:00,2020-03-06 21:29:59","thirtyminutes0042","2020-03-06 21:00:00","2020-03-06 21:29:59",1,1.97485,1.97485,1.97485,1.97485,NA,1260 +"thirtyminutes0042#2020-03-09 21:00:00,2020-03-09 21:29:59","thirtyminutes0042","2020-03-09 21:00:00","2020-03-09 21:29:59",1,1.99996666666667,1.99996666666667,1.99996666666667,1.99996666666667,NA,1265 +"thirtyminutes0042#2020-10-30 21:00:00,2020-10-30 21:29:59","thirtyminutes0042","2020-10-30 21:00:00","2020-10-30 21:29:59",1,1.97485,1.97485,1.97485,1.97485,NA,1260 +"thirtyminutes0042#2020-11-02 21:00:00,2020-11-02 21:29:59","thirtyminutes0042","2020-11-02 21:00:00","2020-11-02 21:29:59",1,1.99996666666667,1.99996666666667,1.99996666666667,1.99996666666667,NA,1265 +"thirtyminutes0043#2020-03-07 21:30:00,2020-03-07 21:59:59","thirtyminutes0043","2020-03-07 21:30:00","2020-03-07 21:59:59",1,5.9999,5.9999,5.9999,5.9999,NA,1313.01666666667 +"thirtyminutes0043#2020-10-31 21:30:00,2020-10-31 21:59:59","thirtyminutes0043","2020-10-31 21:30:00","2020-10-31 21:59:59",1,5.9999,5.9999,5.9999,5.9999,NA,1313.01666666667 +"thirtyminutes0044#2020-03-08 22:00:00,2020-03-08 22:29:59","thirtyminutes0044","2020-03-08 22:00:00","2020-03-08 22:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,1322 +"thirtyminutes0044#2020-11-01 22:00:00,2020-11-01 22:29:59","thirtyminutes0044","2020-11-01 22:00:00","2020-11-01 22:29:59",1,2.99995,2.99995,2.99995,2.99995,NA,1322 diff --git a/tests/data/processed/features/stz_periodic/android/phone_screen.csv b/tests/data/processed/features/stz_periodic/android/phone_screen.csv new file mode 100644 index 00000000..0f55ad45 --- /dev/null +++ b/tests/data/processed/features/stz_periodic/android/phone_screen.csv @@ -0,0 +1,23 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" +"daily#2020-03-06 00:00:00,2020-03-06 23:59:59","daily","2020-03-06 00:00:00","2020-03-06 23:59:59",7,94.6050833333333,21.6595333333333,5.99093333333333,13.5150119047619,6.19231944078572,170.5 +"daily#2020-03-07 00:00:00,2020-03-07 23:59:59","daily","2020-03-07 00:00:00","2020-03-07 23:59:59",5,18.8330333333333,5.9999,2.8333,3.76660666666667,1.33122374802494,17.1833333333333 +"daily#2020-03-08 00:00:00,2020-03-08 23:59:59","daily","2020-03-08 00:00:00","2020-03-08 23:59:59",3,25.9995666666667,19.9996666666667,2.99995,8.66652222222222,9.81479099364737,5 +"daily#2020-03-09 00:00:00,2020-03-09 23:59:59","daily","2020-03-09 00:00:00","2020-03-09 23:59:59",2,35.9994,31.9994666666667,3.99993333333333,17.9997,19.7986598900588,181 +"daily#2020-10-30 00:00:00,2020-10-30 23:59:59","daily","2020-10-30 00:00:00","2020-10-30 23:59:59",7,94.6050833333333,21.6595333333333,5.99093333333333,13.5150119047619,6.19231944078572,170.5 +"daily#2020-10-31 00:00:00,2020-10-31 23:59:59","daily","2020-10-31 00:00:00","2020-10-31 23:59:59",5,18.8330333333333,5.9999,2.8333,3.76660666666667,1.33122374802494,17.1833333333333 +"daily#2020-11-01 00:00:00,2020-11-01 23:59:59","daily","2020-11-01 00:00:00","2020-11-01 23:59:59",3,25.9995666666667,19.9996666666667,2.99995,8.66652222222222,9.81479099364737,5 +"daily#2020-11-02 00:00:00,2020-11-02 23:59:59","daily","2020-11-02 00:00:00","2020-11-02 23:59:59",2,35.9994,31.9994666666667,3.99993333333333,17.9997,19.7986598900588,181 +"morning#2020-03-06 06:00:00,2020-03-06 11:59:59","morning","2020-03-06 06:00:00","2020-03-06 11:59:59",3,27.9489833333333,21.6595333333333,2.4361,9.31632777777778,10.7129917357687,360 +"morning#2020-10-30 06:00:00,2020-10-30 11:59:59","morning","2020-10-30 06:00:00","2020-10-30 11:59:59",3,27.9489833333333,21.6595333333333,2.4361,9.31632777777778,10.7129917357687,360 +"threeday#2020-03-06 00:00:00,2020-03-08 23:59:59","threeday","2020-03-06 00:00:00","2020-03-08 23:59:59",15,139.437683333333,21.6595333333333,2.8333,9.29584555555556,7.11375880805815,170.5 +"threeday#2020-03-07 00:00:00,2020-03-09 23:59:59","threeday","2020-03-07 00:00:00","2020-03-09 23:59:59",10,80.832,31.9994666666667,2.8333,8.0832,9.9028359214313,17.1833333333333 +"threeday#2020-03-08 00:00:00,2020-03-10 23:59:59","threeday","2020-03-08 00:00:00","2020-03-10 23:59:59",5,61.9989666666666,31.9994666666667,2.99995,12.3997933333333,13.126090686664,5 +"threeday#2020-03-09 00:00:00,2020-03-11 23:59:59","threeday","2020-03-09 00:00:00","2020-03-11 23:59:59",2,35.9994,31.9994666666667,3.99993333333333,17.9997,19.7986598900588,181 +"threeday#2020-10-28 00:00:00,2020-10-30 23:59:59","threeday","2020-10-28 00:00:00","2020-10-30 23:59:59",7,94.6050833333333,21.6595333333333,5.99093333333333,13.5150119047619,6.19231944078572,170.5 +"threeday#2020-10-29 00:00:00,2020-10-31 23:59:59","threeday","2020-10-29 00:00:00","2020-10-31 23:59:59",12,113.438116666667,21.6595333333333,2.8333,9.45317638888889,6.8379454473092,170.5 +"threeday#2020-10-30 00:00:00,2020-11-01 23:59:59","threeday","2020-10-30 00:00:00","2020-11-01 23:59:59",15,139.437683333333,21.6595333333333,2.8333,9.29584555555556,7.11375880805815,170.5 +"threeday#2020-10-31 00:00:00,2020-11-02 23:59:59","threeday","2020-10-31 00:00:00","2020-11-02 23:59:59",10,80.832,31.9994666666667,2.8333,8.0832,9.9028359214313,17.1833333333333 +"threeday#2020-11-01 00:00:00,2020-11-03 23:59:59","threeday","2020-11-01 00:00:00","2020-11-03 23:59:59",5,61.9989666666666,31.9994666666667,2.99995,12.3997933333333,13.126090686664,5 +"threeday#2020-11-02 00:00:00,2020-11-04 23:59:59","threeday","2020-11-02 00:00:00","2020-11-04 23:59:59",2,35.9994,31.9994666666667,3.99993333333333,17.9997,19.7986598900588,181 +"weekend#2020-03-06 00:00:00,2020-03-08 23:59:59","weekend","2020-03-06 00:00:00","2020-03-08 23:59:59",15,139.437683333333,21.6595333333333,2.8333,9.29584555555556,7.11375880805815,170.5 +"weekend#2020-10-30 00:00:00,2020-11-01 23:59:59","weekend","2020-10-30 00:00:00","2020-11-01 23:59:59",15,139.437683333333,21.6595333333333,2.8333,9.29584555555556,7.11375880805815,170.5 diff --git a/tests/data/processed/features/stz_periodic/empatica/phone_screen.csv b/tests/data/processed/features/stz_periodic/empatica/phone_screen.csv new file mode 100644 index 00000000..b0cc1f47 --- /dev/null +++ b/tests/data/processed/features/stz_periodic/empatica/phone_screen.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" diff --git a/tests/data/processed/features/stz_periodic/empty/phone_screen.csv b/tests/data/processed/features/stz_periodic/empty/phone_screen.csv new file mode 100644 index 00000000..62d0c82c --- /dev/null +++ b/tests/data/processed/features/stz_periodic/empty/phone_screen.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock" diff --git a/tests/data/processed/features/stz_periodic/fitbit/phone_screen.csv b/tests/data/processed/features/stz_periodic/fitbit/phone_screen.csv new file mode 100644 index 00000000..b0cc1f47 --- /dev/null +++ b/tests/data/processed/features/stz_periodic/fitbit/phone_screen.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_firstuseafter00unlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_sumdurationunlock" diff --git a/tests/data/processed/features/stz_periodic/ios/phone_screen.csv b/tests/data/processed/features/stz_periodic/ios/phone_screen.csv new file mode 100644 index 00000000..5e11f7d1 --- /dev/null +++ b/tests/data/processed/features/stz_periodic/ios/phone_screen.csv @@ -0,0 +1,23 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","phone_screen_rapids_countepisodeunlock","phone_screen_rapids_sumdurationunlock","phone_screen_rapids_maxdurationunlock","phone_screen_rapids_mindurationunlock","phone_screen_rapids_avgdurationunlock","phone_screen_rapids_stddurationunlock","phone_screen_rapids_firstuseafter00unlock" +"daily#2020-03-06 00:00:00,2020-03-06 23:59:59","daily","2020-03-06 00:00:00","2020-03-06 23:59:59",7,94.6512666666667,21.6595333333333,6.00136666666667,13.5216095238095,6.18978716736703,170.5 +"daily#2020-03-07 00:00:00,2020-03-07 23:59:59","daily","2020-03-07 00:00:00","2020-03-07 23:59:59",4,18.9996833333333,5.9999,3.99993333333333,4.74992083333333,0.957411150637875,5.18333333333333 +"daily#2020-03-08 00:00:00,2020-03-08 23:59:59","daily","2020-03-08 00:00:00","2020-03-08 23:59:59",3,35.9994,29.9995,2.99995,11.9998,15.5881974604988,5 +"daily#2020-03-09 00:00:00,2020-03-09 23:59:59","daily","2020-03-09 00:00:00","2020-03-09 23:59:59",2,5.9999,3.99993333333333,1.99996666666667,2.99995,1.41418999214706,181 +"daily#2020-10-30 00:00:00,2020-10-30 23:59:59","daily","2020-10-30 00:00:00","2020-10-30 23:59:59",7,94.6512666666667,21.6595333333333,6.00136666666667,13.5216095238095,6.18978716736703,170.5 +"daily#2020-10-31 00:00:00,2020-10-31 23:59:59","daily","2020-10-31 00:00:00","2020-10-31 23:59:59",4,18.9996833333333,5.9999,3.99993333333333,4.74992083333333,0.957411150637875,5.18333333333333 +"daily#2020-11-01 00:00:00,2020-11-01 23:59:59","daily","2020-11-01 00:00:00","2020-11-01 23:59:59",3,35.9994,29.9995,2.99995,11.9998,15.5881974604988,5 +"daily#2020-11-02 00:00:00,2020-11-02 23:59:59","daily","2020-11-02 00:00:00","2020-11-02 23:59:59",2,5.9999,3.99993333333333,1.99996666666667,2.99995,1.41418999214706,181 +"morning#2020-03-06 06:00:00,2020-03-06 11:59:59","morning","2020-03-06 06:00:00","2020-03-06 11:59:59",3,27.9572166666667,21.6595333333333,2.4361,9.31907222222222,10.7108933338698,360 +"morning#2020-10-30 06:00:00,2020-10-30 11:59:59","morning","2020-10-30 06:00:00","2020-10-30 11:59:59",3,27.9572166666667,21.6595333333333,2.4361,9.31907222222222,10.7108933338698,360 +"threeday#2020-03-06 00:00:00,2020-03-08 23:59:59","threeday","2020-03-06 00:00:00","2020-03-08 23:59:59",14,149.65035,29.9995,2.99995,10.6893107142857,8.41713211936808,170.5 +"threeday#2020-03-07 00:00:00,2020-03-09 23:59:59","threeday","2020-03-07 00:00:00","2020-03-09 23:59:59",9,60.9989833333333,29.9995,1.99996666666667,6.77766481481481,8.78589046811643,5.18333333333333 +"threeday#2020-03-08 00:00:00,2020-03-10 23:59:59","threeday","2020-03-08 00:00:00","2020-03-10 23:59:59",5,41.9993,29.9995,1.99996666666667,8.39986,12.095252100472,5 +"threeday#2020-03-09 00:00:00,2020-03-11 23:59:59","threeday","2020-03-09 00:00:00","2020-03-11 23:59:59",2,5.9999,3.99993333333333,1.99996666666667,2.99995,1.41418999214706,181 +"threeday#2020-10-28 00:00:00,2020-10-30 23:59:59","threeday","2020-10-28 00:00:00","2020-10-30 23:59:59",7,94.6512666666667,21.6595333333333,6.00136666666667,13.5216095238095,6.18978716736703,170.5 +"threeday#2020-10-29 00:00:00,2020-10-31 23:59:59","threeday","2020-10-29 00:00:00","2020-10-31 23:59:59",11,113.65095,21.6595333333333,3.99993333333333,10.3319045454545,6.54587192809369,170.5 +"threeday#2020-10-30 00:00:00,2020-11-01 23:59:59","threeday","2020-10-30 00:00:00","2020-11-01 23:59:59",14,149.65035,29.9995,2.99995,10.6893107142857,8.41713211936808,170.5 +"threeday#2020-10-31 00:00:00,2020-11-02 23:59:59","threeday","2020-10-31 00:00:00","2020-11-02 23:59:59",9,60.9989833333333,29.9995,1.99996666666667,6.77766481481481,8.78589046811643,5.18333333333333 +"threeday#2020-11-01 00:00:00,2020-11-03 23:59:59","threeday","2020-11-01 00:00:00","2020-11-03 23:59:59",5,41.9993,29.9995,1.99996666666667,8.39986,12.095252100472,5 +"threeday#2020-11-02 00:00:00,2020-11-04 23:59:59","threeday","2020-11-02 00:00:00","2020-11-04 23:59:59",2,5.9999,3.99993333333333,1.99996666666667,2.99995,1.41418999214706,181 +"weekend#2020-03-06 00:00:00,2020-03-08 23:59:59","weekend","2020-03-06 00:00:00","2020-03-08 23:59:59",14,149.65035,29.9995,2.99995,10.6893107142857,8.41713211936808,170.5 +"weekend#2020-10-30 00:00:00,2020-11-01 23:59:59","weekend","2020-10-30 00:00:00","2020-11-01 23:59:59",14,149.65035,29.9995,2.99995,10.6893107142857,8.41713211936808,170.5 diff --git a/tests/scripts/assign_test_timestamps.py b/tests/scripts/assign_test_timestamps.py index 574d33d8..66010412 100644 --- a/tests/scripts/assign_test_timestamps.py +++ b/tests/scripts/assign_test_timestamps.py @@ -26,7 +26,7 @@ def assign_test_timestamps(file_path): else: # Convert local_date_time with timezone to timestamp data_with_timestamps.insert(0, "timestamp", data_with_timestamps["local_date_time"].dt.tz_localize(tz="America/New_York").astype(np.int64) // 10**6) - columns_to_delete.add("local_date_time") + columns_to_delete.append("local_date_time") # Discard useless columns for col in columns_to_delete: diff --git a/tests/settings/mtz_event_config.yaml b/tests/settings/mtz_event_config.yaml index 978f42a4..7b6ec963 100644 --- a/tests/settings/mtz_event_config.yaml +++ b/tests/settings/mtz_event_config.yaml @@ -282,7 +282,7 @@ PHONE_MESSAGES: # See https://www.rapids.science/latest/features/phone-screen/ PHONE_SCREEN: - CONTAINER: screen + CONTAINER: phone_screen_raw.csv PROVIDERS: RAPIDS: COMPUTE: False diff --git a/tests/settings/mtz_frequency_config.yaml b/tests/settings/mtz_frequency_config.yaml index 0b256449..d3d30de9 100644 --- a/tests/settings/mtz_frequency_config.yaml +++ b/tests/settings/mtz_frequency_config.yaml @@ -282,7 +282,7 @@ PHONE_MESSAGES: # See https://www.rapids.science/latest/features/phone-screen/ PHONE_SCREEN: - CONTAINER: screen + CONTAINER: phone_screen_raw.csv PROVIDERS: RAPIDS: COMPUTE: False diff --git a/tests/settings/mtz_periodic_config.yaml b/tests/settings/mtz_periodic_config.yaml index bddd611f..94765289 100644 --- a/tests/settings/mtz_periodic_config.yaml +++ b/tests/settings/mtz_periodic_config.yaml @@ -282,7 +282,7 @@ PHONE_MESSAGES: # See https://www.rapids.science/latest/features/phone-screen/ PHONE_SCREEN: - CONTAINER: screen + CONTAINER: phone_screen_raw.csv PROVIDERS: RAPIDS: COMPUTE: False diff --git a/tests/settings/stz_event_config.yaml b/tests/settings/stz_event_config.yaml index bf62e7fa..c94b1d60 100644 --- a/tests/settings/stz_event_config.yaml +++ b/tests/settings/stz_event_config.yaml @@ -282,7 +282,7 @@ PHONE_MESSAGES: # See https://www.rapids.science/latest/features/phone-screen/ PHONE_SCREEN: - CONTAINER: screen + CONTAINER: phone_screen_raw.csv PROVIDERS: RAPIDS: COMPUTE: False diff --git a/tests/settings/stz_frequency_config.yaml b/tests/settings/stz_frequency_config.yaml index 8b67c992..0cd55b97 100644 --- a/tests/settings/stz_frequency_config.yaml +++ b/tests/settings/stz_frequency_config.yaml @@ -282,7 +282,7 @@ PHONE_MESSAGES: # See https://www.rapids.science/latest/features/phone-screen/ PHONE_SCREEN: - CONTAINER: screen + CONTAINER: phone_screen_raw.csv PROVIDERS: RAPIDS: COMPUTE: False diff --git a/tests/settings/stz_periodic_config.yaml b/tests/settings/stz_periodic_config.yaml index d14fef51..af623642 100644 --- a/tests/settings/stz_periodic_config.yaml +++ b/tests/settings/stz_periodic_config.yaml @@ -282,7 +282,7 @@ PHONE_MESSAGES: # See https://www.rapids.science/latest/features/phone-screen/ PHONE_SCREEN: - CONTAINER: screen + CONTAINER: phone_screen_raw.csv PROVIDERS: RAPIDS: COMPUTE: False