edfcore 0.5.16 → 0.5.17
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 +24 -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.5.
|
|
112
|
+
export declare const VERSION = "0.5.17";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,30 @@ 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.5.17
|
|
10
|
+
|
|
11
|
+
- **Added** the record onsets that quietly stop being true when a read is narrowed to a secondary
|
|
12
|
+
annotations signal. EDF+ permits several and reserves timekeeping to the first;
|
|
13
|
+
`annotations.md` documents the consequence in a sentence that reads like a footnote: "Leaving out
|
|
14
|
+
the file's first annotations signal means no timekeeping TAL is read at all. Every entry of
|
|
15
|
+
`result.recordOnsetTicks` then falls back to the nominal grid, and no diagnostic is emitted for
|
|
16
|
+
it."
|
|
17
|
+
- On an EDF+D file that is the difference between the truth and a fiction. The same page calls
|
|
18
|
+
`recordOnsetTicks` "the primitive every timeline in edfcore is built from", and
|
|
19
|
+
`{ signalIndices: [2] }` — a narrowing a caller reaches for to make a read cheaper, or because the
|
|
20
|
+
events they want are on the second channel — turns it into `recordIndex * recordDuration` for a
|
|
21
|
+
file whose records are nowhere near that. The fixture has a five-second hole after record 1, so
|
|
22
|
+
the true onsets are 0, 1, 7, 8 s and the narrowed read returns 0, 1, 2, 3 s.
|
|
23
|
+
- Nothing throws and nothing is logged: `diagnostics` is empty in both readings, the array has the
|
|
24
|
+
right length and the right type, and the events of the second signal come back byte-identical to
|
|
25
|
+
the ones a full read returns. Only the onsets are wrong, which is why this is worth a test rather
|
|
26
|
+
than a sentence. The page's remedy — read them all — is asserted to recover them.
|
|
27
|
+
- The two refusals the same option reaches are checked with it: a plain `RangeError` for a data
|
|
28
|
+
signal, compared word for word against the transcript the page prints, and
|
|
29
|
+
`EdfChannelNotFoundError` carrying `selector` and `availableLabels` for an index the file does not
|
|
30
|
+
have. `isEdfError` tells them apart, which is the distinction the page draws — parsing samples as
|
|
31
|
+
text is a caller's mistake and never a file's.
|
|
32
|
+
|
|
9
33
|
## 0.5.16
|
|
10
34
|
|
|
11
35
|
- **Added** the last program on `annotations.md`, run. That page ends with the conversion it exists
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED