Skip to content

Commit

Permalink
use join
Browse files Browse the repository at this point in the history
  • Loading branch information
tosemml authored Aug 23, 2023
1 parent e42962a commit 03a8e9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions GANDLF/utils/write_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ def writeTrainingCSV(
channelsID_list = channelsID.split(",") # split into list

outputToWrite = "SubjectID,"
for i, n in enumerate(channelsID_list):
outputToWrite += "Channel_" + str(i) + ","
outputToWrite += ",".join(["Channel_" + str(i) for i, n in enumerate(channelsID_list)])
if labelID is not None:
outputToWrite += "Label"
outputToWrite += "\n"
Expand Down

0 comments on commit 03a8e9d

Please sign in to comment.