edfcore 0.6.34 → 0.6.36
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 +47 -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.6.
|
|
112
|
+
export declare const VERSION = "0.6.36";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,53 @@ 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.6.36
|
|
10
|
+
|
|
11
|
+
- **Added** a seventeenth shape to the `AWKWARD` matrix: records that overlap in time, where a
|
|
12
|
+
record starts before the one before it ended and two records claim the same instant. edfcore has
|
|
13
|
+
always known about them — the gap list carries one with a negative duration (0.2.69),
|
|
14
|
+
`mergeChunks` refuses the join, `edfcore gaps` prints it in its own column, and the probe raises
|
|
15
|
+
`RECORD_ONSET_SPACING_VIOLATION`, a warning rather than an error because an overlapping file is
|
|
16
|
+
still readable.
|
|
17
|
+
- **Fixed** four sweeps that were asserting things true only of files whose records do not overlap,
|
|
18
|
+
which nothing had ever supplied:
|
|
19
|
+
- `header-helpers-agree` said the sum of the record durations never exceeds the span. It exceeds
|
|
20
|
+
it by exactly the overlap, because an overlap counts an instant twice.
|
|
21
|
+
- `timeline-helpers-agree` said an instant inside a segment is answered with THAT segment, and
|
|
22
|
+
that a gap's midpoint is in no segment. Two segments contain an overlapped instant, and an
|
|
23
|
+
overlap's interval runs backwards, so its midpoint is inside a segment rather than in a hole.
|
|
24
|
+
- `reading-helpers-agree` said a window at a sample's start begins at that sample's record, and
|
|
25
|
+
that a window's chunks join. Neither holds here — and the second was the half of its own
|
|
26
|
+
comment the code had never run: "either join or are refused with a reason" had only ever seen
|
|
27
|
+
joining.
|
|
28
|
+
- None of the four was a defect in `src/`. The library refuses the unindexed read with a message in
|
|
29
|
+
the file's own numbers ("records covering 6 s are packed into a 3.5 s span"), returns both
|
|
30
|
+
covering records in separate chunks once it has an index, and refuses to concatenate them. Each
|
|
31
|
+
sweep now states the weaker thing true of every file and the stronger thing true of this one,
|
|
32
|
+
rather than exempting the shape.
|
|
33
|
+
- That is what a matrix is for: the claims were not wrong because anyone was careless, they were
|
|
34
|
+
claims with no counterexample.
|
|
35
|
+
|
|
36
|
+
## 0.6.35
|
|
37
|
+
|
|
38
|
+
- **Added** the census that closes the class four releases in a row have been fixing. A sample rate
|
|
39
|
+
of `68.96551724137932` in a nine-character column (0.6.23), a signal index of 1000 in three
|
|
40
|
+
(0.6.24), a negative or hundred-hour clock in twelve (0.6.25), an observed range and sample count
|
|
41
|
+
that were not padded at all (0.6.34) — the same mistake in four formatters, each found by looking
|
|
42
|
+
at output rather than by anything failing.
|
|
43
|
+
- `every-column-knows-its-width.test.ts` lists every `padStart` and `padEnd` in `src/` that lays
|
|
44
|
+
out a column, with one of three reasons its width is safe: MEASURED from the rows being printed,
|
|
45
|
+
bounded by the FILE FORMAT (a label is 16 bytes, `kind` is one of two words, a rate is rounded to
|
|
46
|
+
fit), or bounded by an ARGUMENT no test can build.
|
|
47
|
+
- Two are in that last group and are named rather than assumed: the per-code diagnostic count and
|
|
48
|
+
the event count, with the arithmetic written out — seven digits is 9,999,999 of one code, and the
|
|
49
|
+
record count field is eight characters, so a per-record code on the largest file the format can
|
|
50
|
+
describe would need eight. They are not measured because no test can construct the report that
|
|
51
|
+
would show it, and saying so is better than a floor nobody can justify.
|
|
52
|
+
- A new width fails until it says which of the three it is. Zero-padding is excluded by pattern: a
|
|
53
|
+
clock digit spelling itself is not a place in a table.
|
|
54
|
+
- No behaviour changed.
|
|
55
|
+
|
|
9
56
|
## 0.6.34
|
|
10
57
|
|
|
11
58
|
- **Fixed** the observed-ranges block in `edfcore validate` falling where the numbers left it. The
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED