Skip to content

Commit 8a6a749

Browse files
committed
Fix crespo output
1 parent 7fdd426 commit 8a6a749

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

circStudio/analysis/sleep/sleep.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ def Crespo(
908908
crespo.iloc[-1] = 1
909909

910910
# Invert labelling (make classification output consistent with other algorithms)
911-
crespo = np.where(crespo == 1, 0, 1)
911+
crespo = pd.Series(np.where(crespo == 1, 0, 1), index=crespo.index)
912912

913913
if plot:
914914
# Specify the layout of the figure to be generated

0 commit comments

Comments
 (0)