edfcore 0.2.56 → 0.2.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +19 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/package.json +1 -1
- package/src/constants.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,19 @@ alone does not tell you whether you were affected.
|
|
|
6
6
|
edfcore is pre-1.0. Patch releases have carried behaviour changes where the old behaviour was a
|
|
7
7
|
defect; those are called out below.
|
|
8
8
|
|
|
9
|
+
## 0.2.57
|
|
10
|
+
|
|
11
|
+
- **Documented** what the corpus work of 0.2.49-0.2.55 actually established. The README's
|
|
12
|
+
interop section stopped at sample parity, which was the state at 0.2.48 and has not been the
|
|
13
|
+
state since — annotation onsets, the zero-record-duration scoring file, the 1985-2084 year rule,
|
|
14
|
+
faithful decimation over 7,950,000 samples, chunk-independence, the memory bound, streaming
|
|
15
|
+
equivalence, HTTP random access costing under 64 KB for a window twelve hours into a 48 MB file,
|
|
16
|
+
and `validate` exiting 0 on a real clinical recording were all verified and none of them were
|
|
17
|
+
claimed. A reader deciding whether to trust this package should not have to reconstruct that
|
|
18
|
+
from a changelog.
|
|
19
|
+
- Each row names how it is checked rather than only what it asserts, because "we test that" is the
|
|
20
|
+
kind of claim this project has spent forty releases learning not to make without saying how.
|
|
21
|
+
|
|
9
22
|
## 0.2.56
|
|
10
23
|
|
|
11
24
|
- **Fixed** `tests/README.md`, which said "There are no binary fixtures in this repository" and
|
package/README.md
CHANGED
|
@@ -310,7 +310,25 @@ establish.
|
|
|
310
310
|
chose: a **22-hour clinical polysomnogram** from sleep-edfx, and the teuniz generator files in EDF,
|
|
311
311
|
EDF+ and 24-bit BDF+. Sampled at the start, the middle and the end of every signal — the end window
|
|
312
312
|
being the one that catches record arithmetic drifting with distance, which a sample near record 0
|
|
313
|
-
cannot.
|
|
313
|
+
cannot.
|
|
314
|
+
|
|
315
|
+
What else those files establish, which synthetic fixtures cannot:
|
|
316
|
+
|
|
317
|
+
| Claim | Checked how |
|
|
318
|
+
|---|---|
|
|
319
|
+
| Annotation onsets match pyEDFlib | 154 sleep stages from a real scoring file, to the tick |
|
|
320
|
+
| A legally **zero** record duration works | that same file — where `sampleRateHz` is `undefined` and any rate-derived expression yields `NaN` |
|
|
321
|
+
| The 1985–2084 year rule is right | a 1989 recording, against a reader that implements it independently |
|
|
322
|
+
| Decimation keeps every extreme | 7,950,000 samples reduced to 1,000 buckets, compared with an exhaustive reduction |
|
|
323
|
+
| The bucket grid ignores chunk size | 265 chunks versus a handful |
|
|
324
|
+
| Memory is bounded by the chunk | that 22-hour envelope produced under a 512 KiB budget |
|
|
325
|
+
| Streaming equals reading | 42 streamed chunks concatenated and compared sample by sample |
|
|
326
|
+
| **Random access is real** | a 30-second window twelve hours in costs **under 64 KB** over HTTP |
|
|
327
|
+
| `validate` is usable as a CI gate | exits 0 on a real recording from a real sleep lab |
|
|
328
|
+
| The sample scan sees what pyEDFlib sees | whole-signal digital extremes, all five files |
|
|
329
|
+
|
|
330
|
+
Those tests need the corpus and skip without it. `coverage.test.ts` always runs and says which
|
|
331
|
+
state you are in, because a skipped test and a passing one look identical in a summary line:
|
|
314
332
|
|
|
315
333
|
```bash
|
|
316
334
|
npm run corpus:fetch
|
package/dist/constants.d.ts
CHANGED
|
@@ -109,5 +109,5 @@ export declare const SIGNAL_FIELD_BLOCK_OFFSETS: {
|
|
|
109
109
|
readonly reserved: 224;
|
|
110
110
|
};
|
|
111
111
|
/** Published package version. Kept in sync with package.json by a test. */
|
|
112
|
-
export declare const VERSION = "0.2.
|
|
112
|
+
export declare const VERSION = "0.2.57";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/package.json
CHANGED
package/src/constants.ts
CHANGED