diff --git a/notebooks/03_Merge_Tables.ipynb b/notebooks/03_Merge_Tables.ipynb index 2d76867d8..6adbbd5bf 100644 --- a/notebooks/03_Merge_Tables.ipynb +++ b/notebooks/03_Merge_Tables.ipynb @@ -415,7 +415,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -503,7 +503,7 @@ } ], "source": [ - "uuid_key = LFPOutput.fetch(limit=1, as_dict=True)[-1]\n", + "uuid_key = (LFPOutput & nwb_file_dict).fetch(limit=1, as_dict=True)[-1]\n", "restrict = LFPOutput & uuid_key\n", "restrict" ] @@ -546,7 +546,7 @@ } ], "source": [ - "result1 = restrict.fetch_nwb()\n", + "result1 = restrict.fetch_nwb(restrict.fetch1(\"KEY\"))\n", "result1" ] }, @@ -594,7 +594,7 @@ } ], "source": [ - "result2 = (LFPOutput & nwb_key).fetch_nwb()\n", + "result2 = LFPOutput().fetch_nwb(nwb_key)\n", "result2 == result1" ] }, diff --git a/notebooks/py_scripts/03_Merge_Tables.py b/notebooks/py_scripts/03_Merge_Tables.py index 33b8e9a0e..ac3ad4e69 100644 --- a/notebooks/py_scripts/03_Merge_Tables.py +++ b/notebooks/py_scripts/03_Merge_Tables.py @@ -5,7 +5,7 @@ # extension: .py # format_name: light # format_version: '1.5' -# jupytext_version: 1.16.0 +# jupytext_version: 1.15.2 # kernelspec: # display_name: spy # language: python @@ -137,17 +137,17 @@ # by referencing this or other features. # -uuid_key = LFPOutput.fetch(limit=1, as_dict=True)[-1] +uuid_key = (LFPOutput & nwb_file_dict).fetch(limit=1, as_dict=True)[-1] restrict = LFPOutput & uuid_key restrict -result1 = restrict.fetch_nwb() +result1 = restrict.fetch_nwb(restrict.fetch1("KEY")) result1 nwb_key = LFPOutput.merge_restrict(nwb_file_dict).fetch(as_dict=True)[0] nwb_key -result2 = (LFPOutput & nwb_key).fetch_nwb() +result2 = LFPOutput().fetch_nwb(nwb_key) result2 == result1 # ## Selecting data