From ad692986c3ba73f0885f401e8114bd66e17c4826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milagros=20Mar=C3=ADn?= Date: Mon, 27 Nov 2023 14:10:03 +0000 Subject: [PATCH] Revert deleting `SessionDirectory` insertion --- notebooks/tutorial.ipynb | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/notebooks/tutorial.ipynb b/notebooks/tutorial.ipynb index 055db421..e62879c8 100644 --- a/notebooks/tutorial.ipynb +++ b/notebooks/tutorial.ipynb @@ -334,6 +334,25 @@ "### **Step 2: Register the Electrophysiology Recording information for each Probe**\n" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Every experimental session produces a set of data files. The purpose of the `SessionDirectory` table is to locate these files. It references a directory path relative to a root directory, defined in `dj.config[\\\"custom\\\"]`. More information about `dj.config` is provided in the [Documentation](https://datajoint.com/docs/elements/user-guide/)." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "session.SessionDirectory.insert1(\n", + " dict(**session_key, session_dir=\"raw/subject5/session1\")\n", + ")\n", + "session.SessionDirectory()" + ] + }, { "attachments": {}, "cell_type": "markdown", @@ -909,7 +928,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.18" + "version": "3.9.17" }, "orig_nbformat": 4, "vscode": {