From 3dc5638785b08a03c409993bc2ba5836a39d9407 Mon Sep 17 00:00:00 2001 From: cmaumet Date: Fri, 13 Dec 2024 15:37:16 +0100 Subject: [PATCH] set a parametric modulation for accept or reject --- narps_open/pipelines/team_98BT.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/narps_open/pipelines/team_98BT.py b/narps_open/pipelines/team_98BT.py index 74ad0dc7..bb14a708 100755 --- a/narps_open/pipelines/team_98BT.py +++ b/narps_open/pipelines/team_98BT.py @@ -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']): @@ -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(