Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
danielasay committed Jul 2, 2024
1 parent 0b1a303 commit bedb566
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dwiqc/__version__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__title__ = 'dwiqc'
__description__ = 'Quality Assurance Pipeline for Diffusion MR Data'
__url__ = 'https://github.com/harvard-nrg/dwiqc'
__version__ = '1.6.7'
__version__ = '1.6.8'
__author__ = 'Neuroinformatics Research Group'
__author_email__ = 'info@neuroinfo.org'
3 changes: 3 additions & 0 deletions dwiqc/tasks/qsiprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,13 @@ def execute_fmap_truncation(self):
if self._truncate_fmap:
fmap_files = self._layout.get(subject=self._sub, session=self._ses, suffix='epi', extension='.nii.gz', return_type='filename')

logger.info(f'running truncation on {fmap_files}')

for fmap in fmap_files:
shape = nib.load(fmap).get_fdata().shape
if len(shape) == 4:
num_vols = shape[3]
logger.info(f'{fmap} has {num_vols} volumes')
if num_vols == 1:
continue
middle_vol = num_vols // 2
Expand Down

0 comments on commit bedb566

Please sign in to comment.