Skip to content

Commit

Permalink
Remove use of npc_session.ProjectRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
bjhardcastle committed Oct 25, 2024
1 parent 645f317 commit 8301e60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/npc_lims/status/tracked_sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class SessionInfo:
"""

id: npc_session.SessionRecord
project: npc_session.ProjectRecord
project: str
is_ephys: bool
is_sync: bool
"""The session has sync data, implying more than a behavior-box."""
Expand Down Expand Up @@ -555,7 +555,7 @@ def _get_session_info_from_data_repo(
for session in sessions:
info = SessionInfo(
id=behavior_sessions.get_session_id_from_db_row(subject, session),
project=npc_session.ProjectRecord("DynamicRouting"),
project="DynamicRouting",
is_ephys=False, #! not enough info
is_sync=False, #! not enough info
allen_path=DR_DATA_REPO_ISILON / str(subject),
Expand Down Expand Up @@ -710,7 +710,7 @@ def _get_day_from_sessions(record: npc_session.SessionRecord) -> int:
experiment_day=int(
session_config.get("day", _get_day_from_sessions(record))
),
project=npc_session.ProjectRecord(project_name),
project=project_name,
is_ephys=is_ephys,
is_sync=is_sync,
allen_path=upath.UPath(allen_path),
Expand Down

0 comments on commit 8301e60

Please sign in to comment.