Skip to content

Commit

Permalink
Update datastructure2datasetandvideo_Vahid.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourmpis authored Nov 21, 2023
1 parent 11ae72c commit 051f250
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion datasets/datastructure2datasetandvideo_Vahid.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ def unified_cluster_table(path="datasets/DataFromVahid_expert"):
dirs.remove("cluster_information")
df_entry = {}
for dir in dirs:
df = pd.read_csv(os.path.join(path, dir, "cluster_info"))
try:
df = pd.read_csv(os.path.join(path, dir, "cluster_info"))
except:
pass
df_entry = pd.DataFrame(columns=cluster_information.columns)
df_entry["session"] = [dir]
df.neuron_index = df.index.values
Expand Down

0 comments on commit 051f250

Please sign in to comment.