Skip to content

Commit

Permalink
Black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalbakshi committed Oct 26, 2023
1 parent 1da15db commit 5d57ff2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion notebooks/demo_run.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@
"metadata": {},
"outputs": [],
"source": [
"dj.Diagram(subject.Subject) + dj.Diagram(session.Session) + dj.Diagram(probe) + dj.Diagram(ephys)"
"(\n",
" dj.Diagram(subject.Subject)\n",
" + dj.Diagram(session.Session)\n",
" + dj.Diagram(probe)\n",
" + dj.Diagram(ephys)\n",
")"
]
},
{
Expand Down
4 changes: 3 additions & 1 deletion notebooks/tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,9 @@
}
],
"source": [
"session.SessionDirectory.insert1(dict(**session_key, session_dir=\"raw/subject5/session1\"))\n",
"session.SessionDirectory.insert1(\n",
" dict(**session_key, session_dir=\"raw/subject5/session1\")\n",
")\n",
"session.SessionDirectory()"
]
},
Expand Down
2 changes: 2 additions & 0 deletions notebooks/tutorial_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ def get_ephys_root_data_dir():
subject.activate(db_prefix + "subject", linking_module=__name__)
session.activate(db_prefix + "session", linking_module=__name__)


@lab.schema
class SkullReference(dj.Lookup):
definition = """
skull_reference : varchar(60)
"""
contents = zip(["Bregma", "Lambda"])


def get_session_directory(session_key):
session_directory = (session.SessionDirectory & session_key).fetch1("session_dir")
return pathlib.Path(session_directory)
Expand Down

0 comments on commit 5d57ff2

Please sign in to comment.