From 48d25d4793504bc6cbd4c43de2a8e052274e3382 Mon Sep 17 00:00:00 2001 From: Jamie Forth Date: Mon, 10 Mar 2025 13:06:33 +0000 Subject: [PATCH 1/2] README: Format data tables consistently --- README.md | 118 +++++++++++++++++++++++++++++++++--------------------- 1 file changed, 73 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index f5d320b..877a5bb 100644 --- a/README.md +++ b/README.md @@ -52,21 +52,17 @@ Minimal example file with two streams. #### Time-series data -Data: - -``` -[192, 255, 238], -[ 12, 22, 32], -[ 13, 23, 33], -[ 14, 24, 34], -[ 15, 25, 35], -[ 12, 22, 32], -[ 13, 23, 33], -[ 14, 24, 34], -[ 15, 25, 35] -``` - -Timestamps: 5.1 to 5.9 in .1 steps +| time_stamp | 0 | 1 | 2 | +|------------|-----|-----|-----| +| 5.1 | 192 | 255 | 238 | +| 5.2 | 12 | 22 | 32 | +| 5.3 | 13 | 23 | 33 | +| 5.4 | 14 | 24 | 34 | +| 5.5 | 15 | 25 | 35 | +| 5.6 | 12 | 22 | 32 | +| 5.7 | 13 | 23 | 33 | +| 5.8 | 14 | 24 | 34 | +| 5.9 | 15 | 25 | 35 | These time-stamps precede the first clock offset measurement, but for synchronization they will be handled with respect to the first (and @@ -109,9 +105,17 @@ Identical to stream 0. #### Time-series data -Data: `[ (the XML footer), 'Hello', 'World', 'from', 'LSL', 'Hello', 'World', 'from', 'LSL']` - -Timestamps: as above +| time_stamp | 0 | +|------------|--------------| +| 5.1 | (XML footer) | +| 5.2 | Hello | +| 5.3 | World | +| 5.4 | from | +| 5.5 | LSL | +| 5.6 | Hello | +| 5.7 | World | +| 5.8 | from | +| 5.9 | LSL | #### Clock offsets @@ -270,21 +274,21 @@ Example containing empty and non-empty data and marker streams. #### Time-series data -| time_stamp | 0 | -|------------|--------------| -| 91725 | {"state": 2} | +| time_stamp | 0 | +|--------------|--------------| +| 91725.014004 | {"state": 2} | #### Clock offsets -| time | value | -|---------|-------| -| 91716.7 | ≅0 | -| 91721.7 | ≅0 | -| 91726.7 | ≅0 | -| 91731.7 | ≅0 | -| 91736.7 | ≅0 | -| 91741.7 | ≅0 | -| 91746.7 | ≅0 | +| time | value | +|--------------|-------| +| 91716.691546 | ≅0 | +| 91721.691770 | ≅0 | +| 91726.692053 | ≅0 | +| 91731.692211 | ≅0 | +| 91736.692330 | ≅0 | +| 91741.692493 | ≅0 | +| 91746.692620 | ≅0 | ### Stream 2 @@ -340,7 +344,15 @@ Empty stream. #### Clock offsets -As above. +| time | value | +|--------------|-------| +| 91716.691514 | ≅0 | +| 91721.691774 | ≅0 | +| 91726.692058 | ≅0 | +| 91731.692287 | ≅0 | +| 91736.692447 | ≅0 | +| 91741.692554 | ≅0 | +| 91746.692766 | ≅0 | ### Stream 3 @@ -402,7 +414,15 @@ Empty stream. #### Clock offsets -As above. +| time | value | +|--------------|-------| +| 91716.691530 | ≅0 | +| 91721.691776 | ≅0 | +| 91726.692048 | ≅0 | +| 91731.692247 | ≅0 | +| 91736.692367 | ≅0 | +| 91741.692487 | ≅0 | +| 91746.692694 | ≅0 | ### Stream 4 @@ -464,19 +484,27 @@ As above. #### Time-series data -| time_stamp | ch:00 | -|------------|-------| -| 91725.2 | 0 | -| 91726.2 | 1 | -| 91727.2 | 2 | -| 91728.2 | 3 | -| 91729.2 | 4 | -| 91730.2 | 5 | -| 91731.2 | 6 | -| 91732.2 | 7 | -| 91733.2 | 8 | -| 91734.2 | 9 | +| time_stamp | ch:00 | +|--------------|-------| +| 91725.213948 | 0 | +| 91726.213948 | 1 | +| 91727.213948 | 2 | +| 91728.213948 | 3 | +| 91729.213948 | 4 | +| 91730.213948 | 5 | +| 91731.213948 | 6 | +| 91732.213948 | 7 | +| 91733.213948 | 8 | +| 91734.213948 | 9 | #### Clock offsets -As above. +| time | value | +|--------------|-------| +| 91716.691572 | ≅0 | +| 91721.691773 | ≅0 | +| 91726.692049 | ≅0 | +| 91731.692249 | ≅0 | +| 91736.692457 | ≅0 | +| 91741.692557 | ≅0 | +| 91746.692746 | ≅0 | From d563bb3b1d4aead7da7a8e9f4a77f90c36325af0 Mon Sep 17 00:00:00 2001 From: Jamie Forth Date: Mon, 10 Mar 2025 13:13:34 +0000 Subject: [PATCH 2/2] README: Update clock_resets.xdf info --- README.md | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 75 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 877a5bb..fb3d7f0 100644 --- a/README.md +++ b/README.md @@ -121,9 +121,11 @@ Identical to stream 0. No clock offsets, so synchronization will have no effect. - ## clock\_resets.xdf ### Stream 1 + +1 `string` channel, 175 samples + #### Header ``` xml @@ -155,7 +157,7 @@ No clock offsets, so synchronization will have no effect. 653153.2121885 259.6538279 - 174 + 175 @@ -170,7 +172,43 @@ No clock offsets, so synchronization will have no effect. ``` +#### Time-series data + +| time_stamp | 0 | +|---------------|------------| +| 653153.212188 | XXX | +| 653156.001700 | Test | +| 653158.235593 | Blah | +| 653158.674409 | Test | +| 653161.255786 | Test-1-2-3 | +| … | … | +| 255.326187 | Test-1-2-3 | +| 255.794242 | Testtest | +| 257.288286 | Test | +| 258.881481 | Test-1-2-3 | +| 259.653828 | XXX | + +#### Clock offsets + +| time | value | +|---------------|-------------| +| 653156.026169 | -652340.284 | +| 653161.027235 | -652340.284 | +| 653166.028073 | -652340.284 | +| 653171.029007 | -652340.284 | +| 653176.029238 | -652340.284 | +| … | … | +| 244.642270 | 1121.166 | +| 249.642364 | 1121.166 | +| 254.642595 | 1121.166 | +| 259.642718 | 1121.166 | +| 264.643002 | 1121.166 | + + ### Stream 2 + +8 `float32` channels, 27815 samples + #### Header ``` xml @@ -197,11 +235,12 @@ No clock offsets, so synchronization will have no effect. ``` #### Footer + ``` xml 653150.379117 261.9267033 - 27814 + 27815 @@ -216,6 +255,39 @@ No clock offsets, so synchronization will have no effect. ``` +#### Time-series data + +| time_stamp | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | +|---------------|-------|-------|-------|-------|-------|-------|-------|-------| +| 653150.314061 | 0.142 | 0.463 | 0.354 | 0.220 | 0.761 | 0.323 | 0.312 | 0.861 | +| 653150.324786 | 0.311 | 0.740 | 0.949 | 0.505 | 0.034 | 0.518 | 0.326 | 0.788 | +| 653150.335512 | 0.611 | 0.838 | 0.780 | 0.767 | 0.065 | 0.214 | 0.044 | 0.238 | +| 653150.346237 | 0.732 | 0.318 | 0.249 | 0.272 | 0.923 | 0.575 | 0.177 | 0.086 | +| 653150.356962 | 0.863 | 0.334 | 0.301 | 0.645 | 1.000 | 0.248 | 0.664 | 0.246 | +| … | … | … | … | … | … | … | … | … | +| 261.975481 | 0.418 | 0.359 | 0.277 | 0.898 | 0.627 | 0.562 | 0.021 | 0.015 | +| 261.986272 | 0.061 | 0.215 | 0.190 | 0.046 | 0.938 | 0.523 | 0.931 | 0.481 | +| 261.997063 | 0.792 | 0.337 | 0.299 | 0.959 | 0.023 | 0.603 | 0.620 | 0.861 | +| 262.007853 | 0.890 | 0.883 | 0.638 | 0.113 | 0.022 | 0.533 | 0.604 | 0.743 | +| 262.018644 | 0.873 | 0.064 | 0.684 | 0.153 | 0.306 | 0.123 | 0.711 | 0.892 | + + +#### Clock offsets + +| time | value | +|---------------|-------------| +| 653156.026144 | -652340.284 | +| 653161.027186 | -652340.284 | +| 653166.028073 | -652340.284 | +| 653171.029031 | -652340.284 | +| 653176.029199 | -652340.284 | +| … | … | +| 244.637258 | 1121.166 | +| 249.637401 | 1121.166 | +| 254.637443 | 1121.166 | +| 259.638406 | 1121.166 | +| 264.638576 | 1121.166 | + ## empty\_streams.xdf Example containing empty and non-empty data and marker streams.