The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
Last updated on 2026-08-04 23:50:50 CEST.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-fedora-clang | 0.1.0 | 10.00 | 106.45 | 116.45 | OK | |
| r-devel-linux-x86_64-fedora-gcc | 0.1.0 | 5.00 | 118.26 | 123.26 | ERROR | |
| r-release-macos-arm64 | 0.1.0 | 2.00 | 170.00 | 172.00 | OK | |
| r-release-macos-x86_64 | 0.1.0 | 4.00 | 110.00 | 114.00 | OK | |
| r-oldrel-macos-arm64 | 0.1.0 | ERROR | ||||
| r-oldrel-macos-x86_64 | 0.1.0 | 4.00 | 448.00 | 452.00 | OK |
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [74s/172s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
> library(testthat)
> library(asleep)
>
> asleep:::cleanup_uv_lock_files(
+ c(".", tempdir(), dirname(tempdir()))
+ )
> testthat::test_check("asleep")
Downloading cpython-3.8.20-linux-x86_64-gnu (download) (19.9MiB)
Downloaded cpython-3.8.20-linux-x86_64-gnu (download)
Updating https://github.com/muschellij2/asleep.git (HEAD)
Downloading triton (199.7MiB)
Downloading transforms3d (1.3MiB)
Downloading nvidia-nccl-cu12 (168.1MiB)
Downloading nvidia-cusolver-cu12 (118.4MiB)
Downloading numpy (16.5MiB)
Downloading nvidia-cuda-cupti-cu12 (13.5MiB)
Downloading nvidia-curand-cu12 (53.9MiB)
Downloading torch (760.2MiB)
Downloading sympy (5.9MiB)
Downloading numba (3.5MiB)
Downloading nvidia-cusparse-cu12 (186.9MiB)
Downloading nvidia-cublas-cu12 (391.6MiB)
Downloading llvmlite (41.6MiB)
Downloading pandas (11.8MiB)
Downloading nvidia-cufft-cu12 (116.0MiB)
Downloading matplotlib (8.8MiB)
Downloading fonttools (4.5MiB)
Downloading scipy (32.9MiB)
Downloading statsmodels (10.4MiB)
Downloading kiwisolver (1.1MiB)
Downloading nvidia-cudnn-cu12 (634.0MiB)
Downloading torchvision (6.7MiB)
Downloading nvidia-cuda-nvrtc-cu12 (22.6MiB)
Downloading networkx (2.0MiB)
Downloading pillow (4.3MiB)
Downloading nvidia-nvjitlink-cu12 (37.9MiB)
Downloading scikit-learn (29.8MiB)
Building importlib==1.0.4
Building antlr4-python3-runtime==4.9.3
Built importlib==1.0.4
Built antlr4-python3-runtime==4.9.3
Downloaded kiwisolver
Downloaded transforms3d
Updated https://github.com/muschellij2/asleep.git (4916a50c61dfe513a04ab340da3bfc4bd93dc96d)
Building asleep @ git+https://github.com/muschellij2/asleep.git@4916a50c61dfe513a04ab340da3bfc4bd93dc96d
Downloaded networkx
Downloaded numba
Downloaded fonttools
Downloaded pillow
Built asleep @ git+https://github.com/muschellij2/asleep.git@4916a50c61dfe513a04ab340da3bfc4bd93dc96d
Downloaded sympy
Downloaded torchvision
Downloaded matplotlib
Downloaded pandas
Downloaded statsmodels
Downloaded nvidia-cuda-cupti-cu12
Downloaded numpy
Downloaded nvidia-cuda-nvrtc-cu12
Downloaded scikit-learn
Downloaded scipy
Downloaded nvidia-nvjitlink-cu12
Downloaded llvmlite
Downloaded nvidia-curand-cu12
Downloaded nvidia-cusolver-cu12
Downloaded nvidia-cufft-cu12
Downloaded nvidia-nccl-cu12
Downloaded nvidia-cusparse-cu12
Downloaded triton
Downloaded nvidia-cublas-cu12
Downloaded nvidia-cudnn-cu12
Downloaded torch
Installed 62 packages in 6.59s
Checking Data
File is:/data/localhost/ripley/R/packages/tests-devel/asleep.Rcheck/asleep/extdata/example_sleep.csv.gz
Downloading models if not already present
Downloading https://github.com/OxWearables/asleep/releases/download/0.4.12/ssl.joblib.lzma...
Saved to /data/localhost/ripley/.cache/R/reticulate/uv/cache/archive-v0/1_Wyp4N-TBoEyMv7/lib/python3.8/site-packages/asleep/ssl.joblib.lzma
Caching ssl-wearables repository...
Saving _problems/test-asleep-20.R
/data/localhost/ripley/.cache/R/reticulate/uv/cache/archive-v0/1_Wyp4N-TBoEyMv7/lib/python3.8/site-packages/asleep/utils.py:44: UserWarning: Could not infer format, so each element will be parsed individually, falling back to `dateutil`. To ensure parsing is consistent and as-expected, please specify a format.
data = pd.read_csv(
Lowpass filter...
Skipping lowpass filter: data sample rate 30 too low for cutoff rate 20
Lowpass filter... Done! (0.00s)
Gravity calibration...
Gravity calibration... Done! (0.21s)
Resampling...
Resampling... Done! (0.21s)
{'WearTime(days)': 0.1666662808564815, 'NonwearTime(days)': 0.0, 'NumNonwearEpisodes': 0}
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 67 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-asleep.R:20:5'): asleep model works ────────────────────────────
<urllib.error.HTTPError/urllib.error.URLError/python.builtin.OSError/python.builtin.Exception/python.builtin.BaseException/urllib.response.addinfourl/urllib.response.addinfo/urllib.response.addbase/tempfile._TemporaryFileWrapper/python.builtin.object/error/condition>
Error in `py_call_impl(callable, call_args$unnamed, call_args$named)`: urllib.error.HTTPError: HTTP Error 403: rate limit exceeded
Run `reticulate::py_last_error()` for details.
Backtrace:
▆
1. └─asleep::asleep(file = file, verbose = 2L, force_download = TRUE) at test-asleep.R:20:5
2. └─asleep::sl_download_models(force_download = force_download)
3. └─abase_noconvert$get_sleep$download_models(force_download = force_download)
4. └─reticulate:::py_call_impl(callable, call_args$unnamed, call_args$named)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 67 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [221s/188s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
> library(testthat)
> library(asleep)
>
> asleep:::cleanup_uv_lock_files(
+ c(".", tempdir(), dirname(tempdir()))
+ )
> testthat::test_check("asleep")
Downloading uv...Done!
Downloading cpython-3.8.20-macos-aarch64-none (download) (16.6MiB)
Downloaded cpython-3.8.20-macos-aarch64-none (download)
Building antlr4-python3-runtime==4.9.3
Updating https://github.com/muschellij2/asleep.git (HEAD)
Building importlib==1.0.4
Downloading transforms3d (1.3MiB)
Downloading networkx (2.0MiB)
Downloading torch (59.3MiB)
Downloading matplotlib (7.0MiB)
Downloading fonttools (2.6MiB)
Downloading sympy (5.9MiB)
Downloading numpy (13.2MiB)
Downloading scipy (27.5MiB)
Downloading pillow (3.2MiB)
Downloading statsmodels (9.6MiB)
Built importlib==1.0.4
Downloading pandas (10.2MiB)
Downloading numba (2.5MiB)
Downloading scikit-learn (7.2MiB)
Built antlr4-python3-runtime==4.9.3
Downloaded transforms3d
Downloaded fonttools
Downloaded pillow
Downloading torchvision (1.6MiB)
Downloading llvmlite (27.4MiB)
Building pyyaml==6.0.3
Downloaded networkx
Downloaded matplotlib
Downloaded numba
Downloaded torchvision
Downloaded numpy
Downloaded sympy
Downloaded scikit-learn
Downloaded pandas
Downloaded statsmodels
Updated https://github.com/muschellij2/asleep.git (4916a50c61dfe513a04ab340da3bfc4bd93dc96d)
Building asleep @ git+https://github.com/muschellij2/asleep.git@4916a50c61dfe513a04ab340da3bfc4bd93dc96d
Downloaded scipy
Built asleep @ git+https://github.com/muschellij2/asleep.git@4916a50c61dfe513a04ab340da3bfc4bd93dc96d
Built pyyaml==6.0.3
Downloaded llvmlite
Downloaded torch
Installed 50 packages in 803ms
Checking Data
File is:/Volumes/Builds/packages/big-sur-arm64/results/4.5/asleep.Rcheck/asleep/extdata/example_sleep.csv.gz
Downloading models if not already present
Downloading https://github.com/OxWearables/asleep/releases/download/0.4.12/ssl.joblib.lzma...
Saved to /Users/rbuild/Library/Caches/org.R-project.R/R/reticulate/uv/cache/archive-v0/kTs4YTVBSFB2Fx7R/lib/python3.8/site-packages/asleep/ssl.joblib.lzma
Caching ssl-wearables repository...
Downloading: "https://github.com/OxWearables/ssl-wearables/zipball/v1.0.0" to /Users/rbuild/Library/Caches/org.R-project.R/R/reticulate/uv/cache/archive-v0/kTs4YTVBSFB2Fx7R/lib/python3.8/site-packages/asleep/torch_hub_cache/v1.0.0.zip
Caching SleepNet repository and weights...
Downloading: "https://github.com/OxWearables/asleep/zipball/main" to /Users/rbuild/Library/Caches/org.R-project.R/R/reticulate/uv/cache/archive-v0/kTs4YTVBSFB2Fx7R/lib/python3.8/site-packages/asleep/torch_hub_cache/main.zip
Downloading: "https://github.com/OxWearables/asleep/releases/download/0.4.9/sleepnet_apr_16_2024.mdl" to /Users/rbuild/Library/Caches/org.R-project.R/R/reticulate/uv/cache/archive-v0/kTs4YTVBSFB2Fx7R/lib/python3.8/site-packages/asleep/torch_hub_cache/checkpoints/sleepnet_apr_16_2024.mdl
0%| | 0.00/232M [00:00<?, ?B/s]
1%| | 2.88M/232M [00:00<00:14, 16.6MB/s]
2%|▏ | 5.75M/232M [00:00<00:14, 16.6MB/s]
4%|▎ | 8.62M/232M [00:00<00:14, 16.5MB/s]
4%|▍ | 10.2M/232M [00:00<00:18, 12.6MB/s]
5%|▍ | 11.5M/232M [00:00<00:20, 11.2MB/s]
6%|▌ | 14.2M/232M [00:01<00:15, 14.9MB/s]
7%|▋ | 15.9M/232M [00:01<00:15, 15.1MB/s]
9%|▊ | 19.9M/232M [00:01<00:11, 19.8MB/s]
9%|▉ | 21.9M/232M [00:01<00:14, 15.0MB/s]
10%|█ | 23.6M/232M [00:01<00:16, 13.6MB/s]
11%|█▏ | 26.4M/232M [00:01<00:15, 14.1MB/s]
13%|█▎ | 29.5M/232M [00:02<00:14, 15.0MB/s]
13%|█▎ | 31.0M/232M [00:03<00:43, 4.84MB/s]
14%|█▍ | 32.1M/232M [00:03<00:41, 5.06MB/s]
14%|█▍ | 33.1M/232M [00:03<00:38, 5.46MB/s]
15%|█▍ | 34.8M/232M [00:03<00:31, 6.61MB/s]
17%|█▋ | 38.4M/232M [00:03<00:18, 11.1MB/s]
17%|█▋ | 40.2M/232M [00:04<00:21, 9.36MB/s]
18%|█▊ | 42.9M/232M [00:04<00:18, 10.6MB/s]
20%|█▉ | 45.8M/232M [00:04<00:16, 11.9MB/s]
21%|██ | 48.6M/232M [00:04<00:15, 12.8MB/s]
22%|██▏ | 50.1M/232M [00:04<00:18, 10.5MB/s]
22%|██▏ | 51.4M/232M [00:05<00:25, 7.51MB/s]
23%|██▎ | 52.5M/232M [00:05<00:24, 7.56MB/s]
23%|██▎ | 54.5M/232M [00:05<00:19, 9.59MB/s]
24%|██▍ | 55.8M/232M [00:05<00:18, 10.2MB/s]
26%|██▌ | 60.1M/232M [00:06<00:26, 6.79MB/s]
26%|██▋ | 61.1M/232M [00:07<00:34, 5.13MB/s]
27%|██▋ | 62.1M/232M [00:07<00:31, 5.60MB/s]
27%|██▋ | 63.0M/232M [00:07<00:29, 5.92MB/s]
28%|██▊ | 64.8M/232M [00:07<00:23, 7.32MB/s]
29%|██▉ | 68.4M/232M [00:07<00:13, 12.3MB/s]
30%|███ | 70.1M/232M [00:07<00:17, 9.85MB/s]
31%|███ | 72.0M/232M [00:08<00:16, 10.0MB/s]
32%|███▏ | 75.1M/232M [00:08<00:11, 13.9MB/s]
33%|███▎ | 77.0M/232M [00:08<00:11, 14.5MB/s]
35%|███▍ | 80.1M/232M [00:08<00:11, 13.5MB/s]
35%|███▌ | 82.4M/232M [00:08<00:11, 13.3MB/s]
36%|███▋ | 84.6M/232M [00:08<00:11, 13.1MB/s]
38%|███▊ | 87.4M/232M [00:09<00:11, 13.7MB/s]
39%|███▉ | 90.1M/232M [00:09<00:12, 12.2MB/s]
40%|████ | 93.0M/232M [00:09<00:10, 13.3MB/s]
41%|████▏ | 96.0M/232M [00:09<00:10, 14.3MB/s]
43%|████▎ | 99.0M/232M [00:09<00:09, 14.9MB/s]
43%|████▎ | 100M/232M [00:10<00:11, 11.9MB/s]
44%|████▍ | 103M/232M [00:10<00:10, 12.4MB/s]
46%|████▌ | 107M/232M [00:10<00:07, 18.1MB/s]
47%|████▋ | 110M/232M [00:10<00:07, 18.0MB/s]
48%|████▊ | 112M/232M [00:10<00:08, 14.9MB/s]
50%|████▉ | 116M/232M [00:10<00:07, 17.3MB/s]
52%|█████▏ | 120M/232M [00:11<00:12, 9.43MB/s]
52%|█████▏ | 122M/232M [00:12<00:17, 6.75MB/s]
53%|█████▎ | 123M/232M [00:12<00:16, 6.86MB/s]
54%|█████▎ | 125M/232M [00:12<00:13, 8.36MB/s]
54%|█████▍ | 126M/232M [00:12<00:12, 9.06MB/s]
56%|█████▌ | 130M/232M [00:12<00:08, 12.6MB/s]
57%|█████▋ | 131M/232M [00:13<00:19, 5.50MB/s]
57%|█████▋ | 133M/232M [00:14<00:17, 5.84MB/s]
58%|█████▊ | 135M/232M [00:14<00:13, 7.63MB/s]
59%|█████▊ | 136M/232M [00:14<00:11, 8.54MB/s]
60%|██████ | 140M/232M [00:14<00:07, 12.4MB/s]
61%|██████ | 141M/232M [00:14<00:10, 9.08MB/s]
62%|██████▏ | 144M/232M [00:14<00:08, 11.6MB/s]
63%|██████▎ | 146M/232M [00:14<00:07, 12.4MB/s]
64%|██████▍ | 149M/232M [00:15<00:05, 16.4MB/s]
65%|██████▌ | 151M/232M [00:16<00:18, 4.59MB/s]
66%|██████▌ | 153M/232M [00:16<00:16, 5.00MB/s]
67%|██████▋ | 155M/232M [00:16<00:12, 6.29MB/s]
67%|██████▋ | 156M/232M [00:16<00:11, 7.21MB/s]
69%|██████▊ | 160M/232M [00:17<00:07, 10.5MB/s]
69%|██████▉ | 161M/232M [00:17<00:08, 8.96MB/s]
70%|███████ | 163M/232M [00:17<00:08, 8.89MB/s]
71%|███████ | 164M/232M [00:17<00:07, 9.89MB/s]
73%|███████▎ | 169M/232M [00:17<00:04, 15.8MB/s]
74%|███████▎ | 171M/232M [00:18<00:05, 11.3MB/s]
74%|███████▍ | 172M/232M [00:18<00:05, 10.7MB/s]
75%|███████▍ | 174M/232M [00:18<00:05, 11.0MB/s]
76%|███████▌ | 176M/232M [00:18<00:04, 12.1MB/s]
77%|███████▋ | 179M/232M [00:18<00:03, 15.3MB/s]
78%|███████▊ | 181M/232M [00:19<00:05, 10.5MB/s]
78%|███████▊ | 182M/232M [00:19<00:05, 10.1MB/s]
80%|███████▉ | 185M/232M [00:19<00:04, 11.8MB/s]
81%|████████ | 188M/232M [00:19<00:03, 13.2MB/s]
82%|████████▏ | 190M/232M [00:20<00:07, 6.21MB/s]
82%|████████▏ | 191M/232M [00:21<00:08, 4.81MB/s]
83%|████████▎ | 192M/232M [00:21<00:08, 5.15MB/s]
84%|████████▎ | 194M/232M [00:21<00:05, 6.74MB/s]
84%|████████▍ | 196M/232M [00:21<00:05, 7.59MB/s]
86%|████████▌ | 200M/232M [00:21<00:02, 12.3MB/s]
87%|████████▋ | 201M/232M [00:22<00:07, 4.07MB/s]
87%|████████▋ | 202M/232M [00:23<00:07, 4.45MB/s]
88%|████████▊ | 204M/232M [00:23<00:05, 5.78MB/s]
89%|████████▊ | 206M/232M [00:23<00:04, 6.67MB/s]
90%|█████████ | 210M/232M [00:23<00:02, 10.5MB/s]
91%|█████████ | 211M/232M [00:24<00:05, 4.04MB/s]
92%|█████████▏| 212M/232M [00:24<00:04, 4.45MB/s]
92%|█████████▏| 214M/232M [00:25<00:03, 5.90MB/s]
93%|█████████▎| 216M/232M [00:25<00:02, 6.82MB/s]
95%|█████████▍| 220M/232M [00:25<00:01, 10.6MB/s]
95%|█████████▌| 221M/232M [00:25<00:01, 9.26MB/s]
96%|█████████▌| 223M/232M [00:25<00:01, 9.31MB/s]
97%|█████████▋| 225M/232M [00:25<00:00, 10.7MB/s]
98%|█████████▊| 228M/232M [00:26<00:00, 12.2MB/s]
99%|█████████▉| 230M/232M [00:26<00:00, 10.6MB/s]
100%|██████████| 232M/232M [00:26<00:00, 9.23MB/s]Parsing raw data
All models downloaded successfully.
Lowpass filter...
Skipping lowpass filter: data sample rate 30 too low for cutoff rate 20
Lowpass filter... Done! (0.00s)
Gravity calibration...
Gravity calibration... Done! (0.04s)
Resampling...
Resampling... Done! (0.08s)
{'WearTime(days)': 0.1666662808564815, 'NonwearTime(days)': 0.0, 'NumNonwearEpisodes': 0}
Time shift applied: 0 hours
/Users/rbuild/Library/Caches/org.R-project.R/R/reticulate/uv/cache/archive-v0/kTs4YTVBSFB2Fx7R/lib/python3.8/site-packages/asleep/utils.py:44: UserWarning: Could not infer format, so each element will be parsed individually, falling back to `dateutil`. To ensure parsing is consistent and as-expected, please specify a format.
data = pd.read_csv(
Raw data file saved to: /Volumes/Temp/tmp/RtmpJcsghP/file7b08538347c1/raw.csv
Info data file saved to: /Volumes/Temp/tmp/RtmpJcsghP/file7b08538347c1/info.json
time x y z non_wear
0 2000-01-04 20:00:00.000000000 -0.704000 0.413000 -0.540000 False
1 2000-01-04 20:00:00.033333333 -0.720795 0.419000 -0.561667 False
2 2000-01-04 20:00:00.066666666 -0.665154 0.428846 -0.578590 False
3 2000-01-04 20:00:00.100000000 -0.698000 0.434000 -0.525000 False
4 2000-01-04 20:00:00.133333333 -0.674051 0.417308 -0.575385 False
Transforming data for model input
Data shape for data2model: (480, 3, 900)
Data shape for times: (480,)
Data shape for nonwear: (480,)
Detecting sleep windows
args$outdir/Volumes/Temp/tmp/RtmpJcsghP/file7b08538347c1
ssl_sleep_path: /Volumes/Temp/tmp/RtmpJcsghP/file7b08538347c1/ssl_sleep.npy, exists:FALSE
data2model
array([[[-0.704 , -0.72079488, -0.66515385, ..., -0.69130774,
-0.69115383, -0.6903333 ],
[ 0.413 , 0.419 , 0.42884615, ..., 0.42430774,
0.42807678, 0.44416667],
[-0.54 , -0.56166666, -0.57858971, ..., -0.55976925,
-0.59274354, -0.61691666]],
[[-0.689 , -0.61469231, -0.58484615, ..., -0.62961541,
-0.62735884, -0.62341669],
[ 0.469 , 0.42923077, 0.43343586, ..., 0.466 ,
0.46 , 0.45547223],
[-0.648 , -0.55720514, -0.58207693, ..., -0.57223075,
-0.57330765, -0.56950002]],
[[-0.625 , -0.62246154, -0.63430771, ..., -0.73707666,
-0.73812797, -0.74825001],
[ 0.457 , 0.45953846, 0.46923078, ..., 0.18476925,
0.19420501, 0.20291666],
[-0.56 , -0.548 , -0.56430771, ..., -0.64523075,
-0.6363847 , -0.65150002]],
...,
[[-0.032 , -0.032 , -0.032 , ..., -0.032 ,
-0.032 , -0.032 ],
[-0.123 , -0.123 , -0.123 , ..., -0.123 ,
-0.123 , -0.123 ],
[-0.988 , -0.988 , -0.988 , ..., -0.988 ,
-0.988 , -0.988 ]],
[[-0.032 , -0.032 , -0.032 , ..., -0.032 ,
-0.032 , -0.032 ],
[-0.123 , -0.123 , -0.123 , ..., -0.123 ,
-0.123 , -0.123 ],
[-0.988 , -0.988 , -0.988 , ..., -0.988 ,
-0.988 , -0.988 ]],
[[-0.032 , -0.032 , -0.032 , ..., -0.032 ,
-0.032 , -0.032 ],
[-0.123 , -0.123 , -0.123 , ..., -0.123 ,
-0.123 , -0.123 ],
[-0.988 , -0.988 , -0.988 , ..., -0.988 ,
-0.988 , -0.988 ]]])
non_wear
array([False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False, False, False, False, False, False, False,
False, False, False])
Data2model file saved to: /Volumes/Temp/tmp/RtmpJcsghP/file7b08538347c1/data2model.npy
Times file saved to: /Volumes/Temp/tmp/RtmpJcsghP/file7b08538347c1/times.npy
Non-wear file saved to: /Volumes/Temp/tmp/RtmpJcsghP/file7b08538347c1/non_wear.npy
Downloading https://github.com/OxWearables/asleep/releases/download/0.4.12/ssl.joblib.lzma...
prediction set sample count: 480
Using local /Users/rbuild/Library/Caches/org.R-project.R/R/reticulate/uv/cache/archive-v0/kTs4YTVBSFB2Fx7R/lib/python3.8/site-packages/asleep/torch_hub_cache/OxWearables_ssl-wearables_v1.0.0
0%| | 0/1 [00:00<?, ?it/s]
100%|██████████| 1/1 [00:22<00:00, 22.08s/it]Running SleepNet
SleepNet outdir: /Volumes/Temp/tmp/RtmpJcsghP/file7b08538347c1
Upstream ssl model path: /Users/rbuild/Library/Caches/org.R-project.R/R/reticulate/uv/cache/archive-v0/kTs4YTVBSFB2Fx7R/lib/python3.8/site-packages/asleep/ssl.joblib.lzma, exists: TRUE
SleepNet weight URL: https://github.com/OxWearables/asleep/releases/download/0.4.9/sleepnet_apr_16_2024.mdl
SleepNet artifact ssl_sleep: /Volumes/Temp/tmp/RtmpJcsghP/file7b08538347c1/ssl_sleep.npy, exists: TRUE
SleepNet artifact y_pred: /Volumes/Temp/tmp/RtmpJcsghP/file7b08538347c1/y_pred.npy, exists: FALSE
SleepNet artifact pred_prob: /Volumes/Temp/tmp/RtmpJcsghP/file7b08538347c1/pred_prob.npy, exists: FALSE
SleepNet artifact x_npy: /Volumes/Temp/tmp/RtmpJcsghP/file7b08538347c1/X.npy, exists: TRUE
SleepNet artifact x_npy_gz: /Volumes/Temp/tmp/RtmpJcsghP/file7b08538347c1/X.npy.gz, exists: FALSE
SleepNet artifact npid: /Volumes/Temp/tmp/RtmpJcsghP/file7b08538347c1/npid.npy, exists: TRUE
(480,)
(array([0., 2., 3.]), array([ 79, 45, 356]))
/Users/rbuild/Library/Caches/org.R-project.R/R/reticulate/uv/cache/archive-v0/kTs4YTVBSFB2Fx7R/lib/python3.8/site-packages/asleep/sleepnet.py:207: UserWarning:
The version_base parameter is not specified.
Please specify a compatability version level, or None.
Will assume defaults for version 1.1
initialize(config_path="conf")
pytorch device: mps
setting up cnn
access local repo
Loading local weight from /Users/rbuild/Library/Caches/org.R-project.R/R/reticulate/uv/cache/archive-v0/kTs4YTVBSFB2Fx7R/lib/python3.8/site-packages/asleep/torch_hub_cache/checkpoints/sleepnet_apr_16_2024.mdl
/Users/rbuild/Library/Caches/org.R-project.R/R/reticulate/uv/cache/archive-v0/kTs4YTVBSFB2Fx7R/lib/python3.8/site-packages/asleep/torch_hub_cache/OxWearables_asleep_main/hubconf.py:22: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
state_dict = torch.load(local_weight_path,
Saving _problems/test-asleep-20.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 67 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-asleep.R:20:5'): asleep model works ────────────────────────────
<python.builtin.RuntimeError/python.builtin.Exception/python.builtin.BaseException/python.builtin.object/error/condition>
Error in `py_call_impl(callable, call_args$unnamed, call_args$named)`: RuntimeError: MPS backend out of memory (MPS allocated: 8.00 MB, other allocations: 272.00 KB, max allowed: 1.70 GB). Tried to allocate 256 bytes on shared pool. Use PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0 to disable upper limit for memory allocations (may cause system failure).
Run `reticulate::py_last_error()` for details.
Backtrace:
▆
1. └─asleep::asleep(file = file, verbose = 2L, force_download = TRUE) at test-asleep.R:20:5
2. └─reticulate (local) start_sleep_net(...)
3. └─reticulate:::py_call_impl(callable, call_args$unnamed, call_args$named)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 67 ]
Error:
! Test failures.
Execution halted
/Users/rbuild/Library/Caches/org.R-project.R/R/reticulate/uv/python/cpython-3.8.20-macos-aarch64-none/lib/python3.8/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
Flavor: r-oldrel-macos-arm64
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.