diff --git a/notebooks/tutorial.ipynb b/notebooks/tutorial.ipynb index c3e860c..efd021a 100644 --- a/notebooks/tutorial.ipynb +++ b/notebooks/tutorial.ipynb @@ -327,8 +327,11 @@ ], "source": [ "(\n", - " dj.Diagram(subject.Subject) + dj.Diagram(surgery.Implantation)\n", - " + dj.Diagram(session.Session) + dj.Diagram(Device) + dj.Diagram(optogenetics)\n", + " dj.Diagram(subject.Subject)\n", + " + dj.Diagram(surgery.Implantation)\n", + " + dj.Diagram(session.Session)\n", + " + dj.Diagram(Device)\n", + " + dj.Diagram(optogenetics)\n", ")" ] }, @@ -584,15 +587,15 @@ " implant_type=\"opto\",\n", " target_region=\"dHP\",\n", " target_hemisphere=\"left\",\n", - " ap=\"-7.9\", # [mm] anterior-posterior distance\n", + " ap=\"-7.9\", # [mm] anterior-posterior distance\n", " ap_ref=\"bregma\",\n", - " ml=\"-1.8\", # [mm] medial axis distance\n", + " ml=\"-1.8\", # [mm] medial axis distance\n", " ml_ref=\"bregma\",\n", - " dv=\"5\", # [mm] dorso-ventral axis distance\n", + " dv=\"5\", # [mm] dorso-ventral axis distance\n", " dv_ref=\"skull_surface\",\n", - " theta=\"11.5\", # [0, 180] degree rotation about ml-axis relative to z\n", - " phi=\"0\", # [0, 360] degree rotation about dv-axis relative to x\n", - " beta=None, # [-180, 180] degree rotation about shank relative to anterior\n", + " theta=\"11.5\", # [0, 180] degree rotation about ml-axis relative to z\n", + " phi=\"0\", # [0, 360] degree rotation about dv-axis relative to x\n", + " beta=None, # [-180, 180] degree rotation about shank relative to anterior\n", " )\n", ")" ] diff --git a/notebooks/tutorial_pipeline.py b/notebooks/tutorial_pipeline.py index e6588f2..f18c250 100644 --- a/notebooks/tutorial_pipeline.py +++ b/notebooks/tutorial_pipeline.py @@ -30,6 +30,7 @@ Experimenter = User session.activate(db_prefix + "session", linking_module=__name__) + @lab.schema class Device(dj.Lookup): """Table for managing lab devices. @@ -50,4 +51,5 @@ class Device(dj.Lookup): ["OPTG_4", "Optogenetics", "Doric Pulse Sequence Generator"], ] + optogenetics.activate(db_prefix + "optogenetics", linking_module=__name__)