edf2csv 0.5.124 → 0.5.126

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,61 @@
3
3
  Notable changes to edf2csv. Versions follow [semantic versioning](https://semver.org); while the
4
4
  major version is 0, a minor bump may contain breaking changes.
5
5
 
6
+ ## 0.5.126
7
+
8
+ ### Fixed: the metadata.json the page explains was a different recording's
9
+
10
+ output-files prints a whole `metadata.json` as its explanation of the format — the transcript
11
+ someone reads before writing code against those fields. Its `source.path` ends in
12
+ `sleep-study.edf`, which on this site is one specific recording: eight hours of five channels
13
+ at 100, 10 and 1 Hz with an annotation channel.
14
+
15
+ The sample described three channels at 256, 128 and 1 Hz. 39 MB against 18.7. 412 events
16
+ against 7. Three channel rows against 5. `signal_count` 4 against 6. Started in March 2026
17
+ rather than March 2002. One warning where that conversion raises two — and the field named
18
+ `notes` is the one a reader consults to find out what a warning looks like in the record.
19
+
20
+ The guard that existed declined to check any of it, on the stated grounds that "the sample
21
+ describes an 8-hour sleep study that is not in this repository". It has been in this repository
22
+ since 0.4.68, as `test/fixtures/sleep-study.mjs`, and is what every `--info` block on the site
23
+ is generated from. The values are now compared against a real conversion of it; the run's own
24
+ fields — the tool version, where the file sat, when it was converted — stay illustrative.
25
+
26
+ The same page ran `edf2csv sleep-study.edf` over a directory listing of `signals_256hz.csv`,
27
+ `signals_128hz.csv` and `signals_1hz.csv`. That is `recording.edf`, the three-rate example
28
+ sampling-rates uses, and it is now called that.
29
+
30
+ ## 0.5.125
31
+
32
+ ### Fixed: the FAQ's --json example was another recording's summary, warnings included
33
+
34
+ "How do I check whether a conversion had problems from a script?" runs `--json` on
35
+ `sleep-study.edf` and showed:
36
+
37
+ ```json
38
+ {
39
+ "files": [
40
+ { "name": "signals.csv", "rows": 921600 },
41
+ { "name": "annotations.csv", "rows": 3 },
42
+ { "name": "channels.csv", "rows": 1 }
43
+ ],
44
+ "annotations": 3,
45
+ "duration_seconds": 3600,
46
+ "records": 3600,
47
+ "warnings": []
48
+ }
49
+ ```
50
+
51
+ Every figure belongs to some other file. That recording is eight hours of five channels at
52
+ three rates: three signals files, seven events, five channel rows, 28,800 records. And it
53
+ raises two warnings — the paragraph directly below promises they will be in that array, and
54
+ the same page prints one of them, five answers earlier, about this same file. Someone comparing
55
+ their own output against this block would conclude their conversion had gone wrong.
56
+
57
+ The block is now what that command writes, `warnings` included, and a test converts the
58
+ recording and holds every `--json` block on the site to it. `elapsed_ms` and `output_dir`
59
+ belong to the run rather than to the recording and stay illustrative.
60
+
6
61
  ## 0.5.124
7
62
 
8
63
  ### Fixed: a stray space meant four things depending on which option carried it
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edf2csv",
3
- "version": "0.5.124",
3
+ "version": "0.5.126",
4
4
  "description": "Convert EDF, EDF+ and BDF biosignal recordings (European Data Format) to CSV from the command line. Local, streaming, and never resamples or alters units.",
5
5
  "keywords": [
6
6
  "edf",