Skip to content

Commit bbe9dc0

Browse files
committed
Fix subject attribute bug
1 parent 83b7de8 commit bbe9dc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/npc_sessions/sessions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1990,7 +1990,7 @@ def is_stage_5_passed(self) -> bool:
19901990
return False
19911991
for path in npc_lims.get_training_spreadsheet_paths():
19921992
try:
1993-
df = pd.read_excel(path, self.subject.id)
1993+
df = pd.read_excel(path, self.id.subject)
19941994
except ValueError: # mouse not in this spreadsheet
19951995
continue
19961996
else:
@@ -2006,7 +2006,7 @@ def is_stage_5_passed(self) -> bool:
20062006
return False
20072007
return np.isnan(
20082008
DynamicRoutingAnalysisUtils.getSessionsToPass(
2009-
mouseId=int(self.subject.id),
2009+
mouseId=int(self.id.subject),
20102010
df=df,
20112011
sessions=np.where(
20122012
[

0 commit comments

Comments
 (0)