edfcore 0.4.392 → 0.4.393
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 +18 -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.393";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,24 @@ 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.393
|
|
10
|
+
|
|
11
|
+
- **Added** a property test for the rule `design-decisions.md` states about out-of-range samples: a
|
|
12
|
+
sample outside the declared digital range comes back as it was stored, is counted for free during
|
|
13
|
+
decode, and converts on the affine map that produced the samples inside the range. Clamping
|
|
14
|
+
instead flat-tops real peaks and draws saturation the hardware did not produce, so `edfcore` ships
|
|
15
|
+
the clamp as a separate function you call on purpose — EDFlib clamps on read, and cross-validating
|
|
16
|
+
against it needs the same operation.
|
|
17
|
+
- The unit tests check that with chosen values against chosen ranges. What examples cannot say is
|
|
18
|
+
that nothing clamps for some combination: a negative gain, a range that does not straddle zero, a
|
|
19
|
+
24-bit signal whose declared span is narrower than a 16-bit one's. Those are the shapes where a
|
|
20
|
+
stray `Math.min` looks correct in review.
|
|
21
|
+
- Four properties over generated ranges, generated samples and both storage widths: the decoded
|
|
22
|
+
integers are the integers written, `outOfDigitalRangeCount` is what an independent pass finds,
|
|
23
|
+
the physical step per digital unit outside the range equals the step inside it — which is what
|
|
24
|
+
"extrapolates" means — and `clampToDigitalRange` moves exactly the samples outside the range and
|
|
25
|
+
nothing else.
|
|
26
|
+
|
|
9
27
|
## 0.4.392
|
|
10
28
|
|
|
11
29
|
- **Added** a check that the docblocks reach the published types, which five other checks quietly
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED