Commit 18c0f42
committed
feat: resolve VU-AMS condition codes to human labels via .cfg file
The EDF loader now looks for a VU-AMS condition-label file (.cfg) next
to the .edf file. Search order:
1. <same_stem>.cfg (exact match)
2. Any single *.cfg in the same directory (fallback for mismatched names)
The .cfg format is "<number> <label>" lines (# comment lines ignored).
Annotation codes like "10_" are stripped of their trailing underscore
and looked up in the mapping, so epochs are named "Lying_supine",
"Standing", "Sitting", etc. instead of raw numeric codes.
Also adds ExampleData/data/VU-AMS_5fs_example_data_multiplesigs.cfg
with the 39-condition protocol used in the example recording.
https://claude.ai/code/session_012UqMHtVPfm4SkQiFnTYBmF1 parent edccd44 commit 18c0f42
2 files changed
Lines changed: 115 additions & 3 deletions
File tree
- ExampleData/data
- src/spectHR/DataSet/loaders
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
217 | 218 | | |
218 | 219 | | |
219 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
220 | 287 | | |
221 | 288 | | |
222 | 289 | | |
| |||
360 | 427 | | |
361 | 428 | | |
362 | 429 | | |
| 430 | + | |
363 | 431 | | |
| 432 | + | |
| 433 | + | |
364 | 434 | | |
365 | 435 | | |
366 | 436 | | |
367 | 437 | | |
368 | 438 | | |
| 439 | + | |
369 | 440 | | |
370 | 441 | | |
371 | | - | |
| 442 | + | |
372 | 443 | | |
373 | | - | |
| 444 | + | |
374 | 445 | | |
375 | 446 | | |
376 | | - | |
| 447 | + | |
377 | 448 | | |
378 | 449 | | |
379 | 450 | | |
| |||
0 commit comments