edf2csv 0.7.99 → 0.7.101

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
@@ -18,7 +18,7 @@ import process from 'node:process';
18
18
  import { EdfError } from './edf/errors.js';
19
19
  import { EdfFile } from './edf/reader.js';
20
20
  import { buildPlan, withoutFileRateWarning } from './convert/plan.js';
21
- import { ConversionError, USAGE_ERROR_CODES, auditStdout, convert, defaultOutputDir, durationDiagnostics, requestedAnnotationWindow, noSignalFile, stdoutRefusal, } from './convert/run.js';
21
+ import { ConversionError, USAGE_ERROR_CODES, auditStdout, convert, defaultOutputDir, durationDiagnostics, requestedAnnotationWindow, noAnnotations, noSignalFile, stdoutRefusal, } from './convert/run.js';
22
22
  import { ChannelSelectionError } from './convert/channels.js';
23
23
  // Shared with the library so a bad option is the same error whichever way it arrived.
24
24
  import { OptionError } from './convert/options.js';
@@ -880,6 +880,10 @@ async function showInfo(input, shared, asJson, jsonIndent, batch = false, toStdo
880
880
  const missing = noSignalFile(file, plan);
881
881
  if (missing)
882
882
  plan.diagnostics.push(missing);
883
+ // The same for --annotations-only on a file with none; see noAnnotations.
884
+ const noEvents = noAnnotations(file, shared);
885
+ if (noEvents)
886
+ plan.diagnostics.push(noEvents);
883
887
  if (toStdout) {
884
888
  const refusal = stdoutRefusal(file, plan);
885
889
  if (refusal) {