Skip to content

Commit

Permalink
reload layout so all fmaps get read in correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
danielasay committed Jul 2, 2024
1 parent bedb566 commit ef631e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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.8'
__version__ = '1.6.9'
__author__ = 'Neuroinformatics Research Group'
__author_email__ = 'info@neuroinfo.org'
5 changes: 4 additions & 1 deletion dwiqc/tasks/qsiprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,10 @@ def execute_fmap_truncation(self):
If truncate fmaps is true, this method will go through all of the fmaps in the fmap BIDS dir and make sure they are only one volume in length
"""
if self._truncate_fmap:
fmap_files = self._layout.get(subject=self._sub, session=self._ses, suffix='epi', extension='.nii.gz', return_type='filename')

layout = BIDSLayout(self._bids)

fmap_files = layout.get(subject=self._sub, session=self._ses, suffix='epi', extension='.nii.gz', return_type='filename')

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

Expand Down

0 comments on commit ef631e1

Please sign in to comment.