From 715839bb760a65f1e696e3556fb7c58cd7873946 Mon Sep 17 00:00:00 2001 From: AliceJoubert Date: Wed, 9 Oct 2024 17:27:01 +0200 Subject: [PATCH] Make change in oasis utils --- .../iotools/converters/oasis_to_bids/oasis_to_bids_utils.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/clinica/iotools/converters/oasis_to_bids/oasis_to_bids_utils.py b/clinica/iotools/converters/oasis_to_bids/oasis_to_bids_utils.py index 1290be8d8..89022e6a0 100644 --- a/clinica/iotools/converters/oasis_to_bids/oasis_to_bids_utils.py +++ b/clinica/iotools/converters/oasis_to_bids/oasis_to_bids_utils.py @@ -59,11 +59,7 @@ def create_sessions_dict( # Load the file tmp = field_location[i].split("/") location = tmp[0] - if len(tmp) > 1: - sheet = tmp[1] - else: - sheet = "" - + sheet = tmp[1] if len(tmp) > 1 else 0 file_to_read_path = clinical_data_dir / location file_ext = os.path.splitext(location)[1] if file_ext == ".xlsx":