Skip to content

Commit

Permalink
Bump [skip actions]
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 15, 2023
1 parent 4ff5eb8 commit 13d7c39
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "npc_lims"
version = "0.1.82"
version = "0.1.83"
description = "Tools to fetch and update paths, metadata and state for Mindscope Neuropixels sessions, in the cloud."
authors = [
{ name = "Arjun Sridhar", email = "[email protected]" },
Expand Down
11 changes: 9 additions & 2 deletions src/npc_lims/status/behavior_sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ def get_subjects_from_training_db(
db = npc_lims.metadata.get_training_db(nsb)

# use entries in `all_mice` table
subjects = tuple(set(npc_session.SubjectRecord(result['mouse_id']) for result in db.execute("SELECT * FROM all_mice").fetchall()))
subjects = tuple(
{
npc_session.SubjectRecord(result["mouse_id"])
for result in db.execute("SELECT * FROM all_mice").fetchall()
}
)

return {
subject: db.execute(
Expand Down Expand Up @@ -74,7 +79,9 @@ def get_sessions_from_training_db(
{'ID': 1, 'start_time': '2023-03-07 12:56:27', 'rig_name': 'B2', 'task_version': 'stage 0 moving', 'hits': '0', 'dprime_same_modality': '', 'dprime_other_modality_go_stim': '', 'pass': '1', 'ignore': '0'}
"""
if nsb:
raise NotImplementedError("Cannot currently get training info about individual NSB sessions")
raise NotImplementedError(
"Cannot currently get training info about individual NSB sessions"
)
db = npc_lims.metadata.get_training_db(nsb)
## using tables other than `all_mice`
subjects = tuple(
Expand Down

0 comments on commit 13d7c39

Please sign in to comment.