From 13d7c39a49719cc583b59b1d5031a858f9e87651 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 15 Oct 2023 05:52:48 +0000 Subject: [PATCH] Bump [skip actions] --- pyproject.toml | 2 +- src/npc_lims/status/behavior_sessions.py | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8faa407..ad797a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = "arjun.sridhar@alleninstitute.org" }, diff --git a/src/npc_lims/status/behavior_sessions.py b/src/npc_lims/status/behavior_sessions.py index 4c9fd66..ee90fb8 100644 --- a/src/npc_lims/status/behavior_sessions.py +++ b/src/npc_lims/status/behavior_sessions.py @@ -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( @@ -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(