edf2csv 0.9.16 → 0.9.18

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/cli.js CHANGED
@@ -911,7 +911,17 @@ async function showInfo(input, shared, asJson, jsonIndent, batch = false, toStdo
911
911
  ? await file.readAnnotations()
912
912
  : {
913
913
  annotations: [],
914
- recordStarts: scan ? [scan.origin] : [],
914
+ /*
915
+ What the scan actually read, rather than the one number it distilled.
916
+
917
+ This passed `[scan.origin]` — a list of one, holding a figure derived from
918
+ whichever record answered first — so the contradiction check below had one record
919
+ to look at and the file's own `EDF+C` marker went unchecked against the rest. The
920
+ scan reads up to sixteen records' timekeeping and now hands back what each of them
921
+ said, which is a lower bound on the file exactly as its three counters are: a
922
+ conversion reads every record and may find more.
923
+ */
924
+ recordStarts: scan?.recordStarts ?? [],
915
925
  malformed: scan?.malformed ?? 0,
916
926
  // Counted rather than assumed: see EdfFile.scanOrigin.
917
927
  malformedTimekeeping: scan?.malformedTimekeeping ?? 0,