Skip to content

Commit b34f145

Browse files
authored
Fix index error (#47)
* Improve default running setup * update version number
1 parent 382ad4d commit b34f145

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The key features of this package are as follows:
1212

1313

1414
# Dependencies
15-
- Python 3.8+
15+
- Python 3.8
1616
- Java 8 (1.8.0) or greater
1717

1818
Check with:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ name = "asleep" # Required
1717
#
1818
# For a discussion on single-sourcing the version, see
1919
# https://packaging.python.org/guides/single-sourcing-package-version/
20-
version = "0.4.5" # Required
20+
version = "0.4.6" # Required
2121

2222
# This is a one-line description or tagline of what your project does. This
2323
# corresponds to the "Summary" metadata field:

src/asleep/get_sleep.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def main():
262262
help="Min wear time in hours to be eligible for summary statistics "
263263
"computation. The sleepnet paper uses 22",
264264
type=int,
265-
default=0)
265+
default=22)
266266
parser.add_argument(
267267
"--time_shift",
268268
type=str,

src/asleep/sleep_windows.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def find_sleep_windows(sleep_blocks):
9898
if current_start_master_idx != -1:
9999
all_sleep_blocks.append(
100100
[current_start_master_idx, current_end_master_idx])
101+
current_start_master_idx = -1
101102
continue
102103
pre_class = win[CLASS_POS]
103104

src/asleep/summary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def generate_sleep_parameters(
8888
start_t = row['start']
8989
end_t = row['end']
9090

91-
time_filter = (times >= start_t) & (times < end_t)
91+
time_filter = (times >= start_t) & (times <= end_t)
9292
current_day_y_pred = predictions_df['raw_label'][time_filter].values
9393
current_day_times = times[time_filter]
9494

0 commit comments

Comments
 (0)