edfcore 0.4.362 → 0.4.363
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/README.md +6 -2
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/docs/CHANGELOG.md +17 -0
- package/package.json +1 -1
- package/src/constants.ts +1 -1
package/README.md
CHANGED
|
@@ -151,8 +151,12 @@ for (const d of recording.header.diagnostics) {
|
|
|
151
151
|
}
|
|
152
152
|
```
|
|
153
153
|
|
|
154
|
-
Every diagnostic
|
|
155
|
-
|
|
154
|
+
Every diagnostic names the field at fault, the spec clause it violates, and what to do next. One
|
|
155
|
+
anchored to a header field carries that field's byte offset and its raw bytes as written too. The
|
|
156
|
+
two about the spacing of record onsets carry neither, because the defect is a relationship between
|
|
157
|
+
records rather than a value sitting at an offset — they name the record instead where one record is
|
|
158
|
+
at fault, and the whole file where the shape is. Pass `{ strict: true }` and the first one throws
|
|
159
|
+
instead.
|
|
156
160
|
|
|
157
161
|
**Digital and physical are two functions.** `chunk.signals[i].digital` is an `Int32Array` of
|
|
158
162
|
the values as stored. `toPhysical(signal, digital)` returns a `Float64Array` in the signal's own
|
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.363";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,23 @@ 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.363
|
|
10
|
+
|
|
11
|
+
- **Corrected** the README's promise about diagnostics and widened 0.4.325's check to cover it. It
|
|
12
|
+
said every diagnostic carries "the field, the byte offset, the raw bytes as written, the spec
|
|
13
|
+
clause it violates, and what to do next". Two of them carry neither the offset nor the raw bytes:
|
|
14
|
+
`DISCONTINUITY_IN_CONTINUOUS_FILE` and `RECORD_ONSET_SPACING_VIOLATION` are about the spacing of
|
|
15
|
+
record onsets, so there is no one offset the defect sits at and no field text to quote.
|
|
16
|
+
- That is the right answer rather than a gap — an offset invented for them would point at a record
|
|
17
|
+
that is individually fine — so the sentence now says which diagnostics carry which. It also
|
|
18
|
+
distinguishes the two ways the first of them is raised: against the last probed record when one
|
|
19
|
+
record is at fault, and as a whole-file summary when the shape is, which is why not even a record
|
|
20
|
+
index is always available.
|
|
21
|
+
- The sweep now checks all five properties instead of the spec clause alone: every diagnostic names
|
|
22
|
+
its field and says what to do next, everything anchored to a header field carries an offset and
|
|
23
|
+
its raw bytes, and the two relational codes carry neither and are asserted to be reached, so the
|
|
24
|
+
exemption is examined rather than assumed.
|
|
25
|
+
|
|
9
26
|
## 0.4.362
|
|
10
27
|
|
|
11
28
|
- **Added** a check over the edfcore column of the capabilities table on `comparison.md`. Seven
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED