Skip to content

Commit

Permalink
Merge pull request #106 from hassonlab/hvgazula/issue97
Browse files Browse the repository at this point in the history
fix #97
  • Loading branch information
hvgazula committed Dec 12, 2022
2 parents b0319f0 + 3e22d9d commit 97c2717
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/tfspkl_build_matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ def build_design_matrices(CONFIG, delimiter=","):
df = pd.DataFrame(sigelec_list, columns=["subject", "electrode"])
except:
# If the electrode file is in the new format
df = pd.read_csv(
CONFIG["sig_elec_file"], columns=["subject", "electrode"]
)
else:
df = pd.read_csv(CONFIG["sig_elec_file"])
finally:
electrodes_dict = (
df.groupby("subject")["electrode"].apply(list).to_dict()
)
Expand Down
3 changes: 3 additions & 0 deletions scripts/tfspkl_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,7 @@ def arg_parser():

args = parser.parse_args()

if not args.subject:
args.subject = 777

return args

0 comments on commit 97c2717

Please sign in to comment.