edf2csv 0.5.74 → 0.5.75

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 +20 -0
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
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.75
7
+
8
+ ### Fixed: two pages gave different formulas for where an untimed record goes, and one was wrong
9
+
10
+ A data record whose timekeeping annotation cannot be read has to be placed somewhere.
11
+ `deriveRecordStarts` puts it at `origin + index * recordDuration`, where the origin comes from
12
+ the first record that does state a time.
13
+
14
+ api.md says exactly that, and says why: "not at `index * recordDuration`, which silently assumes
15
+ the recording begins at zero". edf-plus-annotations.md then said `index * record_duration` — the
16
+ form the other page names in order to warn against it. On `lost-timekeeping-d.edf`, whose origin
17
+ is 0.5 s, the documented arithmetic gives 0.000 for a record the conversion writes at 0.500.
18
+
19
+ Corrected, with the reason attached rather than only the formula, since the formula alone is
20
+ what drifted. A test anchors the claim: both pages must carry the origin-aware form, and the
21
+ sentence in edf-plus-annotations.md that states the fallback must be that one. Anchored on the
22
+ sentence rather than on every appearance of the arithmetic — both pages also name the bare form
23
+ in order to reject it, and flagging those would take a phrase blacklist that grows with the
24
+ prose.
25
+
6
26
  ## 0.5.74
7
27
 
8
28
  ### Fixed: "1 records", "1 bytes"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edf2csv",
3
- "version": "0.5.74",
3
+ "version": "0.5.75",
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",