Skip to content

Commit

Permalink
Apply black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalbakshi committed Jan 17, 2024
1 parent cfa8a37 commit d943684
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
19 changes: 11 additions & 8 deletions notebooks/tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
")"
]
},
Expand Down Expand Up @@ -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",
")"
]
Expand Down
2 changes: 2 additions & 0 deletions notebooks/tutorial_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -50,4 +51,5 @@ class Device(dj.Lookup):
["OPTG_4", "Optogenetics", "Doric Pulse Sequence Generator"],
]


optogenetics.activate(db_prefix + "optogenetics", linking_module=__name__)

0 comments on commit d943684

Please sign in to comment.