Skip to content

Commit

Permalink
Fix subject attribute bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bjhardcastle committed Nov 22, 2024
1 parent 83b7de8 commit bbe9dc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/npc_sessions/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,7 @@ def is_stage_5_passed(self) -> bool:
return False
for path in npc_lims.get_training_spreadsheet_paths():
try:
df = pd.read_excel(path, self.subject.id)
df = pd.read_excel(path, self.id.subject)
except ValueError: # mouse not in this spreadsheet
continue
else:
Expand All @@ -2006,7 +2006,7 @@ def is_stage_5_passed(self) -> bool:
return False
return np.isnan(
DynamicRoutingAnalysisUtils.getSessionsToPass(
mouseId=int(self.subject.id),
mouseId=int(self.id.subject),
df=df,
sessions=np.where(
[
Expand Down

0 comments on commit bbe9dc0

Please sign in to comment.