Skip to content

Commit

Permalink
update FSL version
Browse files Browse the repository at this point in the history
  • Loading branch information
danielasay committed Jan 29, 2025
1 parent 9e1d4d8 commit 7c0d49d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions dwiqc/tasks/prequal.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ def get_fsl_sif(self):

if self._container_dir:
try:
self._fsl_sif = f'{self._container_dir}/fsl_6.0.4.sif'
self._fsl_sif = f'{self._container_dir}/fsl_6.0.7.15.sif'
except FileNotFoundError:
logger.error(f'{self._container_dir}/fsl_6.0.4.sif does not exist. Verify the path and file name.')
logger.error(f'{self._container_dir}/fsl_6.0.7.15.sif does not exist. Verify the path and file name.')
sys.exit(1)
else:
home_dir = os.path.expanduser("~")
self._fsl_sif = os.path.join(home_dir, '.config/dwiqc/containers/fsl_6.0.4.sif')
self._fsl_sif = os.path.join(home_dir, '.config/dwiqc/containers/fsl_6.0.7.15.sif')


def create_spec(self, inputs_dir):
Expand Down
6 changes: 3 additions & 3 deletions dwiqc/tasks/prequal_EQ.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ def build(self):

if self._container_dir:
try:
self._fsl_sif = f'{self._container_dir}/fsl_6.0.4.sif'
self._fsl_sif = f'{self._container_dir}/fsl_6.0.7.15.sif'
except FileNotFoundError:
logger.error(f'{self._container_dir}/fsl_6.0.4.sif does not exist. Verify the path and file name.')
logger.error(f'{self._container_dir}/fsl_6.0.7.15.sif does not exist. Verify the path and file name.')
sys.exit(1)

else:

home_dir = os.path.expanduser("~")

self._fsl_sif = os.path.join(home_dir, '.config/dwiqc/containers/fsl_6.0.4.sif')
self._fsl_sif = os.path.join(home_dir, '.config/dwiqc/containers/fsl_6.0.7.15.sif')

os.chdir(f"{self._outdir}/EDDY")

Expand Down
6 changes: 3 additions & 3 deletions dwiqc/tasks/qsiprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ def check_container_path(self):
logger.error(f'{self._container_dir}/qsiprep.sif does not exist. Verify the path and file name.')
sys.exit(1)
try:
self._fsl_sif = f'{self._container_dir}/fsl_6.0.4.sif'
self._fsl_sif = f'{self._container_dir}/fsl_6.0.7.15.sif'
except FileNotFoundError:
logger.error(f'{self._container_dir}/fsl_6.0.4.sif does not exist. Verify the path and file name.')
logger.error(f'{self._container_dir}/fsl_6.0.7.15.sif does not exist. Verify the path and file name.')
sys.exit(1)

else:
home_dir = os.path.expanduser("~")
self._qsiprep_sif = os.path.join(home_dir, '.config/dwiqc/containers/qsiprep.sif')
self._fsl_sif = os.path.join(home_dir, '.config/dwiqc/containers/fsl_6.0.4.sif')
self._fsl_sif = os.path.join(home_dir, '.config/dwiqc/containers/fsl_6.0.7.15.sif')


def calc_mporder(self):
Expand Down
6 changes: 3 additions & 3 deletions dwiqc/tasks/qsiprep_EQ.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ def build(self):

if self._container_dir:
try:
self._fsl_sif = f'{self._container_dir}/fsl_6.0.4.sif'
self._fsl_sif = f'{self._container_dir}/fsl_6.0.7.15.sif'
except FileNotFoundError:
logging.error(f'{self._container_dir}/fsl_6.0.4.sif does not exist. Verify the path and file name.')
logging.error(f'{self._container_dir}/fsl_6.0.7.15.sif does not exist. Verify the path and file name.')
sys.exit(1)

else:

home_dir = os.path.expanduser("~")

self._fsl_sif = os.path.join(home_dir, '.config/dwiqc/containers/fsl_6.0.4.sif')
self._fsl_sif = os.path.join(home_dir, '.config/dwiqc/containers/fsl_6.0.7.15.sif')


# Define working directory for the subject
Expand Down

0 comments on commit 7c0d49d

Please sign in to comment.