Skip to content

Commit

Permalink
comment out memory logging
Browse files Browse the repository at this point in the history
  • Loading branch information
danielasay committed Jan 3, 2025
1 parent ae9c5d0 commit 6cb202d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scanbuddy/proc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def listener(self, ds, path):
pub.sendMessage('plot', instances=self._instances, subtitle_string=subtitle_string)

snr_tasks = self.check_snr(key)
logger.info(f'snr task sorted dict: {snr_tasks}')
#logger.info(f'snr task sorted dict: {snr_tasks}')

snr = SNR()
nii_path = self._instances[key]['nii_path']
Expand Down Expand Up @@ -172,12 +172,14 @@ def check_volreg(self, key):

def calc_snr(self, key):
slice_intensity_means, slice_voxel_counts, data = self.get_mean_slice_intensities(key)
'''
size_slice_int_means = self.getsize(slice_intensity_means) / (1024**3)
size_data = self.getsize(data) / (1024**2)
logger.info('==============================================')
logger.info(f' SIZE OF slice_intensity_means IS {size_slice_int_means} MB')
logger.info(f' SIZE OF data IS {size_data} MB')
logger.info('==============================================')
'''

non_zero_columns = ~np.all(slice_intensity_means == 0, axis=0)

Expand Down

0 comments on commit 6cb202d

Please sign in to comment.