Skip to content

Commit

Permalink
set a parametric modulation for accept or reject
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaumet committed Dec 13, 2024
1 parent e1c8726 commit b91fc81
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions narps_open/pipelines/team_98BT.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ def get_fieldmap_info(fieldmap_info_file, magnitude_files):
print(short_echo_time)
print(long_echo_time)

raise Exception("Echo time displayed")

if short_echo_time == float(fieldmap_info['EchoTime1']):
magnitude_file = magnitude_files[0]
elif short_echo_time == float(fieldmap_info['EchoTime2']):
Expand Down Expand Up @@ -473,10 +475,14 @@ def get_subject_information(event_file: str, short_run_id: int):
durations.append(4.0)
weights_gain.append(float(info[2]))
weights_loss.append(float(info[3]))
if 'accept' in str(info[5]):
if 'weakly_accept' in str(info[5]):
answers.append(1)
elif 'strongly_accept' in str(info[5]):
answers.append(2)
elif 'weakly_reject' in str(info[5]):
answers.append(-1)
else:
answers.append(0)
answers.append(-2)

# Create Bunch
return Bunch(
Expand Down

0 comments on commit b91fc81

Please sign in to comment.