Skip to content
This repository has been archived by the owner on Feb 24, 2025. It is now read-only.

Commit

Permalink
Z
Browse files Browse the repository at this point in the history
  • Loading branch information
miloswrath committed Sep 4, 2024
1 parent 307bc67 commit 0863080
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions code/AFqC.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ def main():

print(f'QC passed for {submission}, generating plots...')
# generate plots
if os.path.exists(output+'run-1'):
output = output+'run-2'
elif os.path.exists(output+'run-2'):
output = output+'run-3'
else:
output = output+'run-1'
os.makedirs(output, exist_ok=True)
plots(submission, output, sub)
return print('QC and Plots complete')

Expand Down
Binary file removed data/1001/1001_accuracy_by_condition.png
Binary file not shown.
Binary file removed data/1001/1001_rt.png
Binary file not shown.
4 changes: 0 additions & 4 deletions data/1001/qc_AF_A.log

This file was deleted.

10 changes: 7 additions & 3 deletions jatosAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,19 @@ def convert_beh():




paths = []
print(dic)
for i in range(len(dic)):
i += 1
for sub in np.unique(dic[i]['subject_id']):
print(sub)
paths.append((f'./data/{sub}/processed'+"/{0}_{1}_{2}"+".csv").format(sub,dic[i]['task'][0],dic[i]['task_vers'][0]))

if os.path.exists(f'./data/{sub}/processed/run-1'):
paths.append((f'./data/{sub}/processed/run-2'+"/{0}_{1}_{2}"+".csv").format(sub,dic[i]['task'][0],dic[i]['task_vers'][0]))
elif os.path.exists(f'./data/{sub}/processed/run-2'):
paths.append((f'./data/{sub}/processed/run-1'+"/{0}_{1}_{2}"+".csv").format(sub,dic[i]['task'][0],dic[i]['task_vers'][0]))
else:
paths.append((f'./data/{sub}/processed/run-1'+"/{0}_{1}_{2}"+".csv").format(sub,dic[i]['task'][0],dic[i]['task_vers'][0]))



for path in paths:
Expand Down

0 comments on commit 0863080

Please sign in to comment.