diff --git a/tests/data/processed/features/frequency/test03/light.csv b/tests/data/processed/features/frequency/test03/light.csv new file mode 100644 index 00000000..b7e343e4 --- /dev/null +++ b/tests/data/processed/features/frequency/test03/light.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","light_rapids__minlux","light_rapids__stdlux","light_rapids__count","light_rapids__avglux","light_rapids__medianlux","light_rapids__maxlux" diff --git a/tests/data/processed/features/frequency/test04/light.csv b/tests/data/processed/features/frequency/test04/light.csv new file mode 100644 index 00000000..90111cce --- /dev/null +++ b/tests/data/processed/features/frequency/test04/light.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","light_rapids__medianlux","light_rapids__minlux","light_rapids__avglux","light_rapids__maxlux","light_rapids__count","light_rapids__stdlux" diff --git a/tests/data/processed/features/frequency/test05/light.csv b/tests/data/processed/features/frequency/test05/light.csv new file mode 100644 index 00000000..962ccd5c --- /dev/null +++ b/tests/data/processed/features/frequency/test05/light.csv @@ -0,0 +1,7 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","light_rapids_count","light_rapids_maxlux","light_rapids_minlux","light_rapids_avglux","light_rapids_medianlux","light_rapids_stdlux" +"thirtyminutes0000#2020-09-27 00:00:00,2020-09-27 00:29:59","thirtyminutes0000","2020-09-27 00:00:00","2020-09-27 00:29:59",2,15258,1469,8363.5,8363.5,9750.2954057813 +"thirtyminutes0002#2020-09-27 01:00:00,2020-09-27 01:29:59","thirtyminutes0002","2020-09-27 01:00:00","2020-09-27 01:29:59",2,0,0,0,0,0 +"thirtyminutes0039#2020-09-27 19:30:00,2020-09-27 19:59:59","thirtyminutes0039","2020-09-27 19:30:00","2020-09-27 19:59:59",1,472.52,472.52,472.52,472.52,NA +"thirtyminutes0040#2020-09-26 20:00:00,2020-09-26 20:29:59","thirtyminutes0040","2020-09-26 20:00:00","2020-09-26 20:29:59",4,114615,37252,84955.25,93977,33392.3886474648 +"thirtyminutes0041#2020-09-26 20:30:00,2020-09-26 20:59:59","thirtyminutes0041","2020-09-26 20:30:00","2020-09-26 20:59:59",2,90625,24414,57519.5,57519.5,46818.2470891425 +"thirtyminutes0047#2020-09-26 23:30:00,2020-09-26 23:59:59","thirtyminutes0047","2020-09-26 23:30:00","2020-09-26 23:59:59",1,10351,10351,10351,10351,NA diff --git a/tests/data/processed/features/frequency/test06/light.csv b/tests/data/processed/features/frequency/test06/light.csv new file mode 100644 index 00000000..20530380 --- /dev/null +++ b/tests/data/processed/features/frequency/test06/light.csv @@ -0,0 +1 @@ +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","light_rapids_minlux","light_rapids_stdlux","light_rapids_count","light_rapids_avglux","light_rapids_medianlux","light_rapids_maxlux" diff --git a/tests/data/processed/features/periodic/test01/light.csv b/tests/data/processed/features/periodic/test01/light.csv index 9381685e..8eaa366d 100644 --- a/tests/data/processed/features/periodic/test01/light.csv +++ b/tests/data/processed/features/periodic/test01/light.csv @@ -1,6 +1,6 @@ -"local_segment","local_segment_label","local_start_date","local_start_time","local_end_date","local_end_time","light_rapids__count","light_rapids__maxlux","light_rapids__minlux","light_rapids__avglux","light_rapids__medianlux","light_rapids__stdlux" -"afternoon#2020-07-04#12:00:00#2020-07-04#17:59:59","afternoon","2020-07-04","12:00:00","2020-07-04","17:59:59",4,97656,10351,55761.5,57519.5,44778.6855136831 -"daily#2020-07-04#00:00:00#2020-07-04#23:59:59","daily","2020-07-04","00:00:00","2020-07-04","23:59:59",12,114615,0.065,40207.8950833333,19836,44686.694225665 -"evening#2020-07-04#18:00:00#2020-07-04#23:59:59","evening","2020-07-04","18:00:00","2020-07-04","23:59:59",3,15258,84.156,5603.71866666667,1469,8389.47610244199 -"morning#2020-07-04#06:00:00#2020-07-04#11:59:59","morning","2020-07-04","06:00:00","2020-07-04","11:59:59",4,114615,472.52,60659.38,63775,51510.5823438666 -"night#2020-07-04#00:00:00#2020-07-04#05:59:59","night","2020-07-04","00:00:00","2020-07-04","05:59:59",1,0.065,0.065,0.065,0.065,NA +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","light_rapids_count","light_rapids_maxlux","light_rapids_minlux","light_rapids_avglux","light_rapids_medianlux","light_rapids_stdlux" +"afternoon#2020-07-04 12:00:00,2020-07-04 17:59:59","afternoon","2020-07-04 12:00:00","2020-07-04 17:59:59",4,97656,10351,55761.5,57519.5,44778.6855136831 +"daily#2020-07-04 00:00:00,2020-07-04 23:59:59","daily","2020-07-04 00:00:00","2020-07-04 23:59:59",12,114615,0.065,40207.8950833333,19836,44686.694225665 +"evening#2020-07-04 18:00:00,2020-07-04 23:59:59","evening","2020-07-04 18:00:00","2020-07-04 23:59:59",3,15258,84.156,5603.71866666667,1469,8389.47610244199 +"morning#2020-07-04 06:00:00,2020-07-04 11:59:59","morning","2020-07-04 06:00:00","2020-07-04 11:59:59",4,114615,472.52,60659.38,63775,51510.5823438666 +"night#2020-07-04 00:00:00,2020-07-04 05:59:59","night","2020-07-04 00:00:00","2020-07-04 05:59:59",1,0.065,0.065,0.065,0.065,NA diff --git a/tests/data/processed/features/periodic/test02/light.csv b/tests/data/processed/features/periodic/test02/light.csv index 21560584..8b95e935 100644 --- a/tests/data/processed/features/periodic/test02/light.csv +++ b/tests/data/processed/features/periodic/test02/light.csv @@ -1 +1 @@ -"local_segment","local_segment_label","local_start_date","local_start_time","local_end_date","local_end_time","light_rapids__maxlux","light_rapids__stdlux","light_rapids__count","light_rapids__avglux","light_rapids__medianlux","light_rapids__minlux" +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","light_rapids_count","light_rapids_maxlux","light_rapids_minlux","light_rapids_avglux","light_rapids_medianlux","light_rapids_stdlux" \ No newline at end of file diff --git a/tests/data/processed/features/periodic/test03/light.csv b/tests/data/processed/features/periodic/test03/light.csv index 94109a8b..68b9e1a6 100644 --- a/tests/data/processed/features/periodic/test03/light.csv +++ b/tests/data/processed/features/periodic/test03/light.csv @@ -1 +1 @@ -"local_segment","local_segment_label","local_start_date","local_start_time","local_end_date","local_end_time","light_rapids__avglux","light_rapids__maxlux","light_rapids__stdlux","light_rapids__medianlux","light_rapids__count","light_rapids__minlux" +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","light_rapids__minlux","light_rapids__avglux","light_rapids__count","light_rapids__medianlux","light_rapids__maxlux","light_rapids__stdlux" diff --git a/tests/data/processed/features/periodic/test04/light.csv b/tests/data/processed/features/periodic/test04/light.csv index 1d50198b..e6ce1932 100644 --- a/tests/data/processed/features/periodic/test04/light.csv +++ b/tests/data/processed/features/periodic/test04/light.csv @@ -1 +1 @@ -"local_segment","local_segment_label","local_start_date","local_start_time","local_end_date","local_end_time","light_rapids__medianlux","light_rapids__minlux","light_rapids__stdlux","light_rapids__count","light_rapids__avglux","light_rapids__maxlux" +"local_segment","local_segment_label","local_segment_start_datetime","local_segment_end_datetime","light_rapids__count","light_rapids__avglux","light_rapids__maxlux","light_rapids__minlux","light_rapids__stdlux","light_rapids__medianlux" diff --git a/tests/settings/frequency/testing_config.yaml b/tests/settings/frequency/testing_config.yaml index 49f58d9a..55dd5591 100644 --- a/tests/settings/frequency/testing_config.yaml +++ b/tests/settings/frequency/testing_config.yaml @@ -50,7 +50,7 @@ LIGHT: DB_TABLE: light PROVIDERS: RAPIDS: - COMPUTE: False + COMPUTE: True FEATURES: ["count", "maxlux", "minlux", "avglux", "medianlux", "stdlux"] SRC_FOLDER: "rapids" # inside src/features/light SRC_LANGUAGE: "python" diff --git a/tests/settings/periodic/testing_config.yaml b/tests/settings/periodic/testing_config.yaml index de3969a4..01d8349f 100644 --- a/tests/settings/periodic/testing_config.yaml +++ b/tests/settings/periodic/testing_config.yaml @@ -51,7 +51,7 @@ LIGHT: DB_TABLE: light PROVIDERS: RAPIDS: - COMPUTE: False + COMPUTE: True FEATURES: ["count", "maxlux", "minlux", "avglux", "medianlux", "stdlux"] SRC_FOLDER: "rapids" # inside src/features/light SRC_LANGUAGE: "python"