diff --git a/hubconf.py b/hubconf.py index 5c9dc77..7cca3b4 100644 --- a/hubconf.py +++ b/hubconf.py @@ -25,7 +25,7 @@ def sleepnet(pretrained=True, my_device="cpu", num_classes=2, lstm_nn_size=128, state_dict) else: checkpoint = 'https://github.com/OxWearables/asleep/' \ - 'releases/download/0.0.3/bi_sleepnet.mdl' + 'releases/download/0.4.9/sleepnet_apr_16_2024.mdl' model.load_state_dict( torch.hub.load_state_dict_from_url( checkpoint, diff --git a/pyproject.toml b/pyproject.toml index 2aaf245..1b332ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ name = "asleep" # Required # # For a discussion on single-sourcing the version, see # https://packaging.python.org/guides/single-sourcing-package-version/ -version = "0.4.8" # Required +version = "0.4.9" # Required # This is a one-line description or tagline of what your project does. This # corresponds to the "Summary" metadata field: diff --git a/src/asleep/utils.py b/src/asleep/utils.py index 9560d85..e6c7ebe 100644 --- a/src/asleep/utils.py +++ b/src/asleep/utils.py @@ -75,7 +75,7 @@ def read(filepath, resample_hz='uniform'): data, info = actipy.read_device( filepath, - lowpass_hz=20, + lowpass_hz=15, calibrate_gravity=True, detect_nonwear=False, resample_hz=resample_hz,