edf2csv 0.9.24 → 0.9.26
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/convert/run.js +15 -0
- package/dist/convert/run.js.map +1 -1
- package/dist/edf/header.js +4 -3
- package/dist/edf/header.js.map +1 -1
- package/package.json +1 -1
package/dist/convert/run.js
CHANGED
|
@@ -1777,6 +1777,21 @@ converted = new Set()) {
|
|
|
1777
1777
|
.replace('so both columns are suffixed with their position instead.', `so both are suffixed with their position in ${channelsFile}'s column cells instead.`),
|
|
1778
1778
|
};
|
|
1779
1779
|
}
|
|
1780
|
+
/*
|
|
1781
|
+
And the fourth calibration warning, which the three above were rewritten without.
|
|
1782
|
+
|
|
1783
|
+
`UNUSABLE_PHYSICAL_RANGE` ends in the same sentence they do — "Its cells are left empty
|
|
1784
|
+
rather than filled with a value the header cannot justify" — and needs a header no
|
|
1785
|
+
fixture has, a span that underflows to zero or one too large to represent, which is how
|
|
1786
|
+
it stayed out of the sweep that found the others.
|
|
1787
|
+
*/
|
|
1788
|
+
if (diagnostic.code === 'UNUSABLE_PHYSICAL_RANGE') {
|
|
1789
|
+
return {
|
|
1790
|
+
...diagnostic,
|
|
1791
|
+
hint: `No samples are converted ${because}, so there are no cells to leave ` +
|
|
1792
|
+
`empty. ${channelsFile} still records the physical range the header gives.`,
|
|
1793
|
+
};
|
|
1794
|
+
}
|
|
1780
1795
|
if (diagnostic.code === 'DEGENERATE_DIGITAL_RANGE') {
|
|
1781
1796
|
return {
|
|
1782
1797
|
...diagnostic,
|