edfcore 0.4.310 → 0.4.312
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/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/docs/CHANGELOG.md +22 -0
- package/package.json +1 -1
- package/src/constants.ts +1 -1
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.4.
|
|
112
|
+
export declare const VERSION = "0.4.312";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,28 @@ 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.4.312
|
|
10
|
+
|
|
11
|
+
- **Added** a cross-check of the sample decoders printed on `edf-format.md` against edfcore's own.
|
|
12
|
+
The page's `decodeEdfSample` and `decodeBdfSample` are three lines each and derived straight
|
|
13
|
+
from the specification; `decode/digital.ts` de-interleaves whole records through a plan and a
|
|
14
|
+
typed-array fast path. Every one of the 65,536 EDF encodings now goes through both, along with
|
|
15
|
+
the BDF boundaries where sign extension from bit 23 is decided.
|
|
16
|
+
- The results the page prints beside each call are parsed out of it rather than restated, so
|
|
17
|
+
`decodeBdfSample(0xff, 0xff, 0x7f)` has to keep printing what those bytes actually hold.
|
|
18
|
+
|
|
19
|
+
## 0.4.311
|
|
20
|
+
|
|
21
|
+
- **Added** an execution of the worked address on `edf-format.md`. The page prints a hand-written
|
|
22
|
+
`byteOfSample` and one result — byte 1832 for sample 20 of a 16-samples-per-record channel,
|
|
23
|
+
"record 1, sample 4" — as the fastest way to understand the layout. The index and the address
|
|
24
|
+
are parsed out of the page, the arithmetic is run against a file built to the snippet's
|
|
25
|
+
description, and the two bytes at that address are decoded and compared with the sample edfcore
|
|
26
|
+
returns for the same index.
|
|
27
|
+
- The page says "edfcore does that arithmetic for you", and that sentence is the one worth
|
|
28
|
+
holding: the value of the printed byte is that it is the byte the library reads, so the check
|
|
29
|
+
is against a real read rather than against the formula restated.
|
|
30
|
+
|
|
9
31
|
## 0.4.310
|
|
10
32
|
|
|
11
33
|
- **Added** the second half of 0.4.309: the per-signal address table on `edf-format.md`, ten rows
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED