diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b4da14f..bed8b69 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -35,11 +35,11 @@ jobs: - uses: actions/setup-node@v5 with: node-version: 18.x - - name: Install Jupyter Book (via myst) - run: npm install -g jupyter-book + - name: Install MyST + run: npm install -g mystmd - name: Build HTML Assets working-directory: docs - run: jupyter-book build --html + run: myst build --html - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/.gitignore b/.gitignore index 925dacc..0df9935 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,5 @@ htmlcov/ # OS .DS_Store examples + +docs/expt diff --git a/docs/alt-direct-coords.ipynb b/docs/alt-direct-coords.ipynb index dc9600b..43e5dd6 100644 --- a/docs/alt-direct-coords.ipynb +++ b/docs/alt-direct-coords.ipynb @@ -13,15 +13,8 @@ }, { "cell_type": "code", - "execution_count": 1, - "metadata": { - "execution": { - "iopub.execute_input": "2025-12-15T18:17:18.756297Z", - "iopub.status.busy": "2025-12-15T18:17:18.756139Z", - "iopub.status.idle": "2025-12-15T18:17:19.097722Z", - "shell.execute_reply": "2025-12-15T18:17:19.097151Z" - } - }, + "execution_count": null, + "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", @@ -39,527 +32,9 @@ }, { "cell_type": "code", - "execution_count": 2, - "metadata": { - "execution": { - "iopub.execute_input": "2025-12-15T18:17:19.099219Z", - "iopub.status.busy": "2025-12-15T18:17:19.099085Z", - "iopub.status.idle": "2025-12-15T18:17:19.107638Z", - "shell.execute_reply": "2025-12-15T18:17:19.107221Z" - } - }, - "outputs": [ - { - "data": { - "text/html": [ - "
<xarray.Dataset> Size: 36kB\n", - "Dimensions: (C: 2, time: 1000)\n", - "Coordinates:\n", - " * time (time) float64 8kB 0.0 0.1201 0.2402 0.3604 ... 119.8 119.9 120.0\n", - " * word (time) <U3 12kB 'red' 'red' 'red' 'red' ... 'blu' 'blu' 'blu' 'blu'\n", - "Dimensions without coordinates: C\n", - "Data variables:\n", - " data (C, time) float64 16kB 0.4334 0.3878 0.8662 ... 0.7358 0.7474
<xarray.Dataset> Size: 5kB\n", - "Dimensions: (C: 2, time: 128)\n", - "Coordinates:\n", - " * time (time) float64 1kB 0.2402 0.3604 0.4805 0.6006 ... 15.26 15.38 15.5\n", - " * word (time) <U3 2kB 'red' 'red' 'red' 'red' ... 'red' 'red' 'red' 'red'\n", - "Dimensions without coordinates: C\n", - "Data variables:\n", - " data (C, time) float64 2kB 0.8662 0.08782 0.6194 ... 0.9323 0.07574" - ], - "text/plain": [ - "
<xarray.Dataset> Size: 12kB\n", - "Dimensions: (C: 2, time: 333)\n", - "Coordinates:\n", - " * time (time) float64 3kB 0.0 0.1201 0.2402 0.3604 ... 39.64 39.76 39.88\n", - " * word (time) <U3 4kB 'red' 'red' 'red' 'red' ... 'red' 'red' 'red' 'red'\n", - "Dimensions without coordinates: C\n", - "Data variables:\n", - " data (C, time) float64 5kB 0.4334 0.3878 0.8662 ... 0.2404 0.2704 0.2363" - ], - "text/plain": [ - "
<xarray.Dataset> Size: 40kB\n", - "Dimensions: (C: 2, T: 1000)\n", - "Coordinates:\n", - " * C (C) int64 16B 0 1\n", - " * T (T) object 8kB MultiIndex\n", - " * word (T) object 8kB 'red' 'red' 'red' 'red' ... 'blu' 'blu' 'blu' 'blu'\n", - " * time (T) float64 8kB 0.0 0.1201 0.2402 0.3604 ... 119.8 119.9 120.0\n", - "Data variables:\n", - " data (C, T) float64 16kB 0.7147 0.5619 0.6991 ... 0.879 0.4697 0.3985" - ], - "text/plain": [ - "
<xarray.Dataset> Size: 8kB\n", - "Dimensions: (C: 2, time: 333)\n", - "Coordinates:\n", - " * C (C) int64 16B 0 1\n", - " * time (time) float64 3kB 0.0 0.1201 0.2402 0.3604 ... 39.64 39.76 39.88\n", - " word <U3 12B 'red'\n", - "Data variables:\n", - " data (C, time) float64 5kB 0.7147 0.5619 0.6991 ... 0.5794 0.09006
<xarray.Dataset> Size: 19kB\n", - "Dimensions: (C: 2, T: 463)\n", - "Coordinates:\n", - " * C (C) int64 16B 0 1\n", - " * T (T) object 4kB MultiIndex\n", - " * word (T) object 4kB 'red' 'red' 'red' 'red' ... 'gre' 'gre' 'gre' 'gre'\n", - " * time (T) float64 4kB 0.2402 0.3604 0.4805 0.6006 ... 55.5 55.62 55.74\n", - "Data variables:\n", - " data (C, T) float64 7kB 0.7942 0.3829 0.7289 ... 0.8962 0.2746 0.3556" - ], - "text/plain": [ - "
<xarray.Dataset> Size: 28kB\n", + "Dimensions: (trial: 3, rel_time: 500)\n", + "Coordinates:\n", + " * trial (trial) <U8 96B 'cosine' 'square' 'sawtooth'\n", + " * rel_time (rel_time) float64 4kB 0.0 0.01 0.02 0.03 ... 4.96 4.97 4.98 4.99\n", + " abs_time (trial, rel_time) float64 12kB 0.0 0.01 0.02 ... 14.97 14.98 14.99\n", + "Data variables:\n", + " data (trial, rel_time) float64 12kB 1.0 0.9995 0.998 ... -0.02 -0.01
<xarray.Dataset> Size: 88kB\n", + "Dimensions: (trial: 3, rel_time: 500)\n", + "Coordinates:\n", + " * trial (trial) <U8 96B 'cosine' 'square' 'sawtooth'\n", + " * rel_time (rel_time) float64 4kB 0.0 0.01 0.02 0.03 ... 4.97 4.98 4.99\n", + " abs_time (trial, rel_time) float64 12kB 0.0 0.01 0.02 ... 14.98 14.99\n", + " trial_2d (trial, rel_time) <U8 48kB 'cosine' 'cosine' ... 'sawtooth'\n", + " event_locked (trial, rel_time) float64 12kB -2.0 -1.99 -1.98 ... 3.48 3.49\n", + "Data variables:\n", + " data (trial, rel_time) float64 12kB 1.0 0.9995 ... -0.02 -0.01" + ], + "text/plain": [ + "
<xarray.Dataset> Size: 52kB\n", + "Dimensions: (trial: 3, rel_time: 500)\n", + "Coordinates:\n", + " * trial (trial) <U8 96B 'cosine' 'square' 'sawtooth'\n", + " * rel_time (rel_time) float64 4kB 0.0 0.01 0.02 0.03 ... 4.97 4.98 4.99\n", + " abs_time (trial, rel_time) float64 12kB 0.0 0.01 0.02 ... 14.98 14.99\n", + " * trial_idx_2d (trial, rel_time) int64 12kB 0 0 0 0 0 0 0 0 ... 2 2 2 2 2 2 2\n", + " * event_locked (trial, rel_time) float64 12kB -2.0 -1.99 -1.98 ... 3.48 3.49\n", + "Data variables:\n", + " data (trial, rel_time) float64 12kB 1.0 0.9995 ... -0.02 -0.01\n", + "Indexes:\n", + " ┌ trial_idx_2d NDPointIndex (ScipyKDTreeAdapter)\n", + " └ event_locked" + ], + "text/plain": [ + "
<xarray.Dataset> Size: 216B\n", + "Dimensions: (query: 3)\n", + "Coordinates:\n", + " trial (query) <U8 96B 'cosine' 'square' 'sawtooth'\n", + " rel_time (query) float64 24B 2.5 3.0 2.0\n", + " abs_time (query) float64 24B 2.5 8.0 12.0\n", + " trial_idx_2d (query) int64 24B 0 1 2\n", + " event_locked (query) float64 24B 0.5 0.5 0.5\n", + "Dimensions without coordinates: query\n", + "Data variables:\n", + " data (query) float64 24B 3.062e-16 -1.0 -1.0" + ], + "text/plain": [ + "
<xarray.Dataset> Size: 72B\n", + "Dimensions: ()\n", + "Coordinates:\n", + " trial <U8 32B 'cosine'\n", + " rel_time float64 8B 3.0\n", + " abs_time float64 8B 3.0\n", + " trial_idx_2d int64 8B 0\n", + " event_locked float64 8B 1.0\n", + "Data variables:\n", + " data float64 8B -1.0" + ], + "text/plain": [ + "
<xarray.Dataset> Size: 72B\n", + "Dimensions: ()\n", + "Coordinates:\n", + " trial <U8 32B 'square'\n", + " rel_time float64 8B 2.5\n", + " abs_time float64 8B 7.5\n", + " trial_idx_2d int64 8B 1\n", + " event_locked float64 8B 0.0\n", + "Data variables:\n", + " data float64 8B 1.0" + ], + "text/plain": [ + "
<xarray.Dataset> Size: 40kB\n", + "Dimensions: (trial: 3, rel_time: 500)\n", + "Coordinates:\n", + " * trial (trial) <U8 96B 'cosine' 'square' 'sawtooth'\n", + " * rel_time (rel_time) float64 4kB 0.0 0.01 0.02 0.03 ... 4.97 4.98 4.99\n", + " * abs_time (trial, rel_time) float64 12kB 0.0 0.01 0.02 ... 14.98 14.99\n", + " * event_locked (trial, rel_time) float64 12kB -2.0 -1.99 -1.98 ... 3.48 3.49\n", + "Data variables:\n", + " data (trial, rel_time) float64 12kB 1.0 0.9995 ... -0.02 -0.01\n", + "Indexes:\n", + " ┌ abs_time NDIndex\n", + " └ event_locked" + ], + "text/plain": [ + "
<xarray.Dataset> Size: 64B\n", + "Dimensions: (trial: 1, rel_time: 1)\n", + "Coordinates:\n", + " * trial (trial) <U8 32B 'cosine'\n", + " * rel_time (rel_time) float64 8B 2.5\n", + " * abs_time (trial, rel_time) float64 8B 2.5\n", + " * event_locked (trial, rel_time) float64 8B 0.5\n", + "Data variables:\n", + " data (trial, rel_time) float64 8B 3.062e-16\n", + "Indexes:\n", + " ┌ abs_time NDIndex\n", + " └ event_locked" + ], + "text/plain": [ + "
<xarray.Dataset> Size: 20kB\n", + "Dimensions: (trial: 3, rel_time: 251)\n", + "Coordinates:\n", + " * trial (trial) <U8 96B 'cosine' 'square' 'sawtooth'\n", + " * rel_time (rel_time) float64 2kB 1.0 1.01 1.02 1.03 ... 3.48 3.49 3.5\n", + " * abs_time (trial, rel_time) float64 6kB 1.0 1.01 1.02 ... 13.49 13.5\n", + " * event_locked (trial, rel_time) float64 6kB -1.0 -0.99 -0.98 ... 1.99 2.0\n", + "Data variables:\n", + " data (trial, rel_time) float64 6kB -1.0 -0.9995 -0.998 ... 0.49 0.5\n", + "Indexes:\n", + " ┌ abs_time NDIndex\n", + " └ event_locked" + ], + "text/plain": [ + "
<xarray.Dataset> Size: 2MB\n", - "Dimensions: (wavenumber: 1340, abs_time: 150, cell: 3)\n", - "Coordinates:\n", - " * wavenumber (wavenumber) float64 11kB 400.0 402.2 ... 3.398e+03 3.4e+03\n", - " * abs_time (abs_time) float64 1kB 0.0 0.1 0.2 0.3 ... 14.7 14.8 14.9\n", - " * cell (cell) <U7 84B 'Cell1' 'Cell1.1' 'Cell2'\n", - " cell_onset (cell) float64 24B 0.0 5.0 10.0\n", - " cell_duration (cell) float64 24B 5.0 5.0 5.0\n", - "Data variables:\n", - " spectra (wavenumber, abs_time) float64 2MB 0.9967 0.3617 ... 1.536" - ], - "text/plain": [ - "
<xarray.Dataset> Size: 2MB\n", - "Dimensions: (wavenumber: 1340, abs_time: 150, cell: 3)\n", - "Coordinates:\n", - " * wavenumber (wavenumber) float64 11kB 400.0 402.2 ... 3.398e+03 3.4e+03\n", - " * abs_time (abs_time) float64 1kB 0.0 0.1 0.2 0.3 ... 14.7 14.8 14.9\n", - " * cell (cell) <U7 84B 'Cell1' 'Cell1.1' 'Cell2'\n", - " * cell_onset (cell) float64 24B 0.0 5.0 10.0\n", - " * cell_duration (cell) float64 24B 5.0 5.0 5.0\n", - "Data variables:\n", - " spectra (wavenumber, abs_time) float64 2MB 0.9967 0.3617 ... 1.536\n", - "Indexes:\n", - " ┌ abs_time DimensionInterval\n", - " │ cell_onset\n", - " │ cell_duration\n", - " └ cell" - ], - "text/plain": [ - "
<xarray.Dataset> Size: 558kB\n", - "Dimensions: (wavenumber: 1340, abs_time: 51, cell: 1)\n", - "Coordinates:\n", - " * wavenumber (wavenumber) float64 11kB 400.0 402.2 ... 3.398e+03 3.4e+03\n", - " * abs_time (abs_time) float64 408B 0.0 0.1 0.2 0.3 ... 4.7 4.8 4.9 5.0\n", - " * cell (cell) <U7 28B 'Cell1'\n", - " * cell_onset (cell) float64 8B 0.0\n", - " * cell_duration (cell) float64 8B 5.0\n", - "Data variables:\n", - " spectra (wavenumber, abs_time) float64 547kB 0.9967 0.3617 ... 0.238\n", - "Indexes:\n", - " ┌ abs_time DimensionInterval\n", - " │ cell_onset\n", - " │ cell_duration\n", - " └ cell" - ], - "text/plain": [ - "
<xarray.Dataset> Size: 558kB\n", - "Dimensions: (wavenumber: 1340, abs_time: 51, cell: 1)\n", - "Coordinates:\n", - " * wavenumber (wavenumber) float64 11kB 400.0 402.2 ... 3.398e+03 3.4e+03\n", - " * abs_time (abs_time) float64 408B 5.0 5.1 5.2 5.3 ... 9.7 9.8 9.9 10.0\n", - " * cell (cell) <U7 28B 'Cell1.1'\n", - " * cell_onset (cell) float64 8B 5.0\n", - " * cell_duration (cell) float64 8B 5.0\n", - "Data variables:\n", - " spectra (wavenumber, abs_time) float64 547kB 1.324 0.6149 ... 1.399\n", - "Indexes:\n", - " ┌ abs_time DimensionInterval\n", - " │ cell_onset\n", - " │ cell_duration\n", - " └ cell" - ], - "text/plain": [ - "
<xarray.Dataset> Size: 451kB\n", - "Dimensions: (wavenumber: 1340, abs_time: 41, cell: 2)\n", - "Coordinates:\n", - " * wavenumber (wavenumber) float64 11kB 400.0 402.2 ... 3.398e+03 3.4e+03\n", - " * abs_time (abs_time) float64 328B 3.0 3.1 3.2 3.3 ... 6.7 6.8 6.9 7.0\n", - " * cell (cell) <U7 56B 'Cell1' 'Cell1.1'\n", - " * cell_onset (cell) float64 16B 0.0 5.0\n", - " * cell_duration (cell) float64 16B 5.0 5.0\n", - "Data variables:\n", - " spectra (wavenumber, abs_time) float64 440kB -0.1017 2.352 ... 1.596\n", - "Indexes:\n", - " ┌ abs_time DimensionInterval\n", - " │ cell_onset\n", - " │ cell_duration\n", - " └ cell" - ], - "text/plain": [ - "
<xarray.Dataset> Size: 558kB\n", - "Dimensions: (wavenumber: 1340, abs_time: 51, cell: 1)\n", - "Coordinates:\n", - " * wavenumber (wavenumber) float64 11kB 400.0 402.2 ... 3.398e+03 3.4e+03\n", - " * abs_time (abs_time) float64 408B 0.0 0.1 0.2 0.3 ... 4.7 4.8 4.9 5.0\n", - " * cell (cell) <U7 28B 'Cell1'\n", - " * cell_onset (cell) float64 8B 0.0\n", - " * cell_duration (cell) float64 8B 5.0\n", - " rel_time (abs_time) float64 408B 0.0 0.1 0.2 0.3 ... 4.7 4.8 4.9 5.0\n", - "Data variables:\n", - " spectra (wavenumber, abs_time) float64 547kB 0.9967 0.3617 ... 0.238\n", - "Indexes:\n", - " ┌ abs_time DimensionInterval\n", - " │ cell_onset\n", - " │ cell_duration\n", - " └ cell" - ], - "text/plain": [ - "
<xarray.Dataset> Size: 2MB\n", - "Dimensions: (cell: 3, wavenumber: 1340, rel_time: 50)\n", - "Coordinates:\n", - " * cell (cell) <U7 84B 'Cell1' 'Cell1.1' 'Cell2'\n", - " * wavenumber (wavenumber) float64 11kB 400.0 402.2 ... 3.398e+03 3.4e+03\n", - " * rel_time (rel_time) float64 400B 0.0 0.1 0.2 0.3 0.4 ... 4.6 4.7 4.8 4.9\n", - "Data variables:\n", - " spectra (cell, wavenumber, rel_time) float64 2MB 0.9967 0.3617 ... 1.536" - ], - "text/plain": [ - "
<xarray.Dataset> Size: 43kB\n", - "Dimensions: (cell: 3, wavenumber: 1340)\n", - "Coordinates:\n", - " * cell (cell) <U7 84B 'Cell1' 'Cell1.1' 'Cell2'\n", - " * wavenumber (wavenumber) float64 11kB 400.0 402.2 ... 3.398e+03 3.4e+03\n", - " rel_time float64 8B 2.5\n", - "Data variables:\n", - " spectra (cell, wavenumber) float64 32kB 0.6109 1.327 ... 2.383 1.644" - ], - "text/plain": [ - "
<xarray.DataArray 'spectra' (wavenumber: 1340, rel_time: 50)> Size: 536kB\n", - "array([[0.80180913, 0.68533603, 0.87601734, ..., 0.9992403 , 1.29022444,\n", - " 0.43311913],\n", - " [0.78246542, 1.60836489, 1.84172757, ..., 0.93589846, 1.87884169,\n", - " 0.96388009],\n", - " [0.2958283 , 1.10526672, 1.53673231, ..., 0.66884294, 0.55104967,\n", - " 0.98838521],\n", - " ...,\n", - " [1.97376158, 0.69383452, 0.10312323, ..., 0.56447831, 0.76089072,\n", - " 1.76831641],\n", - " [0.88442509, 0.55252057, 1.64091189, ..., 0.81939334, 1.01265135,\n", - " 1.91756263],\n", - " [0.39837873, 1.03273106, 0.75282776, ..., 1.02265345, 1.42038498,\n", - " 0.85201734]], shape=(1340, 50))\n", - "Coordinates:\n", - " * wavenumber (wavenumber) float64 11kB 400.0 402.2 ... 3.398e+03 3.4e+03\n", - " * rel_time (rel_time) float64 400B 0.0 0.1 0.2 0.3 0.4 ... 4.6 4.7 4.8 4.9" - ], - "text/plain": [ - "
<xarray.Dataset> Size: 24kB\n", - "Dimensions: (C: 2, time: 1000, word: 3, phoneme: 6)\n", - "Coordinates:\n", - " * time (time) float64 8kB 0.0 0.1201 0.2402 ... 119.9 120.0\n", - " * word (word) <U7 84B 'run' 'quickly' 'home'\n", - " * phoneme (phoneme) <U2 48B 'ah' 'ee' 'oh' 'oo' 'eh' 'ih'\n", - " word_intervals (word) interval[float64, left] 48B [0.0, 40.0) ... [80...\n", - " part_of_speech (word) <U6 72B 'verb' 'adverb' 'noun'\n", - " phoneme_intervals (phoneme) interval[float64, left] 96B [0.0, 20.0) ... ...\n", - "Dimensions without coordinates: C\n", - "Data variables:\n", - " data (C, time) float64 16kB 0.6444 0.3379 ... 0.7478 0.7652
<xarray.Dataset> Size: 24kB\n", - "Dimensions: (C: 2, time: 1000, word: 3, phoneme: 6)\n", - "Coordinates:\n", - " * time (time) float64 8kB 0.0 0.1201 0.2402 ... 119.9 120.0\n", - " * word (word) <U7 84B 'run' 'quickly' 'home'\n", - " * phoneme (phoneme) <U2 48B 'ah' 'ee' 'oh' 'oo' 'eh' 'ih'\n", - " * word_intervals (word) interval[float64, left] 48B [0.0, 40.0) ... [80...\n", - " * phoneme_intervals (phoneme) interval[float64, left] 96B [0.0, 20.0) ... ...\n", - " * part_of_speech (word) <U6 72B 'verb' 'adverb' 'noun'\n", - "Dimensions without coordinates: C\n", - "Data variables:\n", - " data (C, time) float64 16kB 0.6444 0.3379 ... 0.7478 0.7652\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_intervals\n", - " │ phoneme_intervals\n", - " │ word\n", - " │ part_of_speech\n", - " └ phoneme" - ], - "text/plain": [ - "
<xarray.DataArray 'word_intervals' (word: 3)> Size: 48B\n", - "<IntervalArray>\n", - "[[0.0, 40.0), [40.0, 80.0), [80.0, 120.0)]\n", - "Length: 3, dtype: interval[float64, left]\n", - "Coordinates:\n", - " * word (word) <U7 84B 'run' 'quickly' 'home'\n", - " * time (time) float64 8kB 0.0 0.1201 0.2402 ... 119.9 120.0\n", - " * word_intervals (word) interval[float64, left] 48B [0.0, 40.0) ... [80...\n", - " * phoneme_intervals (phoneme) interval[float64, left] 96B [0.0, 20.0) ... ...\n", - " * part_of_speech (word) <U6 72B 'verb' 'adverb' 'noun'\n", - " * phoneme (phoneme) <U2 48B 'ah' 'ee' 'oh' 'oo' 'eh' 'ih'\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_intervals\n", - " │ phoneme_intervals\n", - " │ word\n", - " │ part_of_speech\n", - " └ phoneme" - ], - "text/plain": [ - "
<xarray.Dataset> Size: 4kB\n", - "Dimensions: (C: 2, time: 167, word: 1, phoneme: 1)\n", - "Coordinates:\n", - " * time (time) float64 1kB 40.0 40.12 40.24 ... 59.7 59.82 59.94\n", - " * word (word) <U7 28B 'quickly'\n", - " * phoneme (phoneme) <U2 8B 'oh'\n", - " * word_intervals (word) interval[float64, left] 16B [40.0, 80.0)\n", - " * phoneme_intervals (phoneme) interval[float64, left] 16B [40.0, 60.0)\n", - " * part_of_speech (word) <U6 24B 'adverb'\n", - "Dimensions without coordinates: C\n", - "Data variables:\n", - " data (C, time) float64 3kB 0.6028 0.03015 ... 0.1079 0.4516\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_intervals\n", - " │ phoneme_intervals\n", - " │ word\n", - " │ part_of_speech\n", - " └ phoneme" - ], - "text/plain": [ - "
<xarray.Dataset> Size: 8kB\n", - "Dimensions: (C: 2, time: 333, word: 2, phoneme: 3)\n", - "Coordinates:\n", - " * time (time) float64 3kB 30.03 30.15 30.27 ... 69.79 69.91\n", - " * word (word) <U7 56B 'run' 'quickly'\n", - " * phoneme (phoneme) <U2 24B 'ee' 'oh' 'oo'\n", - " * word_intervals (word) interval[float64, left] 32B [0.0, 40.0) [40.0, ...\n", - " * phoneme_intervals (phoneme) interval[float64, left] 48B [20.0, 40.0) ......\n", - " * part_of_speech (word) <U6 48B 'verb' 'adverb'\n", - "Dimensions without coordinates: C\n", - "Data variables:\n", - " data (C, time) float64 5kB 0.1025 0.8327 ... 0.7243 0.5078\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_intervals\n", - " │ phoneme_intervals\n", - " │ word\n", - " │ part_of_speech\n", - " └ phoneme" - ], - "text/plain": [ - "
<xarray.Dataset> Size: 8kB\n", - "Dimensions: (C: 2, time: 334, word: 1, phoneme: 2)\n", - "Coordinates:\n", - " * time (time) float64 3kB 40.0 40.12 40.24 ... 79.76 79.88 80.0\n", - " * word (word) <U7 28B 'quickly'\n", - " * phoneme (phoneme) <U2 16B 'oh' 'oo'\n", - " * word_intervals (word) interval[float64, left] 16B [40.0, 80.0)\n", - " * phoneme_intervals (phoneme) interval[float64, left] 32B [40.0, 60.0) [60...\n", - " * part_of_speech (word) <U6 24B 'adverb'\n", - "Dimensions without coordinates: C\n", - "Data variables:\n", - " data (C, time) float64 5kB 0.6028 0.03015 ... 0.9135 0.226\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_intervals\n", - " │ phoneme_intervals\n", - " │ word\n", - " │ part_of_speech\n", - " └ phoneme
<xarray.Dataset> Size: 4kB\n", - "Dimensions: (C: 2, time: 167, word: 1, phoneme: 1)\n", - "Coordinates:\n", - " * time (time) float64 1kB 60.06 60.18 60.3 ... 79.76 79.88 80.0\n", - " * word (word) <U7 28B 'quickly'\n", - " * phoneme (phoneme) <U2 8B 'oo'\n", - " * word_intervals (word) interval[float64, left] 16B [40.0, 80.0)\n", - " * phoneme_intervals (phoneme) interval[float64, left] 16B [60.0, 80.0)\n", - " * part_of_speech (word) <U6 24B 'adverb'\n", - "Dimensions without coordinates: C\n", - "Data variables:\n", - " data (C, time) float64 3kB 0.7577 0.3041 ... 0.9135 0.226\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_intervals\n", - " │ phoneme_intervals\n", - " │ word\n", - " │ part_of_speech\n", - " └ phoneme" - ], - "text/plain": [ - "
<xarray.Dataset> Size: 19kB\n", - "Dimensions: (C: 2, time: 334, word: 1, phoneme: 2)\n", - "Coordinates:\n", - " * time (time) float64 3kB 40.0 40.12 40.24 ... 79.76 79.88 80.0\n", - " * word (word) <U7 28B 'quickly'\n", - " * phoneme (phoneme) <U2 16B 'oh' 'oo'\n", - " * word_intervals (word) interval[float64, left] 16B [40.0, 80.0)\n", - " * phoneme_intervals (phoneme) interval[float64, left] 32B [40.0, 60.0) [60...\n", - " * part_of_speech (word) <U6 24B 'adverb'\n", - "Dimensions without coordinates: C\n", - "Data variables:\n", - " data (C, time) float64 16kB 0.6444 0.3379 ... 0.7478 0.7652\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_intervals\n", - " │ phoneme_intervals\n", - " │ word\n", - " │ part_of_speech\n", - " └ phoneme" - ], - "text/plain": [ - "
<xarray.Dataset> Size: 17kB\n", - "Dimensions: (C: 2, time: 167, word: 1, phoneme: 1)\n", - "Coordinates:\n", - " * time (time) float64 1kB 100.1 100.2 100.3 ... 119.9 120.0\n", - " * word (word) <U7 28B 'home'\n", - " * phoneme (phoneme) <U2 8B 'ih'\n", - " * word_intervals (word) interval[float64, left] 16B [80.0, 120.0)\n", - " * phoneme_intervals (phoneme) interval[float64, left] 16B [100.0, 120.0)\n", - " * part_of_speech (word) <U6 24B 'noun'\n", - "Dimensions without coordinates: C\n", - "Data variables:\n", - " data (C, time) float64 16kB 0.6444 0.3379 ... 0.7478 0.7652\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_intervals\n", - " │ phoneme_intervals\n", - " │ word\n", - " │ part_of_speech\n", - " └ phoneme" - ], - "text/plain": [ - "
<xarray.DataArray 'image' (y: 1, x: 1)> Size: 8B\n", + "array([[151.66666667]])\n", + "Coordinates:\n", + " * y (y) int64 8B 300\n", + " * x (x) int64 8B 256\n", + " * derived (y, x) int64 8B 153856\n", + "Indexes:\n", + " derived NDIndex
<xarray.DataArray 'image' (y: 1, x: 1)> Size: 8B\n", + "array([[151.66666667]])\n", + "Coordinates:\n", + " * y (y) int64 8B 300\n", + " * x (x) int64 8B 256\n", + " * derived (y, x) int64 8B 153856\n", + "Indexes:\n", + " derived NDIndex
<xarray.DataArray 'image' (y: 98, x: 512)> Size: 401kB\n", + "array([[ 47.66666667, 38.66666667, 35.66666667, ..., 141.33333333,\n", + " 136.33333333, 138.33333333],\n", + " [ 45. , 43. , 39. , ..., 148.33333333,\n", + " 142.33333333, 143.33333333],\n", + " [ 32. , 36. , 32.33333333, ..., 148.33333333,\n", + " 146.33333333, 142.33333333],\n", + " ...,\n", + " [ 47. , 96. , 146. , ..., 150.66666667,\n", + " 152.66666667, 155.66666667],\n", + " [ 45. , 89. , 145. , ..., 148.66666667,\n", + " 152.66666667, 157.66666667],\n", + " [ 33. , 78.33333333, 139.33333333, ..., 146.66666667,\n", + " 150.66666667, 154.66666667]], shape=(98, 512))\n", + "Coordinates:\n", + " * y (y) int64 784B 195 196 197 198 199 200 ... 287 288 289 290 291 292\n", + " * x (x) int64 4kB 0 1 2 3 4 5 6 7 8 ... 504 505 506 507 508 509 510 511\n", + " * derived (y, x) int64 401kB 99840 99841 99842 99843 ... 150013 150014 150015\n", + "Indexes:\n", + " derived NDIndex
| \n", - " | onset | \n", - "duration | \n", - "word | \n", - "
|---|---|---|---|
| 0 | \n", - "0.5 | \n", - "1.2 | \n", - "hello | \n", - "
| 1 | \n", - "2.1 | \n", - "1.8 | \n", - "world | \n", - "
| 2 | \n", - "4.5 | \n", - "2.0 | \n", - "how | \n", - "
| 3 | \n", - "7.0 | \n", - "2.5 | \n", - "are | \n", - "
<xarray.Dataset> Size: 96B\n", - "Dimensions: (word: 4)\n", - "Coordinates:\n", - " * word (word) object 32B 'hello' 'world' 'how' 'are'\n", - " word_onset (word) float64 32B 0.5 2.1 4.5 7.0\n", - " word_duration (word) float64 32B 1.2 1.8 2.0 2.5\n", - "Data variables:\n", - " *empty*
<xarray.Dataset> Size: 16kB\n", - "Dimensions: (word: 4, time: 1000)\n", - "Coordinates:\n", - " * word (word) object 32B 'hello' 'world' 'how' 'are'\n", - " * time (time) float64 8kB 0.0 0.01001 0.02002 ... 9.98 9.99 10.0\n", - " word_onset (word) float64 32B 0.5 2.1 4.5 7.0\n", - " word_duration (word) float64 32B 1.2 1.8 2.0 2.5\n", - "Data variables:\n", - " audio (time) float64 8kB 0.09934 0.3325 0.7231 ... -0.4744 0.1145
<xarray.Dataset> Size: 16kB\n", - "Dimensions: (word: 4, time: 1000)\n", - "Coordinates:\n", - " * word (word) object 32B 'hello' 'world' 'how' 'are'\n", - " * time (time) float64 8kB 0.0 0.01001 0.02002 ... 9.98 9.99 10.0\n", - " * word_onset (word) float64 32B 0.5 2.1 4.5 7.0\n", - " * word_duration (word) float64 32B 1.2 1.8 2.0 2.5\n", - "Data variables:\n", - " audio (time) float64 8kB 0.09934 0.3325 0.7231 ... -0.4744 0.1145\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_onset\n", - " │ word_duration\n", - " └ word
<xarray.Dataset> Size: 2kB\n", - "Dimensions: (time: 120, word: 1)\n", - "Coordinates:\n", - " * time (time) float64 960B 0.5005 0.5105 0.5205 ... 1.682 1.692\n", - " * word (word) object 8B 'hello'\n", - " * word_onset (word) float64 8B 0.5\n", - " * word_duration (word) float64 8B 1.2\n", - "Data variables:\n", - " audio (time) float64 960B 0.06827 -0.0255 -0.1359 ... 0.4946 0.2634\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_onset\n", - " │ word_duration\n", - " └ word
<xarray.Dataset> Size: 5kB\n", - "Dimensions: (time: 300, word: 2)\n", - "Coordinates:\n", - " * time (time) float64 2kB 2.002 2.012 2.022 ... 4.975 4.985 4.995\n", - " * word (word) object 16B 'world' 'how'\n", - " * word_onset (word) float64 16B 2.1 4.5\n", - " * word_duration (word) float64 16B 1.8 2.0\n", - "Data variables:\n", - " audio (time) float64 2kB 0.1481 0.5324 0.8344 ... -0.6739 -0.4654\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_onset\n", - " │ word_duration\n", - " └ word
<xarray.Dataset> Size: 3kB\n", - "Dimensions: (time: 200, word: 1)\n", - "Coordinates:\n", - " * time (time) float64 2kB 4.505 4.515 4.525 ... 6.476 6.486 6.496\n", - " * word (word) object 8B 'how'\n", - " * word_onset (word) float64 8B 4.5\n", - " * word_duration (word) float64 8B 2.0\n", - "Data variables:\n", - " audio (time) float64 2kB 0.01689 0.2374 -0.2569 ... -0.0957 0.1158\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_onset\n", - " │ word_duration\n", - " └ word
<xarray.Dataset> Size: 424B\n", - "Dimensions: (time: 25, word: 1)\n", - "Coordinates:\n", - " * time (time) float64 200B 1.752 1.762 1.772 ... 1.972 1.982 1.992\n", - " * word (word) object 8B 'hello'\n", - " * word_onset (word) float64 8B 0.5\n", - " * word_duration (word) float64 8B 1.2\n", - "Data variables:\n", - " audio (time) float64 200B -0.2943 -0.2311 ... -0.5498 -0.5234\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_onset\n", - " │ word_duration\n", - " └ word
<xarray.Dataset> Size: 11kB\n", - "Dimensions: (time: 340, word: 2)\n", - "Coordinates:\n", - " * time (time) float64 3kB 0.5005 0.5105 0.5205 ... 3.874 3.884 3.894\n", - " * word (word) object 16B 'hello' 'world'\n", - " * word_onset (word) float64 16B 0.5 2.1\n", - " * word_duration (word) float64 16B 1.2 1.8\n", - "Data variables:\n", - " audio (time) float64 8kB 0.09934 0.3325 0.7231 ... -0.4744 0.1145\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_onset\n", - " │ word_duration\n", - " └ word
| \n", - " | onset | \n", - "duration | \n", - "word | \n", - "part_of_speech | \n", - "
|---|---|---|---|---|
| 0 | \n", - "0.0 | \n", - "2.5 | \n", - "hello | \n", - "interjection | \n", - "
| 1 | \n", - "3.0 | \n", - "2.5 | \n", - "world | \n", - "noun | \n", - "
| 2 | \n", - "6.0 | \n", - "3.5 | \n", - "test | \n", - "noun | \n", - "
| \n", - " | onset | \n", - "duration | \n", - "phoneme | \n", - "
|---|---|---|---|
| 0 | \n", - "0.0 | \n", - "0.8 | \n", - "hh | \n", - "
| 1 | \n", - "0.8 | \n", - "0.9 | \n", - "eh | \n", - "
| 2 | \n", - "1.7 | \n", - "0.8 | \n", - "l | \n", - "
| 3 | \n", - "3.0 | \n", - "0.9 | \n", - "w | \n", - "
| 4 | \n", - "3.9 | \n", - "0.8 | \n", - "er | \n", - "
| 5 | \n", - "4.7 | \n", - "0.8 | \n", - "ld | \n", - "
| 6 | \n", - "6.0 | \n", - "1.2 | \n", - "t | \n", - "
| 7 | \n", - "7.2 | \n", - "2.3 | \n", - "st | \n", - "
<xarray.Dataset> Size: 16kB\n", - "Dimensions: (word: 3, phoneme: 8, time: 1000)\n", - "Coordinates:\n", - " * word (word) object 24B 'hello' 'world' 'test'\n", - " * phoneme (phoneme) object 64B 'hh' 'eh' 'l' 'w' 'er' 'ld' 't' 'st'\n", - " * time (time) float64 8kB 0.0 0.01001 0.02002 ... 9.98 9.99 10.0\n", - " * word_onset (word) float64 24B 0.0 3.0 6.0\n", - " * word_duration (word) float64 24B 2.5 2.5 3.5\n", - " * part_of_speech (word) object 24B 'interjection' 'noun' 'noun'\n", - " * phoneme_onset (phoneme) float64 64B 0.0 0.8 1.7 3.0 3.9 4.7 6.0 7.2\n", - " * phoneme_duration (phoneme) float64 64B 0.8 0.9 0.8 0.9 0.8 0.8 1.2 2.3\n", - "Data variables:\n", - " audio (time) float64 8kB 0.09934 0.3325 ... -0.4744 0.1145\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_onset\n", - " │ word_duration\n", - " │ word\n", - " │ part_of_speech\n", - " │ phoneme_onset\n", - " │ phoneme_duration\n", - " └ phoneme
<xarray.Dataset> Size: 4kB\n", - "Dimensions: (time: 250, word: 1, phoneme: 3)\n", - "Coordinates:\n", - " * time (time) float64 2kB 0.0 0.01001 0.02002 ... 2.482 2.492\n", - " * word (word) object 8B 'hello'\n", - " * phoneme (phoneme) object 24B 'hh' 'eh' 'l'\n", - " * word_onset (word) float64 8B 0.0\n", - " * word_duration (word) float64 8B 2.5\n", - " * part_of_speech (word) object 8B 'interjection'\n", - " * phoneme_onset (phoneme) float64 24B 0.0 0.8 1.7\n", - " * phoneme_duration (phoneme) float64 24B 0.8 0.9 0.8\n", - "Data variables:\n", - " audio (time) float64 2kB 0.09934 0.3325 ... 0.3239 0.03694\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_onset\n", - " │ word_duration\n", - " │ word\n", - " │ part_of_speech\n", - " │ phoneme_onset\n", - " │ phoneme_duration\n", - " └ phoneme
<xarray.Dataset> Size: 11kB\n", - "Dimensions: (time: 650, word: 2, phoneme: 5)\n", - "Coordinates:\n", - " * time (time) float64 5kB 3.003 3.013 3.023 ... 9.479 9.489 9.499\n", - " * word (word) object 16B 'world' 'test'\n", - " * phoneme (phoneme) object 40B 'w' 'er' 'ld' 't' 'st'\n", - " * word_onset (word) float64 16B 3.0 6.0\n", - " * word_duration (word) float64 16B 2.5 3.5\n", - " * part_of_speech (word) object 16B 'noun' 'noun'\n", - " * phoneme_onset (phoneme) float64 40B 3.0 3.9 4.7 6.0 7.2\n", - " * phoneme_duration (phoneme) float64 40B 0.9 0.8 0.8 1.2 2.3\n", - "Data variables:\n", - " audio (time) float64 5kB -0.05135 0.3361 ... -0.06063 0.04521\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_onset\n", - " │ word_duration\n", - " │ word\n", - " │ part_of_speech\n", - " │ phoneme_onset\n", - " │ phoneme_duration\n", - " └ phoneme
| \n", - " | onset | \n", - "duration | \n", - "label | \n", - "event_type | \n", - "
|---|---|---|---|---|
| 0 | \n", - "0.0 | \n", - "2.5 | \n", - "hello | \n", - "word | \n", - "
| 1 | \n", - "3.0 | \n", - "2.5 | \n", - "world | \n", - "word | \n", - "
| 2 | \n", - "6.0 | \n", - "3.5 | \n", - "test | \n", - "word | \n", - "
| 3 | \n", - "0.0 | \n", - "0.8 | \n", - "hh | \n", - "phoneme | \n", - "
| 4 | \n", - "0.8 | \n", - "0.9 | \n", - "eh | \n", - "phoneme | \n", - "
| 5 | \n", - "1.7 | \n", - "0.8 | \n", - "l | \n", - "phoneme | \n", - "
| 6 | \n", - "3.0 | \n", - "0.9 | \n", - "w | \n", - "phoneme | \n", - "
| 7 | \n", - "3.9 | \n", - "1.6 | \n", - "orld | \n", - "phoneme | \n", - "
| 8 | \n", - "0.0 | \n", - "5.0 | \n", - "image_A | \n", - "stimulus | \n", - "
| 9 | \n", - "5.0 | \n", - "5.0 | \n", - "image_B | \n", - "stimulus | \n", - "
<xarray.Dataset> Size: 240B\n", - "Dimensions: (word: 3, phoneme: 5, stimulus: 2)\n", - "Coordinates:\n", - " * word (word) object 24B 'hello' 'world' 'test'\n", - " * phoneme (phoneme) object 40B 'hh' 'eh' 'l' 'w' 'orld'\n", - " * stimulus (stimulus) object 16B 'image_A' 'image_B'\n", - " word_onset (word) float64 24B 0.0 3.0 6.0\n", - " word_duration (word) float64 24B 2.5 2.5 3.5\n", - " phoneme_onset (phoneme) float64 40B 0.0 0.8 1.7 3.0 3.9\n", - " phoneme_duration (phoneme) float64 40B 0.8 0.9 0.8 0.9 1.6\n", - " stimulus_onset (stimulus) float64 16B 0.0 5.0\n", - " stimulus_duration (stimulus) float64 16B 5.0 5.0\n", - "Data variables:\n", - " *empty*
<xarray.Dataset> Size: 16kB\n", - "Dimensions: (word: 3, phoneme: 5, stimulus: 2, time: 1000)\n", - "Coordinates:\n", - " * word (word) object 24B 'hello' 'world' 'test'\n", - " * phoneme (phoneme) object 40B 'hh' 'eh' 'l' 'w' 'orld'\n", - " * stimulus (stimulus) object 16B 'image_A' 'image_B'\n", - " * time (time) float64 8kB 0.0 0.01001 0.02002 ... 9.98 9.99 10.0\n", - " * word_onset (word) float64 24B 0.0 3.0 6.0\n", - " * word_duration (word) float64 24B 2.5 2.5 3.5\n", - " * phoneme_onset (phoneme) float64 40B 0.0 0.8 1.7 3.0 3.9\n", - " * phoneme_duration (phoneme) float64 40B 0.8 0.9 0.8 0.9 1.6\n", - " * stimulus_onset (stimulus) float64 16B 0.0 5.0\n", - " * stimulus_duration (stimulus) float64 16B 5.0 5.0\n", - "Data variables:\n", - " audio (time) float64 8kB 0.09934 0.3325 ... -0.4744 0.1145\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_onset\n", - " │ word_duration\n", - " │ word\n", - " │ phoneme_onset\n", - " │ phoneme_duration\n", - " │ phoneme\n", - " │ stimulus_onset\n", - " │ stimulus_duration\n", - " └ stimulus
<xarray.Dataset> Size: 8kB\n", - "Dimensions: (time: 500, word: 2, phoneme: 5, stimulus: 1)\n", - "Coordinates:\n", - " * time (time) float64 4kB 0.0 0.01001 0.02002 ... 4.985 4.995\n", - " * word (word) object 16B 'hello' 'world'\n", - " * phoneme (phoneme) object 40B 'hh' 'eh' 'l' 'w' 'orld'\n", - " * stimulus (stimulus) object 8B 'image_A'\n", - " * word_onset (word) float64 16B 0.0 3.0\n", - " * word_duration (word) float64 16B 2.5 2.5\n", - " * phoneme_onset (phoneme) float64 40B 0.0 0.8 1.7 3.0 3.9\n", - " * phoneme_duration (phoneme) float64 40B 0.8 0.9 0.8 0.9 1.6\n", - " * stimulus_onset (stimulus) float64 8B 0.0\n", - " * stimulus_duration (stimulus) float64 8B 5.0\n", - "Data variables:\n", - " audio (time) float64 4kB 0.09934 0.3325 ... -0.6739 -0.4654\n", - "Indexes:\n", - " ┌ time DimensionInterval\n", - " │ word_onset\n", - " │ word_duration\n", - " │ word\n", - " │ phoneme_onset\n", - " │ phoneme_duration\n", - " │ phoneme\n", - " │ stimulus_onset\n", - " │ stimulus_duration\n", - " └ stimulus
<xarray.Dataset> Size: 192B\n", - "Dimensions: (word: 3, phoneme: 5)\n", - "Coordinates:\n", - " * word (word) object 24B 'hello' 'world' 'test'\n", - " * phoneme (phoneme) object 40B 'hh' 'eh' 'l' 'w' 'orld'\n", - " word_onset (word) float64 24B 0.0 3.0 6.0\n", - " word_duration (word) float64 24B 2.5 2.5 3.5\n", - " phoneme_onset (phoneme) float64 40B 0.0 0.8 1.7 3.0 3.9\n", - " phoneme_duration (phoneme) float64 40B 0.8 0.9 0.8 0.9 1.6\n", - "Data variables:\n", - " *empty*