edf2csv 0.5.37 → 0.5.38

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 +22 -0
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
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.38
7
+
8
+ ### Fixed: the API reference's `buildPlan` recipe halved the row estimate it exists to predict
9
+
10
+ `buildPlan` answers "what would a conversion produce", and api.md gives a recipe for feeding
11
+ it record start times by hand: take `recordStarts` from `readAnnotations()` and use
12
+ `index * recordDuration` where an entry is `null`.
13
+
14
+ That last part assumes the recording begins at zero. `convert` places an unreadable record at
15
+ `origin + index * recordDuration`, where the origin comes from the first record that does
16
+ state one. On `lost-timekeeping-d.edf` — first timekeeping TAL unreadable, the rest saying 1.5
17
+ and 2.5 — the recipe puts record 0 at 0 rather than 0.5, so planning a window of
18
+ `{ start: 0.5, duration: 1 }` estimates 2 rows. The conversion writes 4.
19
+
20
+ Which is the one thing this API is for: a plan that disagrees with the conversion by half is
21
+ worse than no plan, because it looks like an answer.
22
+
23
+ The recipe now reads `readOrigin()` and fills from it, as the conversion does, and is a
24
+ complete program rather than a fragment — so the example runner added in 0.4.76 executes it
25
+ too. A test builds the array that way, plans the same window, converts the same recording, and
26
+ requires the estimate, the resolved range and the rows on disk to agree.
27
+
6
28
  ## 0.5.37
7
29
 
8
30
  ### Fixed: the page listing what `--info` cannot report was wrong about most of it
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edf2csv",
3
- "version": "0.5.37",
3
+ "version": "0.5.38",
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",