File tree Expand file tree Collapse file tree 5 files changed +5
-4
lines changed Expand file tree Collapse file tree 5 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ The key features of this package are as follows:
12
12
13
13
14
14
# Dependencies
15
- - Python 3.8+
15
+ - Python 3.8
16
16
- Java 8 (1.8.0) or greater
17
17
18
18
Check with:
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ name = "asleep" # Required
17
17
#
18
18
# For a discussion on single-sourcing the version, see
19
19
# https://packaging.python.org/guides/single-sourcing-package-version/
20
- version = " 0.4.5 " # Required
20
+ version = " 0.4.6 " # Required
21
21
22
22
# This is a one-line description or tagline of what your project does. This
23
23
# corresponds to the "Summary" metadata field:
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ def main():
262
262
help = "Min wear time in hours to be eligible for summary statistics "
263
263
"computation. The sleepnet paper uses 22" ,
264
264
type = int ,
265
- default = 0 )
265
+ default = 22 )
266
266
parser .add_argument (
267
267
"--time_shift" ,
268
268
type = str ,
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ def find_sleep_windows(sleep_blocks):
98
98
if current_start_master_idx != - 1 :
99
99
all_sleep_blocks .append (
100
100
[current_start_master_idx , current_end_master_idx ])
101
+ current_start_master_idx = - 1
101
102
continue
102
103
pre_class = win [CLASS_POS ]
103
104
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ def generate_sleep_parameters(
88
88
start_t = row ['start' ]
89
89
end_t = row ['end' ]
90
90
91
- time_filter = (times >= start_t ) & (times < end_t )
91
+ time_filter = (times >= start_t ) & (times <= end_t )
92
92
current_day_y_pred = predictions_df ['raw_label' ][time_filter ].values
93
93
current_day_times = times [time_filter ]
94
94
You can’t perform that action at this time.
0 commit comments