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 3dc5638
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions narps_open/pipelines/team_98BT.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,6 @@ def get_fieldmap_info(fieldmap_info_file, magnitude_files):
short_echo_time = min(float(fieldmap_info['EchoTime1']), float(fieldmap_info['EchoTime2']))
long_echo_time = max(float(fieldmap_info['EchoTime1']), float(fieldmap_info['EchoTime2']))

print('Echo times: ------')
print(short_echo_time)
print(long_echo_time)

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 +469,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 3dc5638

Please sign in to comment.