edfcore 0.3.98 → 0.3.100
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/CHANGELOG.md +32 -0
- package/dist/cli-run.js +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +1 -1
- package/dist/constants.js.map +1 -1
- package/package.json +1 -1
- package/src/cli-run.ts +1 -1
- package/src/constants.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,38 @@ 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.3.100
|
|
10
|
+
|
|
11
|
+
- **Fixed** `diagnostics.md` recommending, as the alternative to a gate it warns against, a gate
|
|
12
|
+
that gives the same verdict.
|
|
13
|
+
- The callout says `summarizeDiagnostics(...).errors > 0` must not gate a read, because the
|
|
14
|
+
deferred group carries `error` severity while the file parses and decodes perfectly — one signal
|
|
15
|
+
has no `scale` and every other signal is fine. It then offered "the thrown `EdfError`, or
|
|
16
|
+
`validateRecording`'s `report.ok`".
|
|
17
|
+
- `report.ok` is `diagnostics.every((d) => d.severity !== 'error')` over a **superset** of
|
|
18
|
+
`header.diagnostics`, so it is false on exactly the files the callout is about. On a two-signal
|
|
19
|
+
file with one degenerate physical range: `errors > 0` is `true`, `report.ok` is `false`, and the
|
|
20
|
+
good signal reads all sixteen of its samples. A reader who followed the advice moved from one
|
|
21
|
+
gate to an identical one and still threw away the file.
|
|
22
|
+
- The callout now names the thrown `EdfError` alone as the read gate, and says what `report.ok`
|
|
23
|
+
actually answers — "did this pass a conformance sweep", a different and stricter question.
|
|
24
|
+
- The test builds that file and asserts the two gates AGREE, which is the fact that made the
|
|
25
|
+
recommendation wrong, then checks the retired sentence is gone.
|
|
26
|
+
|
|
27
|
+
## 0.3.99
|
|
28
|
+
|
|
29
|
+
- **Fixed** the CLI usage banner scoping `--patient` to "(header, json)". `redaction(args)` is
|
|
30
|
+
applied by `validate` too, so the flag un-redacts patient identification there as well: without it
|
|
31
|
+
a `PATIENT_ID_NONCONFORMANT` diagnostic renders the field as `[redacted]`, with it the full name.
|
|
32
|
+
- The flag exists so that the default output of a command someone pipes somewhere carries no
|
|
33
|
+
patient name. A banner that under-states which commands it governs is the wrong direction to be
|
|
34
|
+
wrong in: a reader gating on "validate doesn't print names anyway" is gating on nothing.
|
|
35
|
+
- `api-helpers.md` carried the same pair and now names all three.
|
|
36
|
+
- The test DERIVES the scope: it runs every subcommand with and without the flag over one
|
|
37
|
+
non-conformant file, collects the ones whose output changes, and requires the banner line to list
|
|
38
|
+
exactly those. It first asserts more than one command is affected, so it cannot pass on a file
|
|
39
|
+
where the flag does nothing.
|
|
40
|
+
|
|
9
41
|
## 0.3.98
|
|
10
42
|
|
|
11
43
|
- **Fixed** `fileSource` carrying, as advice, a check it never performed. Its size refusal ended
|
package/dist/cli-run.js
CHANGED
|
@@ -47,7 +47,7 @@ const USAGE = `edfcore — read EDF, EDF+, BDF and BDF+ files
|
|
|
47
47
|
|
|
48
48
|
Options
|
|
49
49
|
--help, -h print this and exit 0
|
|
50
|
-
--patient include patient identification (header, json)
|
|
50
|
+
--patient include patient identification (header, validate, json)
|
|
51
51
|
--list list events one per line instead of counting (events)
|
|
52
52
|
--limit <n> individual diagnostics or events to print (default 20)
|
|
53
53
|
|
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.3.
|
|
112
|
+
export declare const VERSION = "0.3.100";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3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,QAAQ,EAAE,GAAG;CACL,CAAC;AAEX,2EAA2E;AAC3E,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC"}
|
package/package.json
CHANGED
package/src/cli-run.ts
CHANGED
|
@@ -58,7 +58,7 @@ const USAGE = `edfcore — read EDF, EDF+, BDF and BDF+ files
|
|
|
58
58
|
|
|
59
59
|
Options
|
|
60
60
|
--help, -h print this and exit 0
|
|
61
|
-
--patient include patient identification (header, json)
|
|
61
|
+
--patient include patient identification (header, validate, json)
|
|
62
62
|
--list list events one per line instead of counting (events)
|
|
63
63
|
--limit <n> individual diagnostics or events to print (default 20)
|
|
64
64
|
|
package/src/constants.ts
CHANGED