From 053970ff9eea808fb8e5e59f50dee3039dd1fd38 Mon Sep 17 00:00:00 2001 From: EmmaRenauld Date: Thu, 22 Feb 2024 16:07:27 -0500 Subject: [PATCH] Change prints. WIP REMOVE LEFT-OVER --- dwi_ml/data/hdf5/hdf5_creation.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dwi_ml/data/hdf5/hdf5_creation.py b/dwi_ml/data/hdf5/hdf5_creation.py index 3cf3032d..8066d9b3 100644 --- a/dwi_ml/data/hdf5/hdf5_creation.py +++ b/dwi_ml/data/hdf5/hdf5_creation.py @@ -477,7 +477,7 @@ def _process_one_volume_group(self, group: str, subj_id: str, self.enforce_files_presence, folder=subj_input_dir) for mask in std_masks: - logging.info(" - Loading standardization mask {}" + logging.info(" - Loading standardization mask {}" .format(os.path.basename(mask))) sub_mask_data = nib.load(mask).get_fdata() > 0 if std_mask is None: @@ -488,6 +488,7 @@ def _process_one_volume_group(self, group: str, subj_id: str, file_list = self.groups_config[group]['files'] file_list = format_filelist(file_list, self.enforce_files_presence, folder=subj_input_dir) + print("??? file_list", file_list) # First file will define data dimension and affine logging.info(" - Processing file {}" @@ -511,7 +512,7 @@ def _process_one_volume_group(self, group: str, subj_id: str, group_affine, group_res) if std_option == 'per_file': - logging.debug(' *Standardizing sub-data') + logging.info(' (standardizing)') data = standardize_data(data, std_mask, independent=False) # Append file data to hdf group. @@ -524,11 +525,11 @@ def _process_one_volume_group(self, group: str, subj_id: str, # Standardize data (per channel) (if not done 'per_file' yet). if std_option == 'independent': - logging.debug(' *Standardizing data on each feature.') + logging.info(' - Standardizing data on each feature.') group_data = standardize_data(group_data, std_mask, independent=True) elif std_option == 'all': - logging.debug(' *Standardizing data as a whole.') + logging.info(' - Standardizing data as a whole.') group_data = standardize_data(group_data, std_mask, independent=False) elif std_option not in ['none', 'per_file']: